From e1324b57fdf56c3d08813809cd00f4662b544415 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 21 Jan 2022 13:29:29 +0200 Subject: [PATCH] fsdfsd --- files/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index 5a9bbae64..a011ea0e7 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -63,7 +63,8 @@ app.config['DESCRIPTION'] = environ.get("DESCRIPTION", "rdrama.net caters to dra r=redis.Redis(host=environ.get("REDIS_URL", "redis://localhost"), decode_responses=True, ssl_cert_reqs=None) -print('first: ' + get_remote_address()) +with app.app_context(): + print('first: ' + get_remote_address()) def get_CF() -> str: with app.app_context():