From 5e6fe2e27dbc61e502e47f6a85e913d0bcbb2fdc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 20 Sep 2022 00:58:55 +0200 Subject: [PATCH] testing on devrama --- files/routes/front.py | 1 + files/templates/errors/500.html | 2 +- files/templates/errors/502.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 3202436dd..d38c4ab5a 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -197,6 +197,7 @@ def random_post(v): @app.get("/random_user") @auth_required def random_user(v): + abort(500) u = g.db.query(User.username).filter(User.song != None).order_by(func.random()).first() diff --git a/files/templates/errors/500.html b/files/templates/errors/500.html index 42db88e68..95cb28b76 100644 --- a/files/templates/errors/500.html +++ b/files/templates/errors/500.html @@ -10,7 +10,7 @@
- :#marseydead: + :#marseycarp3:

 			

500 Internal Server Error

Hiiiii it's carp! I think this error means that there's a timeout error. And I think that means something took too long to load so it decided not to work at all. If you keep seeing this on the same page but not other pages, then something is probably wrong with that specific function. It may not be called a function, but that sounds right to me. Anyway, ping me and I'll whine to someone smarter to fix it. Don't bother them. Thanks ily <3

diff --git a/files/templates/errors/502.html b/files/templates/errors/502.html index 50e91b76f..34ee6e827 100644 --- a/files/templates/errors/502.html +++ b/files/templates/errors/502.html @@ -124,7 +124,7 @@
- :#marseydead: + :#marseycarp3:

 								

500 Internal Server Error