mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 15:57:02 +01:00 
			
		
		
		
	Total cents pledged attribute typo
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user