From 003870752513be71ebeeca483a2137f721d8727e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 28 Jan 2022 22:17:17 +0200 Subject: [PATCH] vcx --- files/classes/clients.py | 1 + files/routes/posts.py | 1 + 2 files changed, 2 insertions(+) diff --git a/files/classes/clients.py b/files/classes/clients.py index 93d0ec2a2..2d72b69b7 100644 --- a/files/classes/clients.py +++ b/files/classes/clients.py @@ -5,6 +5,7 @@ from .submission import Submission from .comment import Comment from files.__main__ import Base from files.helpers.lazy import lazy +from files.helpers.const import * import time class OauthApp(Base): diff --git a/files/routes/posts.py b/files/routes/posts.py index 14aa06bdd..7311e8513 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -659,6 +659,7 @@ def thumbnail_thread(pid): post.thumburl = process_image(name, resize=100) db.add(post) db.commit() + db.close() return