Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2024
1 parent b98b419 commit cb6e172
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 cb6e172

Please sign in to comment.