Remove float conversion for dbl referrer

This commit is contained in:
Jeremy "EndenDragon" Zhang 2018-03-19 01:35:03 -07:00 committed by GitHub
parent 99afd2aeb7
commit 78af0891b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,7 +500,7 @@ def webhook_discordbotsorg_vote():
referrer = None referrer = None
if "referrer" in params: if "referrer" in params:
try: try:
referrer = int(float(params["referrer"])) referrer = int(params["referrer"])
except: except:
pass pass
DBLTrans = DiscordBotsOrgTransactions(int(user_id), vote_type, referrer) DBLTrans = DiscordBotsOrgTransactions(int(user_id), vote_type, referrer)