Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix(auth): fix bug where login fails due to comparison of env variabl…
Browse files Browse the repository at this point in the history
…e not being same type
  • Loading branch information
GOATS2K committed Jan 22, 2021
1 parent 12e6b33 commit 2905f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overpass/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def verify():
""" Verifies if user exists in the Discord guild """
guilds = discord.fetch_guilds()
user_is_in_guild = next((i for i in guilds if i.id == DISCORD_GUILD_ID), False)
user_is_in_guild = next((i for i in guilds if i.id == int(DISCORD_GUILD_ID)), False)
if user_is_in_guild:
return True

Expand Down

0 comments on commit 2905f20

Please sign in to comment.