From 5a7f197bcb370638e6d54a4358ddca204a3e3ebb Mon Sep 17 00:00:00 2001 From: Expo laptop Crowley Date: Mon, 10 Jul 2023 09:24:11 +0200 Subject: [PATCH] hack to make server reset quickly --- parsers/survex.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parsers/survex.py b/parsers/survex.py index 70fc987..5394de6 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -739,7 +739,10 @@ class LoadingSurvex: print(f" {survexblock.survexfile=}") # raise - setdate_on_survexblock(year) + if year: + setdate_on_survexblock(year) + else: + setdate_on_survexblock("1970") if survexblock.date: # do not actually need a distict variable 'currentdate' but it makes the code clearer self.currentdate = survexblock.date