Vote -1 string.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m1s

This commit is contained in:
retoor 2024-11-27 20:32:36 +01:00
parent b04bbd4514
commit 4da1385dc5

View File

@ -60,15 +60,15 @@ class Api:
obj = json.loads(response.text) obj = json.loads(response.text)
return obj return obj
def post_rant_vote(self, id, vote): def post_rant_vote(self, id_, vote):
response = requests.post( response = requests.post(
self.base_url + "devrant/rants/" + str(id) + "/vote", self.base_url + "devrant/rants/" + str(id_) + "/vote",
data={ data={
"app": 3, "app": 3,
"user_id": self.auth["user_id"], "user_id": self.auth["user_id"],
"token_id": self.auth["token_id"], "token_id": self.auth["token_id"],
"token_key": self.auth["token_key"], "token_key": self.auth["token_key"],
"vote": vote, "vote": str(vote),
# "plat": 3, # "plat": 3,
}, },
) )