From c0f171f6bc70dccbfea0cc53f9c2dbeef7c75ccf Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sat, 19 Mar 2022 11:32:17 -0400 Subject: [PATCH] Fix importing backups that contain challenge topics and custom fields (#2070) * Fix issues with importing backups that contain Challenge Topics and Custom Fields --- CTFd/utils/exports/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CTFd/utils/exports/__init__.py b/CTFd/utils/exports/__init__.py index 572d3e20..089077d9 100644 --- a/CTFd/utils/exports/__init__.py +++ b/CTFd/utils/exports/__init__.py @@ -186,6 +186,7 @@ def import_ctf(backup, erase=True): "db/unlocks.json", "db/awards.json", "db/tags.json", + "db/topics.json", "db/submissions.json", "db/solves.json", "db/files.json", @@ -193,6 +194,7 @@ def import_ctf(backup, erase=True): "db/pages.json", "db/tracking.json", "db/config.json", + "db/fields.json", ] # We want to insert certain database tables first so we are specifying