mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
hotfix undefined variable for query
This commit is contained in:
parent
32c3491b54
commit
26aa56cc4e
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user