Skip to content
Snippets Groups Projects
Commit ce8ee14f authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-849: import fix

parent b54a2f9d
No related branches found
No related tags found
3 merge requests!634WIP: COBALT commissioning delta,!507Resolve TMSS-820,!481Draft: SW-971 SW-973 SW-975: Various fixes to build LOFAR correctly.
......@@ -30,7 +30,6 @@ from lofar.common import dbcredentials
from lofar.common.util import single_line_with_single_spaces
from distutils.util import strtobool
from datetime import datetime, timedelta
from lofar.sas.tmss.tmss.tmssapp.models import Subtask
class TMSSPGListener(PostgresListener):
......@@ -204,6 +203,7 @@ class TMSSPGListener(PostgresListener):
because their status is implicitly derived from their subtask(s)
send both object.updated and status change events'''
try:
from lofar.sas.tmss.tmss.tmssapp.models import Subtask
subtask = Subtask.objects.get(id=subtask_id)
# check if task is new or changed... If so, send event.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment