mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 05:25:26 +02:00
removed unused import
This commit is contained in:
parent
1559b015af
commit
f73437df4f
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,5 @@
|
||||||
from fastapi import APIRouter, HTTPException
|
from fastapi import APIRouter, HTTPException
|
||||||
from models.backup_models import BackupJob, Imports
|
from models.backup_models import BackupJob, Imports
|
||||||
from pydantic.main import BaseModel
|
|
||||||
from services.backup_services import (
|
from services.backup_services import (
|
||||||
BACKUP_DIR,
|
BACKUP_DIR,
|
||||||
TEMPLATE_DIR,
|
TEMPLATE_DIR,
|
||||||
|
@ -29,6 +28,7 @@ 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):
|
||||||
"""Generates a backup of the recipe database in json format."""
|
"""Generates a backup of the recipe database in json format."""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
export_path = export_db(data.tag, data.template)
|
export_path = export_db(data.tag, data.template)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue