From 95b2426b356ed60ea80f82f52d8a55f9c98d0131 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Tue, 1 Jan 2019 19:46:50 +0000 Subject: [PATCH] db session? --- webapp/titanembeds/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/utils.py b/webapp/titanembeds/utils.py index 3eeb19f..ea9c6d9 100644 --- a/webapp/titanembeds/utils.py +++ b/webapp/titanembeds/utils.py @@ -82,7 +82,7 @@ def check_guild_existance(guild_id): @timeit def guild_accepts_visitors(guild_id): - dbGuild = Guilds.query.filter_by(guild_id=guild_id).first() + dbGuild = db.session.query(Guilds).filter(Guilds.guild_id==guild_id).first() return dbGuild.visitor_view def guild_query_unauth_users_bool(guild_id):