forked from rDrama/rDrama
Revert "the request is prolly boned anyway, let's help friends help me :)"
This reverts commit cfffbc61a0
.
master
parent
4eae55e08d
commit
27bb38c0d5
|
@ -24,12 +24,10 @@ def calc_users(v):
|
||||||
if request:
|
if request:
|
||||||
print(f"while serving {request.method} {request.full_path}")
|
print(f"while serving {request.method} {request.full_path}")
|
||||||
print(f"user agent: {getattr(g, 'agent', '-attribute not present-')}")
|
print(f"user agent: {getattr(g, 'agent', '-attribute not present-')}")
|
||||||
print(f"xhr? {request.headers.get('xhr')} / API client? {bool(request.headers.get('Authorization'))}")
|
|
||||||
else:
|
else:
|
||||||
print("no request context")
|
print("no request context")
|
||||||
print(f"v: {v}")
|
print(f"v: {v}")
|
||||||
print(f"db?: {hasattr(g, 'db')}")
|
print(f"db?: {bool(getattr(g, 'db', None))}")
|
||||||
abort(500, "hi!! it's @justcool393! If you get this could you PM me and tell me how you got this? i'm trying to figure something out and if you can help I'll really appreciate it <3")
|
|
||||||
# end temp logging code
|
# end temp logging code
|
||||||
loggedin = cache.get(f'{SITE}_loggedin') or {}
|
loggedin = cache.get(f'{SITE}_loggedin') or {}
|
||||||
loggedout = cache.get(f'{SITE}_loggedout') or {}
|
loggedout = cache.get(f'{SITE}_loggedout') or {}
|
||||||
|
|
Loading…
Reference in New Issue