mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
Incorrect docstrings in backup_routes
This commit is contained in:
parent
6a8b0f1bb4
commit
89674b2580
@ -9,7 +9,6 @@ router = APIRouter()
|
||||
|
||||
@router.get("/api/backups/available/", tags=["Import / Export"])
|
||||
async def available_imports():
|
||||
""" Returns this weeks meal plan """
|
||||
imports = []
|
||||
templates = []
|
||||
for archive in BACKUP_DIR.glob("*.zip"):
|
||||
@ -23,7 +22,6 @@ async def available_imports():
|
||||
|
||||
@router.post("/api/backups/export/database/", tags=["Import / Export"], status_code=201)
|
||||
async def export_database(data: BackupJob):
|
||||
""" Returns this weeks meal plan """
|
||||
|
||||
try:
|
||||
export_path = export_db(data.tag, data.template)
|
||||
@ -40,7 +38,6 @@ async def export_database(data: BackupJob):
|
||||
"/api/backups/{file_name}/import/", tags=["Import / Export"], status_code=200
|
||||
)
|
||||
async def import_database(file_name: str):
|
||||
""" Returns this weeks meal plan """
|
||||
imported = import_from_archive(file_name)
|
||||
return imported
|
||||
|
||||
@ -51,7 +48,6 @@ async def import_database(file_name: str):
|
||||
status_code=200,
|
||||
)
|
||||
async def delete_backup(backup_name: str):
|
||||
""" Returns this weeks meal plan """
|
||||
|
||||
try:
|
||||
BACKUP_DIR.joinpath(backup_name).unlink()
|
||||
|
Loading…
x
Reference in New Issue
Block a user