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

minor fix

parent 6742c4ab
No related branches found
No related tags found
No related merge requests found
...@@ -241,7 +241,7 @@ class Subtask(RefreshFromDbInvalidatesCachedPropertiesMixin, ProjectPropertyMixi ...@@ -241,7 +241,7 @@ class Subtask(RefreshFromDbInvalidatesCachedPropertiesMixin, ProjectPropertyMixi
from lofar.sas.tmss.tmss.tmssapp.conversions import get_lofar2_stations from lofar.sas.tmss.tmss.tmssapp.conversions import get_lofar2_stations
lofar2_stations = get_lofar2_stations() lofar2_stations = get_lofar2_stations()
used_stations = self.specifications_doc.get('stations', {}).get('station_list', {}) used_stations = self.specifications_doc.get('stations', {}).get('station_list', {})
return all(station in lofar2_stations for station in used_stations) return len(used_stations)>0 and all(station in lofar2_stations for station in used_stations)
return False return False
@cached_property @cached_property
...@@ -251,7 +251,7 @@ class Subtask(RefreshFromDbInvalidatesCachedPropertiesMixin, ProjectPropertyMixi ...@@ -251,7 +251,7 @@ class Subtask(RefreshFromDbInvalidatesCachedPropertiesMixin, ProjectPropertyMixi
from lofar.sas.tmss.tmss.tmssapp.conversions import get_lofar2_stations from lofar.sas.tmss.tmss.tmssapp.conversions import get_lofar2_stations
lofar2_stations = get_lofar2_stations() lofar2_stations = get_lofar2_stations()
used_stations = self.specifications_doc.get('stations', {}).get('station_list', {}) used_stations = self.specifications_doc.get('stations', {}).get('station_list', {})
return any(station in lofar2_stations for station in used_stations) return len(used_stations)>0 and any(station in lofar2_stations for station in used_stations)
return False return False
@property @property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment