From 462b299280a6235abc1ec82e16299cbb599b72da Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Tue, 20 Jan 2026 16:55:55 +0800 Subject: [PATCH] fix: Dealing with excel is a digital type problem (#16555) Co-authored-by: wangruidong <940853815@qq.com> --- apps/common/api/action.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/common/api/action.py b/apps/common/api/action.py index 45249cf90..cdd98e41b 100644 --- a/apps/common/api/action.py +++ b/apps/common/api/action.py @@ -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 = {