Skip to content

Commit

Permalink
fix export log (#405)
Browse files Browse the repository at this point in the history
Co-authored-by: 孙永强 <[email protected]>
  • Loading branch information
awu0403 and 孙永强 authored Oct 28, 2024
1 parent cb60b53 commit 2802c3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions seafevent_server/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import ast
import logging
import time

import openpyxl
import datetime
import pytz
Expand Down Expand Up @@ -39,6 +41,8 @@ def write_xls(sheet_name, head, data_list):
# write table data
for row in data_list:
row_num += 1
if row_num % 10000 == 0:
time.sleep(0.5)
for col_num in range(len(row)):
c = ws.cell(row=row_num + 1, column=col_num + 1)
c.value = row[col_num]
Expand Down

0 comments on commit 2802c3a

Please sign in to comment.