From 4c015296d5d52cd19640520e4a0aa4e09afb3f6b Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 13 Oct 2023 17:15:27 +0300 Subject: [PATCH] more automation --- files/assets/{ayvN3F.vtt => 1.vtt} | 0 files/assets/{WEbe6j.vtt => 2.vtt} | 0 files/routes/chat.py | 3 ++- files/templates/orgy.html | 4 ++-- 4 files changed, 4 insertions(+), 3 deletions(-) rename files/assets/{ayvN3F.vtt => 1.vtt} (100%) rename files/assets/{WEbe6j.vtt => 2.vtt} (100%) diff --git a/files/assets/ayvN3F.vtt b/files/assets/1.vtt similarity index 100% rename from files/assets/ayvN3F.vtt rename to files/assets/1.vtt diff --git a/files/assets/WEbe6j.vtt b/files/assets/2.vtt similarity index 100% rename from files/assets/WEbe6j.vtt rename to files/assets/2.vtt diff --git a/files/routes/chat.py b/files/routes/chat.py index ee0ce2f17..7b2b05eaf 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -71,7 +71,8 @@ def chat(v): orgy = get_orgy(v) if orgy: - return render_template("orgy.html", v=v, messages=displayed_messages, orgy=orgy) + x = secrets.token_urlsafe(8) + return render_template("orgy.html", v=v, messages=displayed_messages, orgy=orgy, x=x) return render_template("chat.html", v=v, messages=displayed_messages) diff --git a/files/templates/orgy.html b/files/templates/orgy.html index f70a574fa..743887f56 100644 --- a/files/templates/orgy.html +++ b/files/templates/orgy.html @@ -24,10 +24,10 @@ {% elif orgy.type == 'file' %} -