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