04/28 Updated sprint 3
This commit is contained in:
@@ -1073,8 +1073,8 @@ def download_import_template():
|
||||
try:
|
||||
if len(str(cell.value)) > max_length:
|
||||
max_length = len(str(cell.value))
|
||||
except:
|
||||
pass
|
||||
except Exception:
|
||||
pass # Non-string cell value — skip width measurement
|
||||
adjusted_width = min(max_length + 2, 50)
|
||||
ws.column_dimensions[col_letter].width = adjusted_width
|
||||
|
||||
|
||||
Reference in New Issue
Block a user