1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 05:25:26 +02:00

fix: Update admin_backups.py to handle API backup file uploads correctly. (#5715)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Jason Frank 2025-07-18 17:14:33 -05:00 committed by GitHub
parent d2e9c04af1
commit 108ac40b22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,6 +94,7 @@ class AdminBackupController(BaseAdminController):
if not dest.is_file(): if not dest.is_file():
raise HTTPException(status.HTTP_400_BAD_REQUEST) raise HTTPException(status.HTTP_400_BAD_REQUEST)
return SuccessResponse.respond("Upload successful")
@router.post("/{file_name}/restore", response_model=SuccessResponse) @router.post("/{file_name}/restore", response_model=SuccessResponse)
def import_one(self, file_name: str): def import_one(self, file_name: str):