blob: 5c7430ae428b641ed9519716eeb0cf748d463f20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: ISC
#
# Copyright (C) 2019 rsiddharth <s@ricketyspace.net>
#
# This file is part of dingy.
#
from nfsw.auth import login_required
from nfsw.redis import redis
from flask import (
Blueprint, render_template, redirect, url_for
)
bp = Blueprint('epilogue', __name__)
@bp.route('/epilogue', endpoint='epilogue')
@login_required
def epilogue():
r = redis()
if r.exists('epilogue:done'):
return redirect(url_for('io'))
r.set('epilogue:done', 1)
return render_template('epilogue.html')
|