feat: Paprika/Mealie Migration support (#873)

* feat:  paprika support - partial

* feat:  add full paprika support

* re-organize data directory

* add data directory auto-gen

* rewrite migration tests

* remove print statements

* remove hard-coded paths

* add auto-tag support

* add mealie migration support

* add looking for migraiton button
This commit is contained in:
Hayden
2021-12-09 19:52:53 -09:00
committed by GitHub
parent 5839992c19
commit 8d77f4b31e
76 changed files with 718 additions and 4056 deletions

View File

@@ -14,6 +14,7 @@ router = UserAPIRouter()
@router.post("", response_model=ReportSummary)
def start_data_migration(
add_migration_tag: bool = Form(False),
migration_type: SupportedMigrations = Form(...),
archive: UploadFile = File(...),
temp_path: str = Depends(temporary_zip_path),
@@ -23,4 +24,4 @@ def start_data_migration(
with temp_path.open("wb") as buffer:
shutil.copyfileobj(archive.file, buffer)
return gm_service.migrate(migration_type, temp_path)
return gm_service.migrate(migration_type, add_migration_tag, temp_path)