2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 04:07:11 +00:00

fix bugs on reload of logbook

This commit is contained in:
2023-09-04 18:56:32 +03:00
parent a5dc78b04d
commit d3ac321d38
2 changed files with 6 additions and 3 deletions

View File

@@ -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: