diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-09-04 18:56:32 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-09-04 18:56:32 +0300 |
commit | d3ac321d380eebf9c2d3486710c336e477363eb4 (patch) | |
tree | 8abd8bc9141283f29e0eb390a147ee9ef489d7f5 /parsers/logbooks.py | |
parent | a5dc78b04d7d5af8f1de23154f8ca23475587785 (diff) | |
download | troggle-d3ac321d380eebf9c2d3486710c336e477363eb4.tar.gz troggle-d3ac321d380eebf9c2d3486710c336e477363eb4.tar.bz2 troggle-d3ac321d380eebf9c2d3486710c336e477363eb4.zip |
fix bugs on reload of logbook
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 92efc54..ea927c1 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -543,6 +543,9 @@ def clean_logbook_for_expedition(expedition): """Only used when loading a single logbook. Deletes database LogBookEntries and DataIssues for this expedition year. """ + global tripsdate + tripsdate = {} + lbes = LogbookEntry.objects.filter(expedition=expedition).delete() dataissues = DataIssue.objects.filter(parser="logbooks") for di in dataissues: |