Push newly created watches directly into the update check Queue.

This commit is contained in:
Leigh Morresi
2021-02-02 17:50:05 +01:00
parent bbd99c9aa9
commit 6a102374c6
2 changed files with 7 additions and 3 deletions

View File

@@ -128,15 +128,16 @@ class ChangeDetectionStore:
validators.url(url)
# @todo use a common generic version of this
new_uuid = str(uuid_builder.uuid4())
_blank = self.generic_definition.copy()
_blank.update({
'url': url,
'tag': tag,
'uuid': str(uuid_builder.uuid4())
'uuid': new_uuid
})
self.data['watching'].update({_blank['uuid']: _blank})
return new_uuid
def sync_to_json(self):