From 78af0891b15b390badaf933e49fc312637661b23 Mon Sep 17 00:00:00 2001 From: "Jeremy \"EndenDragon\" Zhang" Date: Mon, 19 Mar 2018 01:35:03 -0700 Subject: [PATCH] Remove float conversion for dbl referrer --- webapp/titanembeds/blueprints/api/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/titanembeds/blueprints/api/api.py b/webapp/titanembeds/blueprints/api/api.py index 01c6512..8cb5be4 100644 --- a/webapp/titanembeds/blueprints/api/api.py +++ b/webapp/titanembeds/blueprints/api/api.py @@ -500,9 +500,9 @@ def webhook_discordbotsorg_vote(): referrer = None if "referrer" in params: try: - referrer = int(float(params["referrer"])) + referrer = int(params["referrer"]) except: pass DBLTrans = DiscordBotsOrgTransactions(int(user_id), vote_type, referrer) db.session.add(DBLTrans) - return ('', 204) \ No newline at end of file + return ('', 204)