Skip to content

Commit

Permalink
Moved DataLoader instantiation out of get_data for testing, yeah, liv…
Browse files Browse the repository at this point in the history
…e testing
  • Loading branch information
daenuprobst committed Mar 26, 2020
1 parent efb12c6 commit 0d2ef1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
app.title = "Swiss COVID19 Tracker"

style = StyleLoader()

data = DataLoader(parser)

cache = Cache(app.server, config={"CACHE_TYPE": "simple",})


@cache.memoize(timeout=600)
def get_data():
return DataLoader(parser)
return data


def serve_layout():
Expand Down

0 comments on commit 0d2ef1e

Please sign in to comment.