diff options
author | Expo laptop Crowley <cucc.expedition@gmail.com> | 2023-07-10 09:24:11 +0200 |
---|---|---|
committer | Expo laptop Crowley <cucc.expedition@gmail.com> | 2023-07-10 09:24:11 +0200 |
commit | 5a7f197bcb370638e6d54a4358ddca204a3e3ebb (patch) | |
tree | acff4427838d2bbae11190022dc6a054429322d1 /parsers/survex.py | |
parent | 389fb6c409bc6438276f5ef7552c35f1e2cd723c (diff) | |
download | troggle-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.py | 5 |
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 |