Use SQLite

This commit is contained in:
Joakim Hellsén 2024-03-28 02:58:22 +01:00
commit 20f38de611
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
8 changed files with 11 additions and 91 deletions

View file

@ -15,13 +15,7 @@ def add_global_context(request: HttpRequest) -> dict[str, str | int]:
Returns:
A dictionary with the global context.
"""
from feedvault.stats import get_db_size # noqa: PLC0415
from .models import Feed # noqa: PLC0415
db_size: str = get_db_size()
amount_of_feeds: int = Feed.objects.count()
return {
"db_size": db_size,
"amount_of_feeds": amount_of_feeds,
}
return {"amount_of_feeds": amount_of_feeds}