fix #77 CHECK CONFIG
This commit is contained in:
@@ -468,6 +468,12 @@ def admin():
|
||||
|
||||
db.execute("INSERT INTO pages (title, content) VALUES (?, ?)", (page_title, page_content))
|
||||
db.commit()
|
||||
|
||||
elif "favicon" in request.files:
|
||||
file = request.files["favicon"]
|
||||
filename = "favicon.ico"
|
||||
file.save(os.path.join(current_app.config["STATIC_FOLDER"], filename))
|
||||
|
||||
|
||||
users = db.execute("SELECT * FROM user").fetchall()
|
||||
front_log = db.execute("SELECT * FROM front_log ORDER BY start_time DESC").fetchall()
|
||||
|
||||
Reference in New Issue
Block a user