Skip to content
Snippets Groups Projects
Commit bf106fa1 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

### 0.0.17 Release

* Fixed #123 split RkiBundeslaenderService into two Services, one for bundeslaender and one for landkreise
* Fixed #128 add fields from csv to RkiLandkreiseImport
* Fixed #139 refactor RkiBundeslaenderServiceDownload to new method scheme introduced 07.02.2021
* Fixed #140 move WhoImport to RKI in: rk_service_import.py
* Fixed #125 implement RkiLandkreise
* Fixed #126 implement RkiBundeslaenderImport

### 0.0.18 Release
* Fixed #39 SQLalchemy instead of SQL: AllModelClasses.remove_all()
* Fixed #40 SQLalchemy instead of SQL: EcdcImport.get_date_rep()
* Fixed #41 SQLalchemy instead of SQL: EcdcImport.get_countries_of_continent()
* Fixed #107 SQLalchemy instead of SQL in: EcdcImport.get_countries_of_continent
* Fixed #109 SQLalchemy instead of SQL in: EcdcImport.get_date_rep
* Fixed #110 SQLalchemy instead of SQL in: EcdcImport.get_continent
parent cc2077e3
No related branches found
No related tags found
No related merge requests found
from flask import Flask from flask import Flask
from flask_cors import CORS from flask_cors import CORS
from flask_bs4 import Bootstrap
from flask_sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from logging.config import dictConfig from logging.config import dictConfig
from flask_admin import Admin from flask_admin import Admin
app = Flask('app')
CORS(app) def create_app():
app.config.from_object("config") app = Flask('app')
port = app.config['PORT'] CORS(app)
ITEMS_PER_PAGE = app.config['ITEMS_PER_PAGE'] Bootstrap(app)
DB_URL = 'postgresql+psycopg2://{user}:{pw}@{url}/{db}'.format( app.config.from_object("config")
user=app.config['POSTGRES_USER'], DB_URL = 'postgresql+psycopg2://{user}:{pw}@{url}/{db}'.format(
pw=app.config['POSTGRES_PW'], user=app.config['POSTGRES_USER'],
url=app.config['POSTGRES_URL'], pw=app.config['POSTGRES_PW'],
db=app.config['POSTGRES_DB']) url=app.config['POSTGRES_URL'],
app.config['SQLALCHEMY_DATABASE_URI'] = DB_URL db=app.config['POSTGRES_DB'])
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # silence the deprecation warning app.config['SQLALCHEMY_DATABASE_URI'] = DB_URL
run_run_with_debug = app.config['APP_DEBUGGER_ACTIVE'] app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # silence the deprecation warning
app.config['FLASK_ADMIN_SWATCH'] = 'superhero' app.config['FLASK_ADMIN_SWATCH'] = 'superhero'
return app
app = create_app()
admin = Admin(app, name='covid19admin', template_mode='bootstrap4') admin = Admin(app, name='covid19admin', template_mode='bootstrap4')
db = SQLAlchemy(app) db = SQLAlchemy(app)
db.create_all() db.create_all()
port = app.config['PORT']
run_run_with_debug = app.config['APP_DEBUGGER_ACTIVE']
ITEMS_PER_PAGE = app.config['ITEMS_PER_PAGE']
my_logging_config = { my_logging_config = {
'version': 1, 'version': 1,
'formatters': {'default': { 'formatters': {'default': {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment