removed index

This commit is contained in:
Simon Pirkelmann 2020-11-23 20:49:19 +01:00
parent 668c3e013f
commit 0ce64d027e

View File

@ -7,7 +7,7 @@ app = Flask(__name__)
def index(): def index():
coin = random.random() coin = random.random()
if coin >= 0.5: if coin >= 0.5:
return render_template('index.html') return "Lucky you!"
else: else:
raise Exception("Bad luck") raise Exception("Bad luck")