misc changes
diff --git a/planetstack/observer/steps/sync_network_slivers.py b/planetstack/observer/steps/sync_network_slivers.py
index dfb9d8d..09dc7ed 100644
--- a/planetstack/observer/steps/sync_network_slivers.py
+++ b/planetstack/observer/steps/sync_network_slivers.py
@@ -9,6 +9,9 @@
requested_interval = 3600
provides=[NetworkSliver]
+ def fetch_pending(self):
+ return NetworkSliver.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
+
def call(self, failed=[]):
networkSlivers = NetworkSliver.objects.all()
networkSlivers_by_id = {}
diff --git a/planetstack/observer/steps/sync_site_privileges.py b/planetstack/observer/steps/sync_site_privileges.py
index de8976d..b1272ca 100644
--- a/planetstack/observer/steps/sync_site_privileges.py
+++ b/planetstack/observer/steps/sync_site_privileges.py
@@ -10,7 +10,7 @@
provides=[SitePrivilege]
def fetch_pending(self):
- return Network.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
+ return SitePrivilege.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
def sync_record(self, user):
if site_priv.user.kuser_id and site_priv.site.tenant_id: