Update main.py
parent
20f92bd763
commit
3bfb2d932f
13
main.py
13
main.py
|
@ -12,6 +12,10 @@ from functools import wraps
|
|||
from datetime import datetime
|
||||
import os
|
||||
import logging
|
||||
import csv
|
||||
from sqlalchemy import create_engine, Table, MetaData
|
||||
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
app.secret_key = 'bebra'
|
||||
|
@ -324,5 +328,14 @@ def downvote_comment(comment_id):
|
|||
def about():
|
||||
return render_template("about.html")
|
||||
|
||||
"""
|
||||
def recreate_database():
|
||||
if os.path.exists('Picture_Puzzle_web.db'):
|
||||
os.remove('Picture_Puzzle_web.db')
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
"""
|
||||
|
||||
if __name__ == '__main__':
|
||||
# recreate_database()
|
||||
app.run(debug=True)
|
Loading…
Reference in New Issue