From: Karl O. Pinc Date: Wed, 2 Oct 2024 19:40:17 +0000 (-0500) Subject: Fix so colons (:) do not appear in the downloaded filename X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=8fa1e93661d306e46e6def65cfc6eab427b1f90e;p=pgwui_sql Fix so colons (:) do not appear in the downloaded filename --- diff --git a/src/pgwui_sql/views/sql.py b/src/pgwui_sql/views/sql.py index f24746c..e3127be 100644 --- a/src/pgwui_sql/views/sql.py +++ b/src/pgwui_sql/views/sql.py @@ -166,7 +166,8 @@ class SQLResultsHandler(pgwui_core.core.SessionDBHandler): ['sql_results', uf["db"], uf["user"], - datetime.datetime.now().isoformat(sep="_", timespec="seconds")]) + '_'.join(datetime.datetime.now().isoformat( + sep="_", timespec="seconds").split(':'))]) def write(self, result, errors): '''