From 657ba576a8798b0def3e3d8d41f8bf831ded47d9 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 13 Apr 2015 14:25:09 -0400 Subject: [PATCH] Make sure to import app so that the DB proxy gets properly initialized --- workers/repositoryactioncounter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/workers/repositoryactioncounter.py b/workers/repositoryactioncounter.py index 1341cdfc9..5a73c194b 100644 --- a/workers/repositoryactioncounter.py +++ b/workers/repositoryactioncounter.py @@ -2,6 +2,7 @@ import logging from apscheduler.schedulers.blocking import BlockingScheduler +from app import app from data.database import Repository, LogEntry, RepositoryActionCount, db_random_func, fn from datetime import date, datetime, timedelta