Skip to content

Commit

Permalink
Load config with app context. (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Dec 4, 2019
1 parent 45acb9d commit 6044172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jazzband/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def init_app(self, app):

@signals.job_started.connect_via(namespace)
def job_started(*args, **kwargs):
github.load_config()
with app.app_context():
github.load_config()

for tasks in [member_tasks, project_tasks]:
self.register_tasks(app, tasks)
Expand Down

0 comments on commit 6044172

Please sign in to comment.