<reponame>franpessoa/covid19-data
from flask import Flask, render_template
from covidapi_py import getdata

app = Flask('')

headings = ('Nome', 'Casos', 'Mortes', 'Mortes/100 Casos')
data = getdata()

@app.route('/')
def home():
    return render_template('table.html', headings=headings, data=data)

from flask import Flask, render_template
from covidapi_py import getdata

app = Flask('')

headings = ('Nome', 'Casos', 'Mortes', 'Mortes/100 Casos')
data = getdata()

@app.route('/')
def home():
    return render_template('table.html', headings=headings, data=data)