diff options
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/logbooks.py | 2 | ||||
-rw-r--r-- | parsers/people.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 892066b..fd03816 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -672,7 +672,7 @@ def LoadLogbooks(): message = " ! - No expeditions found. Attempting to 'people' first" DataIssue.objects.create(parser="logbooks", message=message) print(message) - load_people_expos() + load_people_expos() # by loading the folk list expos = Expedition.objects.all() if len(expos) <= 1: message = " ! - No expeditions found, even after attempting to load 'people'. Abort." diff --git a/parsers/people.py b/parsers/people.py index fc83be2..dd4d896 100644 --- a/parsers/people.py +++ b/parsers/people.py @@ -89,6 +89,13 @@ def load_people_expos(): """This is where the folk.csv file is parsed to read people's names. Which it gets wrong for people like Lydia-Clare Leather and various 'von' and 'de' middle 'names' and McLean and Mclean and McAdam - interaction with the url parser in urls.py too + + This is ALSO where all the Expedition objects get created. So this is the point at which troggle + gets told what expeditions exist. + + Given that we need to do stuff for the coming expo, well before we update the folk list, + the Expedition object for the coming expo is created elsewhere - in addition to + those created here, if it does not exist. """ DataIssue.objects.filter(parser="people").delete() |