pubbot: fix giveaways code

pull/456/merge
Mike Lang 4 days ago
parent 0c871b7f6c
commit a051f8f6fc

@ -61,7 +61,7 @@ def _get_giveaway():
data = json.loads(island["props"])
giveaways = data["giveaways"][1]
if giveaways:
return giveaways[1]["amount"][1] / 100.
return giveaways[0]["amount"][1] / 100.
return None

Loading…
Cancel
Save