removed unused import

This commit is contained in:
Hayden 2021-01-09 12:56:58 -09:00
parent 1559b015af
commit f73437df4f

View File

@ -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: