diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-06-28 15:57:40 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-06-28 15:57:40 +0100 |
commit | 459ed11b58ae7c924b8b13a758b111bad7aa4d8d (patch) | |
tree | 1b3843be6fefee3ed9d404d06d9b1256b7144ce1 /parsers/logbooks.py | |
parent | bf1c683fd09ad9c984748e5abc18a610cca03ee1 (diff) | |
download | troggle-459ed11b58ae7c924b8b13a758b111bad7aa4d8d.tar.gz troggle-459ed11b58ae7c924b8b13a758b111bad7aa4d8d.tar.bz2 troggle-459ed11b58ae7c924b8b13a758b111bad7aa4d8d.zip |
avoiding problem in KH QMs import
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |