don't do lookup on url if they passed an id to track_url

This commit is contained in:
James Turk 2012-04-17 18:09:11 -04:00
parent b23b830419
commit 9fb39db5cd

View File

@ -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