Skip to content

Commit

Permalink
Merge branch 'feat/verification-group' of github.com:Sujanadh/osm-fie…
Browse files Browse the repository at this point in the history
…ldwork into feat/verification-group
  • Loading branch information
sujanadh committed Sep 10, 2024
2 parents 82aec78 + cb6e172 commit 2e1be52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osm_fieldwork/update_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ def update_xls_form(custom_form: BytesIO) -> BytesIO:
# Append or overwrite the existing entities sheet
if "entities" in mandatory_sheets:
custom_sheets["entities"] = mandatory_sheets["entities"]

if "settings" in mandatory_sheets:
custom_sheets["settings"] = mandatory_sheets["settings"]
current_timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
current_timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")

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

0 comments on commit 2e1be52

Please sign in to comment.