From ec33d2c627dcd68acb20f515be03abff410bde15 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 22 Nov 2017 03:24:17 +0000 Subject: [PATCH] Total cents pledged attribute typo --- webapp/titanembeds/blueprints/user/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/blueprints/user/user.py b/webapp/titanembeds/blueprints/user/user.py index 48c9da1..60959d5 100644 --- a/webapp/titanembeds/blueprints/user/user.py +++ b/webapp/titanembeds/blueprints/user/user.py @@ -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