added chowdown importer

This commit is contained in:
vabene1111
2021-02-09 17:15:47 +01:00
parent 58c5b2c301
commit 6ba1ff4505
6 changed files with 112 additions and 8 deletions

View File

@ -6,6 +6,7 @@ from django.utils.translation import gettext as _
from cookbook.forms import ExportForm, ImportForm, ImportExportBase
from cookbook.helper.permission_helper import group_required
from cookbook.integration.chowdown import Chowdown
from cookbook.integration.default import Default
from cookbook.integration.mealie import Mealie
from cookbook.integration.nextcloud_cookbook import NextcloudCookbook
@ -22,6 +23,8 @@ def get_integration(request, export_type):
return NextcloudCookbook(request)
if export_type == ImportExportBase.MEALIE:
return Mealie(request)
if export_type == ImportExportBase.CHOWDOWN:
return Chowdown(request)
@group_required('user')