summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
authorExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-10 09:24:11 +0200
committerExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-10 09:24:11 +0200
commit5a7f197bcb370638e6d54a4358ddca204a3e3ebb (patch)
treeacff4427838d2bbae11190022dc6a054429322d1 /parsers/survex.py
parent389fb6c409bc6438276f5ef7552c35f1e2cd723c (diff)
downloadtroggle-5a7f197bcb370638e6d54a4358ddca204a3e3ebb.tar.gz
troggle-5a7f197bcb370638e6d54a4358ddca204a3e3ebb.tar.bz2
troggle-5a7f197bcb370638e6d54a4358ddca204a3e3ebb.zip
hack to make server reset quickly
Diffstat (limited to 'parsers/survex.py')
-rw-r--r--parsers/survex.py5
1 files changed, 4 insertions, 1 deletions
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