From 9fb39db5cd484bf014a9c5bf983822616d97005c Mon Sep 17 00:00:00 2001 From: James Turk Date: Tue, 17 Apr 2012 18:09:11 -0400 Subject: [PATCH] don't do lookup on url if they passed an id to track_url --- oyster/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oyster/core.py b/oyster/core.py index 9ff7072..3ad4ba1 100644 --- a/oyster/core.py +++ b/oyster/core.py @@ -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