mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Total cents pledged attribute typo
This commit is contained in:
parent
6d2d4dd19c
commit
ec33d2c627
@ -510,7 +510,7 @@ def format_patreon_user(user):
|
||||
},
|
||||
}
|
||||
if usrobj["pledges"]:
|
||||
usrobj["titan"]["total_cents_pledged"] = usrobj["pledges"][0]["total_historical_amount_cents"]
|
||||
usrobj["titan"]["total_cents_pledged"] = usrobj["pledges"][0]["attributes"]["total_historical_amount_cents"]
|
||||
dbpatreon = db.session.query(Patreon).filter(Patreon.user_id == user.id()).first()
|
||||
if dbpatreon:
|
||||
usrobj["titan"]["total_cents_synced"] = dbpatreon.total_synced
|
||||
|
Loading…
Reference in New Issue
Block a user