Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Build: fix build-only lint errors

blueheron78669cbdac54367
diff --git a/mwmbl/crawler/stats.py b/mwmbl/crawler/stats.py
index 9b58c0c..4f04264 100644
--- a/mwmbl/crawler/stats.py
+++ b/mwmbl/crawler/stats.py
@@ -3,16 +3,13 @@ from datetime import date, datetime, timedelta, timezone
from glob import glob
from itertools import islice
from logging import getLogger
-from urllib.parse import urlparse
import django
from pydantic import BaseModel
from redis import Redis
from mwmbl.count_urls import get_counts, get_domain_result_count
-from mwmbl.crawler.batch import HashedBatch, Result, Results
-from mwmbl.crawler.urls import URLDatabase
-from mwmbl.indexer.update_urls import get_datetime_from_timestamp
+from mwmbl.crawler.batch import HashedBatch, Results
from mwmbl.utils import utc_today
logger = getLogger(__name__)
diff --git a/mwmbl/platform/schemas.py b/mwmbl/platform/schemas.py
index 104f6a6..5bf429b 100644
--- a/mwmbl/platform/schemas.py
+++ b/mwmbl/platform/schemas.py
@@ -15,14 +15,6 @@ 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