2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 13:55:24 +00:00

cope with zero lat long

This commit is contained in:
2026-02-04 20:18:14 +00:00
parent 8204a40667
commit e7ecae6295
2 changed files with 10 additions and 10 deletions

View File

@@ -229,16 +229,10 @@ def load_people_expos():
pe_list.append(PersonExpedition(person=p, expedition=expedition, noncaver=noncaver))
PersonExpedition.objects.bulk_create(pe_list)
this_year = current_expo() # side effect of calling current_expo is to create it if needed.
ensure_users_are_persons()
most_recent = Expedition.objects.all().first()
print(most_recent)
expedition = most_recent
# STOP THIS, read how it works first before re-writing it !
if most_recent != current_expo():
print(f"{most_recent} != {current_expo()} so we need to create this year's expo")
expo_now = Expedition(year=current_expo())
# expo_now.save()
expedition = expo_now
check_new_signups(expedition)
# pr.disable()
# with open("folk_reader.prof", "w") as f: