Small update.

This commit is contained in:
Wim Pomp
2022-01-25 15:57:27 +01:00
parent 63c3964036
commit be57e18b99
3 changed files with 3 additions and 17 deletions

View File

@@ -1,5 +1,3 @@
#!/usr/bin/env python3
from flask import Flask, render_template
from markupsafe import escape
@@ -19,12 +17,6 @@ def world():
@app.route('/<place>')
def cor(place):
if place not in Cor.regions:
place = 'World'
return render_template('index.html', place=place, figure=Cor.plot_cases(escape(place)), regions=Cor.regions)
def main():
app.run()
if __name__ == '__main__':
main()