db session?

This commit is contained in:
Jeremy Zhang 2019-01-01 19:46:50 +00:00
parent 7ad4f20bc0
commit 95b2426b35

View File

@ -82,7 +82,7 @@ def check_guild_existance(guild_id):
@timeit @timeit
def guild_accepts_visitors(guild_id): 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 return dbGuild.visitor_view
def guild_query_unauth_users_bool(guild_id): def guild_query_unauth_users_bool(guild_id):