From b86d64f6488ec5737dffdec18d6b1cadf312faa9 Mon Sep 17 00:00:00 2001 From: Sujan Adhikari Date: Wed, 11 Sep 2024 09:56:06 +0545 Subject: [PATCH] fix: set the version column type to str --- osm_fieldwork/update_form.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osm_fieldwork/update_form.py b/osm_fieldwork/update_form.py index 7b4012dd..c6a226a0 100644 --- a/osm_fieldwork/update_form.py +++ b/osm_fieldwork/update_form.py @@ -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()