Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Merge branch 'main' into blueheron786/api-stats

Daoud Clarke15ec8a8e035e
diff --cc mwmbl/platform/schemas.py
index 104f6a6,a5ce602..35273a1
--- a/mwmbl/platform/schemas.py
+++ b/mwmbl/platform/schemas.py
@@@ -12,17 -12,16 +12,25 @@@ class UserProfileResponse(Schema)
email: str
plan: str
email_confirmed: bool
+ 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 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