Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Fix failing tests; requires re-addition of UserStatsResponse model.

blueheron786f2482849ab6c
diff --git a/mwmbl/platform/schemas.py b/mwmbl/platform/schemas.py
index 5bf429b..104f6a6 100644
--- a/mwmbl/platform/schemas.py
+++ b/mwmbl/platform/schemas.py
@@ -15,6 +15,14 @@ class UserProfileResponse(Schema):
date_joined: datetime
+class UserStatsResponse(Schema):
+ """Per-user contribution stats for the logged-in user."""
+
+ username: str
+ results_indexed_today: int
+ results_indexed_daily: dict[str, int]
+
+
class SubscriptionResponse(Schema):
status: str
max_monthly_spend_cents: int