summaryrefslogtreecommitdiffstats
path: root/parsers/logbooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r--parsers/logbooks.py3
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: