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

New year for signups - partial

This commit is contained in:
2026-02-01 14:47:03 +00:00
parent 8a0de50793
commit c899c0749c
2 changed files with 14 additions and 4 deletions

View File

@@ -231,7 +231,14 @@ def load_people_expos():
ensure_users_are_persons()
most_recent = Expedition.objects.all().first()
print(most_recent)
check_new_signups(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:
# ps = pstats.Stats(pr, stream=f)