fix: Dealing with excel is a digital type problem (#16555)

Co-authored-by: wangruidong <940853815@qq.com>
This commit is contained in:
fit2bot
2026-01-20 16:55:55 +08:00
committed by GitHub
parent fd1aa5e59e
commit 462b299280

View File

@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
#
from django.conf import settings
from typing import Callable
from django.conf import settings
from django.utils.translation import gettext as _
from rest_framework.decorators import action
from rest_framework.throttling import UserRateThrottle
from rest_framework.request import Request
from rest_framework.response import Response
from rest_framework.throttling import UserRateThrottle
from common.const.http import POST, PUT
from orgs.models import Organization
@@ -64,7 +64,7 @@ class RenderToJsonMixin:
rows = request.data
if rows and isinstance(rows[0], dict):
first = list(rows[0].values())[0]
if first.startswith('#Help'):
if str(first).startswith('#Help'):
rows.pop(0)
data = {