mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user