Fix importing backups that contain challenge topics and custom fields (#2070)

* Fix issues with importing backups that contain Challenge Topics and Custom Fields
This commit is contained in:
Kevin Chung
2022-03-19 11:32:17 -04:00
committed by GitHub
parent de9f2311eb
commit c0f171f6bc

View File

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