mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Remove float conversion for dbl referrer
This commit is contained in:
parent
99afd2aeb7
commit
78af0891b1
@ -500,9 +500,9 @@ 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)
|
||||||
db.session.add(DBLTrans)
|
db.session.add(DBLTrans)
|
||||||
return ('', 204)
|
return ('', 204)
|
||||||
|
Loading…
Reference in New Issue
Block a user