mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 03:07:48 +00:00
New year for signups - partial
This commit is contained in:
@@ -31,8 +31,8 @@ SIGNEDUP = "SIGNEDUP"
|
||||
BIERBOOK = "documents/bierbook"
|
||||
BIERFILE = "names.txt"
|
||||
|
||||
SIGNUP_YEAR = "2025"
|
||||
SIGNUP_DATES = "30th June - 3rd August"
|
||||
SIGNUP_YEAR = "2026"
|
||||
SIGNUP_DATES = "Not Confirmed Yet"
|
||||
|
||||
def signupok(request):
|
||||
signup_user = request.user
|
||||
@@ -226,7 +226,10 @@ def write_bierbook(signups_clear, editor):
|
||||
|
||||
names = ""
|
||||
for id in signups_clear:
|
||||
names += f"{signups_clear[id]['name']}\n"
|
||||
if id == "SIGNEDUP":
|
||||
continue
|
||||
signed_up = signups_clear[id]
|
||||
names += f"{signed_up['name']}\n"
|
||||
|
||||
for i in range(0,3):
|
||||
names += "\\ldots\\ldots\\ldots\n"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user