mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Clear caches after populate and enable foreign keys in SQLite
This commit is contained in:
@@ -7,6 +7,7 @@ import random
|
||||
import argparse
|
||||
|
||||
from CTFd import create_app
|
||||
from CTFd.cache import clear_config, clear_standings, clear_pages
|
||||
from CTFd.models import (
|
||||
Users,
|
||||
Teams,
|
||||
@@ -338,3 +339,7 @@ if __name__ == "__main__":
|
||||
|
||||
db.session.commit()
|
||||
db.session.close()
|
||||
|
||||
clear_config()
|
||||
clear_standings()
|
||||
clear_pages()
|
||||
|
||||
Reference in New Issue
Block a user