From cfffbc61a07b189d19c23f5d5a5962bc6256bc69 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 25 Nov 2022 20:57:10 -0600 Subject: [PATCH] the request is prolly boned anyway, let's help friends help me :) --- files/routes/wrappers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index a4cf350df..c8d1a6329 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -24,10 +24,12 @@ def calc_users(v): if request: print(f"while serving {request.method} {request.full_path}") 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: print("no request context") print(f"v: {v}") - print(f"db?: {bool(getattr(g, 'db', None))}") + print(f"db?: {hasattr(g, 'db')}") + 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 loggedin = cache.get(f'{SITE}_loggedin') or {} loggedout = cache.get(f'{SITE}_loggedout') or {}