Compare commits

...

2 Commits

Author SHA1 Message Date
flo 5eab52a0f8 chore(deps): update dependency ruff to v0.15.18 2026-06-19 07:00:53 +00:00
flo 89ea65a0c8 feat(suff): disable new user registration post-festival
New usernames now show a "party is over" page instead of proceeding to
account creation. Existing users can still log in. Extended BOOKING_END
to 2026-06-17 23:59 to allow edits through Wednesday night.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 16:36:30 +02:00
3 changed files with 22 additions and 5 deletions
+6 -4
View File
@@ -24,7 +24,7 @@ ANONYMOUS_USERNAME = "anonym"
BERLIN = ZoneInfo("Europe/Berlin") BERLIN = ZoneInfo("Europe/Berlin")
# Festival window: 2026-05-30 10:00 2026-06-14 22:00 Berlin time. # Festival window: 2026-05-30 10:00 2026-06-14 22:00 Berlin time.
BOOKING_START = datetime(2026, 5, 30, 10, 0, 0, tzinfo=BERLIN) BOOKING_START = datetime(2026, 5, 30, 10, 0, 0, tzinfo=BERLIN)
BOOKING_END = datetime(2026, 6, 14, 22, 0, 0, tzinfo=BERLIN) BOOKING_END = datetime(2026, 6, 17, 23, 59, 0, tzinfo=BERLIN)
DAY_BY_WEEKDAY = {3: 1, 4: 2, 5: 3, 6: 4} DAY_BY_WEEKDAY = {3: 1, 4: 2, 5: 3, 6: 4}
DAY_CUTOFF_HOUR = 6 DAY_CUTOFF_HOUR = 6
@@ -177,9 +177,11 @@ def name_view(request):
existing = None existing = None
if existing is None: if existing is None:
request.session["pending_username"] = username return render(
request.session["pending_mode"] = "create" request,
return HttpResponseRedirect(reverse("suff:pin")) "suff/party_over.html",
{"phase": phase, "username": username},
)
if not existing.pin: if not existing.pin:
if _user_has_activity(existing): if _user_has_activity(existing):
+15
View File
@@ -0,0 +1,15 @@
{% extends "suff/base.html" %}
{% block content %}
<h2>Party vorbei!</h2>
<p>
Der Name <b>{{ username }}</b> existiert noch nicht &mdash;
neue Accounts können nicht mehr angelegt werden, weil das Festival vorbei ist.
</p>
<p>
Du hast schon einen Account? Gib deinen Namen nochmal ein.
</p>
<div class="link-row">
<a href="{% url 'suff:name' %}" class="link-btn">Zurück</a>
</div>
{% endblock %}
+1 -1
View File
@@ -10,7 +10,7 @@ dependencies = [
[dependency-groups] [dependency-groups]
dev = [ dev = [
"ruff==0.15.16", "ruff==0.15.18",
] ]
[tool.ruff] [tool.ruff]