hotfix undefined variable for query

This commit is contained in:
Jeremy Zhang 2018-02-27 07:30:05 +00:00
parent 32c3491b54
commit 26aa56cc4e

View File

@ -477,7 +477,7 @@ def webhook_discordbotsorg_vote():
abort(403) abort(403)
user_id = incoming.get("user") user_id = incoming.get("user")
vote_type = incoming.get("type") vote_type = incoming.get("type")
params = dict(parse_qsl(urlsplit(url).query)) params = dict(parse_qsl(urlsplit(incoming.get("query", "")).query))
if vote_type == "upvote": if vote_type == "upvote":
redis_store.set("DiscordBotsOrgVoted/" + user_id, "voted", 86400) redis_store.set("DiscordBotsOrgVoted/" + user_id, "voted", 86400)
else: else: