mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Bootstrap beta 3, Regression fixes, bugfixes (#543)
* Upgrade to Bootstrap v4 beta 3 * Fix incorrect FontAwesome5 icon * Fixing regressions & code quality issues. Files, Tags & Hints now appear in the admin challenge preview. Fixed color issues with file buttons and badges. Pass script_root into challenge type plugin. * Fixing incorrect FontAwesome5 icon * Fix test for /admin/chals/<chalid> * Expand test to include tags, hints, files
This commit is contained in:
@@ -110,8 +110,11 @@ def gen_tag(db, chal, tag='tag_tag'):
|
||||
return tag
|
||||
|
||||
|
||||
def gen_file():
|
||||
pass
|
||||
def gen_file(db, chal, location):
|
||||
f = Files(chal, location)
|
||||
db.session.add(f)
|
||||
db.session.commit()
|
||||
return f
|
||||
|
||||
|
||||
def gen_flag(db, chal, flag='flag', key_type='static'):
|
||||
|
||||
Reference in New Issue
Block a user