don't do lookup on url if they passed an id to track_url
This commit is contained in:
parent
b23b830419
commit
9fb39db5cd
@ -104,8 +104,7 @@ class Kernel(object):
|
||||
|
||||
if id:
|
||||
tracked = self.db.tracked.find_one({'_id': id})
|
||||
|
||||
if not tracked:
|
||||
else:
|
||||
tracked = self.db.tracked.find_one({'url': url})
|
||||
|
||||
# if id exists, ensure that URL and doc_class haven't changed
|
||||
|
Loading…
Reference in New Issue
Block a user