File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def main():
105105 stuck_cutoff ,
106106 )
107107 filter = {"status" : STATUS .RUNNING , "last_change" : {"$lt" : stuck_cutoff }}
108- hosts_cursor = db .hosts .find (filter , {"owner" : True })
108+ hosts_cursor = db .HostDoc . collection .find (filter , {"owner" : True })
109109
110110 # Gather a set of all owners associated with these host docs
111111 logging .info ("Gathering all the owners associated with these host docs." )
@@ -125,7 +125,7 @@ def main():
125125 "Updating the host docs with stuck scans by setting their status to %s." ,
126126 STATUS .WAITING ,
127127 )
128- result = db .hosts .update_many (
128+ result = db .HostDoc . collection .update_many (
129129 filter ,
130130 {"$set" : {"status" : STATUS .WAITING }},
131131 )
You can’t perform that action at this time.
0 commit comments