diff --git a/files/classes/clients.py b/files/classes/clients.py index 93d0ec2a2f..2d72b69b77 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 14aa06bdd3..7311e85138 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