From ab184bccf342aeac72d5d1a99c9f9ebd6b244d29 Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@klebos.com> Date: Thu, 25 Aug 2022 16:31:38 +0300 Subject: [PATCH] comment updates --- core/models/survex.py | 1 + parsers/logbooks.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/models/survex.py b/core/models/survex.py index cdf3e59..d165d14 100644 --- a/core/models/survex.py +++ b/core/models/survex.py @@ -269,6 +269,7 @@ class Wallet(models.Model): ticks = {} # Initially, are there any required survex files present ? + # Note that we can't set the survexblock here on the wallet as that info is only available while parsing the survex file survexok = "red" ticks["S"] = "red" if waldata["survex not required"]: diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 7995d8b..41d0895 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -120,7 +120,7 @@ def EnterLogIntoDbase(date, place, title, text, trippeople, expedition, logtime_ Does NOT save the expeditionday_id - all NULLs. why? Because we are deprecating expeditionday ! troggle.log shows that we are creating lots of duplicates, which is no no problem with SQL as they just overwrite - but we are saving the same thing too many times.. Also seen in teh ObjStore mimic + but we are saving the same thing too many times.. Also seen in the ObjStore mimic """ try: trippersons, author = GetTripPersons(trippeople, expedition, logtime_underground, tid=tid)