Skip to content

Commit

Permalink
fix: set the version column type to str
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujanadh committed Sep 11, 2024
1 parent bded129 commit b86d64f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osm_fieldwork/update_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def update_xls_form(custom_form: BytesIO) -> BytesIO:

# Set the 'version' column to the current timestamp (if 'version' column exists in 'settings')
if "version" in custom_sheets["settings"].columns:
# set column type to str
custom_sheets["settings"]["version"] = custom_sheets["settings"]["version"].astype(str)
custom_sheets["settings"].loc[:, "version"] = current_timestamp

output = BytesIO()
Expand Down

0 comments on commit b86d64f

Please sign in to comment.