From 2cf75fd006a74254fb48faaaff9a893475dd071f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Sep 2021 20:41:36 +0200 Subject: [PATCH] fsd --- files/routes/search.py | 3 ++- files/routes/users.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/search.py b/files/routes/search.py index ed474846a..725ea3b39 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -2,8 +2,9 @@ from files.helpers.wrappers import * import re from sqlalchemy import * from flask import * -from files.__main__ import app, cache +from files.__main__ import app import random +from sqlalchemy.orm import contains_eager query_regex=re.compile("(\w+):(\S+)") valid_params=[ diff --git a/files/routes/users.py b/files/routes/users.py index ce13728a8..fa97cf3b6 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -10,6 +10,7 @@ from files.mail import * from flask import * from files.__main__ import app, limiter from pusher_push_notifications import PushNotifications +from sqlalchemy.orm import contains_eager site = environ.get("DOMAIN").strip()