Use SQLite
This commit is contained in:
parent
942965d262
commit
20f38de611
8 changed files with 11 additions and 91 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue