This commit is contained in:
Alexandru 2024-09-17 21:33:37 +03:00
parent 4efb65ea44
commit 58ae586d7b

2
app.py
View File

@ -13,7 +13,7 @@ app.secret_key = hashlib.md5(os.urandom(32)).hexdigest()
def parsetime(value): def parsetime(value):
return time.strftime('%Y-%m-%d %H:%M', time.localtime(value)) return time.strftime('%Y-%m-%d %H:%M', time.localtime(value))
@app.route('/') @app.route('/gb')
def index(): def index():
statement = 'SELECT "id", "name", "website", "comment", "date", "ip" FROM "entries" ORDER BY id DESC' statement = 'SELECT "id", "name", "website", "comment", "date", "ip" FROM "entries" ORDER BY id DESC'
cs.execute(statement) cs.execute(statement)