Skip to content

Commit 31dd09f

Browse files
committed
chore: pylint
1 parent dccbaa6 commit 31dd09f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • backend/application/commons/services

backend/application/commons/services/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def export_excel(objects: QuerySet, title: str, excludes: list[str], foreign_key
6060
value = str(getattr(current_object, key))
6161
if value and isinstance(value, datetime):
6262
value = value.replace(tzinfo=None)
63-
if value and (isinstance(value, list) or isinstance(value, dict)):
63+
if value and isinstance(value, (dict, list)):
6464
value = str(value)
6565
value = _escape_formula(value)
6666
try:

0 commit comments

Comments
 (0)