Initial commit
This commit is contained in:
21
fpt
Executable file
21
fpt
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
from flask import Flask, escape, request
|
||||
from time import sleep, ctime
|
||||
from flaskpagethread import FlaskPageThread
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
def s(delay):
|
||||
sleep(delay)
|
||||
return(ctime() + "\n")
|
||||
|
||||
page = FlaskPageThread(3, s, 1)
|
||||
page.start()
|
||||
|
||||
@app.route('/')
|
||||
def root():
|
||||
return(page.page)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
Reference in New Issue
Block a user