mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-04-02 04:11:00 +01:00
current year auto
This commit is contained in:
@@ -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."
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user