mirror of
https://github.com/Xevion/thedrank.com.git
synced 2025-12-15 06:13:32 -06:00
19 lines
464 B
Python
19 lines
464 B
Python
from app import app
|
|
from flask import render_template
|
|
import os
|
|
import sys
|
|
|
|
i = int(open(os.path.join('app', 'static', 'viewcount.dat'), 'r').read())
|
|
def getIncrement(n=1):
|
|
i += 1
|
|
open(os.path.join, 'w').write(str(i))
|
|
return i
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('index.html', viewcount=getIncrement())
|
|
|
|
@app.route('/keybase.txt')
|
|
@app.route('/.well-known/keybase.txt')
|
|
def keybase():
|
|
return app.send_static_file('keybase.txt') |