mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Pages functionality improved (#267)
* Pages now support Markdown * Pages now have a preview tab * Adding a media library to Pages
This commit is contained in:
@@ -119,3 +119,10 @@ def gen_tracking(db, ip, team):
|
||||
db.session.add(tracking)
|
||||
db.session.commit()
|
||||
return tracking
|
||||
|
||||
|
||||
def gen_page(db, route, html):
|
||||
page = Pages(route, html)
|
||||
db.session.add(page)
|
||||
db.session.commit()
|
||||
return page
|
||||
|
||||
Reference in New Issue
Block a user