Small update.
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from coronaflask.app import app
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
app.run()
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from flask import Flask, render_template
|
from flask import Flask, render_template
|
||||||
from markupsafe import escape
|
from markupsafe import escape
|
||||||
|
|
||||||
@@ -19,12 +17,6 @@ def world():
|
|||||||
|
|
||||||
@app.route('/<place>')
|
@app.route('/<place>')
|
||||||
def cor(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)
|
return render_template('index.html', place=place, figure=Cor.plot_cases(escape(place)), regions=Cor.regions)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
app.run()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -6,7 +6,7 @@ with open('README.md', 'r') as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='coronaflask',
|
name='coronaflask',
|
||||||
version='2022.1.0',
|
version='2022.1.1',
|
||||||
author='Wim Pomp',
|
author='Wim Pomp',
|
||||||
author_email='wimpomp@gmail',
|
author_email='wimpomp@gmail',
|
||||||
description='Flask for a corona graph plotting website.',
|
description='Flask for a corona graph plotting website.',
|
||||||
|
|||||||
Reference in New Issue
Block a user