mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Cannot cast int to an object
This commit is contained in:
parent
56a3527152
commit
becc65a2da
@ -161,7 +161,7 @@ class DatabaseInterface(object):
|
||||
dbmember = session.query(GuildMembers) \
|
||||
.filter(GuildMembers.guild_id == int(member.server.id)) \
|
||||
.filter(GuildMembers.user_id == int(member.id)) \
|
||||
.order_by(int(GuildMembers.id)).all()
|
||||
.order_by(GuildMembers.id).all()
|
||||
if not dbmember:
|
||||
dbmember = GuildMembers(
|
||||
int(member.server.id),
|
||||
|
Loading…
Reference in New Issue
Block a user