mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 18:11:23 +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)
|
||||
user_id = incoming.get("user")
|
||||
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":
|
||||
redis_store.set("DiscordBotsOrgVoted/" + user_id, "voted", 86400)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user