From 459ed11b58ae7c924b8b13a758b111bad7aa4d8d Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 28 Jun 2020 15:57:40 +0100 Subject: avoiding problem in KH QMs import --- parsers/logbooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parsers/logbooks.py') diff --git a/parsers/logbooks.py b/parsers/logbooks.py index a724394..a492135 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -148,7 +148,7 @@ def EnterLogIntoDbase(date, place, title, text, trippeople, expedition, logtime_ for tripperson, time_underground in trippersons: lookupAttribs={'personexpedition':tripperson, 'logbook_entry':lbo} nonLookupAttribs={'time_underground':time_underground, 'is_logbook_entry_author':(tripperson == author)} - save_carefully(PersonTrip, lookupAttribs, nonLookupAttribs) + save_carefully(PersonTrip, lookupAttribs, nonLookupAttribs) # PersonTrip also saved in SetDatesFromLogbookEntries def ParseDate(tripdate, year): """ Interprets dates in the expo logbooks and returns a correct datetime.date object """ @@ -394,7 +394,7 @@ def SetDatesFromLogbookEntries(expedition): lprevpersontrip.save() persontrip.persontrip_next = None lprevpersontrip = persontrip - persontrip.save() + persontrip.save() # also saved in EnterLogIntoDbase. MERGE these to speed up import. def LoadLogbookForExpedition(expedition,expect): -- cgit v1.2.3