eas
This commit is contained in:
parent
4efb65ea44
commit
58ae586d7b
2
app.py
2
app.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user