Change _asdict() to dict()

This commit is contained in:
Tiago vasconcelos
2022-01-05 07:36:10 -03:00
committed by fiatjaf
parent aba206c87e
commit a00e46f629
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ async def api_get_donations(g: WalletTypeInfo = Depends(get_key_type)):
for wallet_id in wallet_ids:
new_donations = await get_donations(wallet_id)
donations += new_donations if new_donations else []
return [donation._asdict() for donation in donations] if donations else []
return [donation.dict() for donation in donations] if donations else []
@streamalerts_ext.put("/api/v1/donations/{donation_id}")