|
@ -51,10 +51,11 @@ def send_img(path): |
|
|
return send_from_directory('static/img', path) |
|
|
return send_from_directory('static/img', path) |
|
|
|
|
|
|
|
|
@app.route('/ordinary/set_session') |
|
|
@app.route('/ordinary/set_session') |
|
|
@limiter.limit("3 / hour; 1 / 5 minute") |
|
|
|
|
|
|
|
|
@limiter.limit("2 / hour; 1 / 5 minute") |
|
|
def set_session(): |
|
|
def set_session(): |
|
|
if 'uid' not in session: |
|
|
if 'uid' not in session: |
|
|
session['uid'] = random.randint(0, 2000000000) |
|
|
session['uid'] = random.randint(0, 2000000000) |
|
|
|
|
|
session.permanent = True |
|
|
return redirect('.') |
|
|
return redirect('.') |
|
|
|
|
|
|
|
|
@app.route('/ordinary/') |
|
|
@app.route('/ordinary/') |
|
|