forked from expo/troggle
New year for signups - partial
This commit is contained in:
@@ -31,8 +31,8 @@ SIGNEDUP = "SIGNEDUP"
|
|||||||
BIERBOOK = "documents/bierbook"
|
BIERBOOK = "documents/bierbook"
|
||||||
BIERFILE = "names.txt"
|
BIERFILE = "names.txt"
|
||||||
|
|
||||||
SIGNUP_YEAR = "2025"
|
SIGNUP_YEAR = "2026"
|
||||||
SIGNUP_DATES = "30th June - 3rd August"
|
SIGNUP_DATES = "Not Confirmed Yet"
|
||||||
|
|
||||||
def signupok(request):
|
def signupok(request):
|
||||||
signup_user = request.user
|
signup_user = request.user
|
||||||
@@ -226,7 +226,10 @@ def write_bierbook(signups_clear, editor):
|
|||||||
|
|
||||||
names = ""
|
names = ""
|
||||||
for id in signups_clear:
|
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):
|
for i in range(0,3):
|
||||||
names += "\\ldots\\ldots\\ldots\n"
|
names += "\\ldots\\ldots\\ldots\n"
|
||||||
|
|||||||
@@ -231,7 +231,14 @@ def load_people_expos():
|
|||||||
ensure_users_are_persons()
|
ensure_users_are_persons()
|
||||||
most_recent = Expedition.objects.all().first()
|
most_recent = Expedition.objects.all().first()
|
||||||
print(most_recent)
|
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()
|
# pr.disable()
|
||||||
# with open("folk_reader.prof", "w") as f:
|
# with open("folk_reader.prof", "w") as f:
|
||||||
# ps = pstats.Stats(pr, stream=f)
|
# ps = pstats.Stats(pr, stream=f)
|
||||||
|
|||||||
Reference in New Issue
Block a user