fix typo for storage stats interface
This commit is contained in:
@@ -16,7 +16,7 @@ bp = Blueprint("settings", __name__)
|
|||||||
def get_storage_stats():
|
def get_storage_stats():
|
||||||
"""Calculate storage statistics for the downloads directory."""
|
"""Calculate storage statistics for the downloads directory."""
|
||||||
config = get_settings()
|
config = get_settings()
|
||||||
downloads_path = Path(config.downloads_path)
|
downloads_path = Path(config.download_path)
|
||||||
|
|
||||||
if not downloads_path.exists():
|
if not downloads_path.exists():
|
||||||
return {"total_size": 0, "total_size_formatted": "0 B", "file_count": 0}
|
return {"total_size": 0, "total_size_formatted": "0 B", "file_count": 0}
|
||||||
|
|||||||
Reference in New Issue
Block a user