Skip to content

Commit

Permalink
fix customResearch
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Aug 11, 2024
1 parent f5766b9 commit be6ecb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion statistic/report/custom_research.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def custom_research_fill_data(ws1, result_query, row=6):
except:
is_dict = False
if not is_dict:
ws1.cell(row=r, column=column).value = i.get(title, '')
try:
ws1.cell(row=r, column=column).value = i.get(title, '')
except:
ws1.cell(row=r, column=column).value = '-'
ws1.cell(row=r, column=column).style = style_border1
else:
for i in table_data.get("rows"):
Expand Down

0 comments on commit be6ecb6

Please sign in to comment.