bug fixes: silent_mode/ cash register indempotence/ antispam for key_country/ ban improvements

This commit is contained in:
Vladless
2025-09-02 23:38:52 +03:00
parent cc54baa4ca
commit 9be986d627
15 changed files with 277 additions and 86 deletions
+5 -3
View File
@@ -163,7 +163,9 @@ async def get_tracking_source_with_stats(
type=source.type,
created_by=source.created_by,
created_at=source.created_at,
registrations=stats.get("registrations", 0),
trials=stats.get("trials", 0),
payments=stats.get("payments", 0),
registrations=(stats["registrations"] if stats else 0),
trials=(stats["trials"] if stats else 0),
payments=(stats["payments"] if stats else 0),
total_amount=(float(stats["total_amount"]) if stats else 0.0),
monthly=(stats["monthly"] if stats and "monthly" in stats else []),
)