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):