Validate duplicate URLs

This commit is contained in:
dgtlmoon
2021-04-10 14:31:57 +09:30
parent a58679f983
commit c7169ebba1
2 changed files with 7 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ class ChangeDetectionStore:
def url_exists(self, url):
# Probably their should be dict...
for watch in self.data['watching']:
for watch in self.data['watching'].values():
if watch['url'] == url:
return True