lists.arthurdejong.org
RSS feed

webcheck commit: r464 - webcheck/webcheck

[Date Prev][Date Next] [Thread Prev][Thread Next]

webcheck commit: r464 - webcheck/webcheck



Author: devin
Date: Wed Nov 16 12:19:15 2011
New Revision: 464
URL: http://arthurdejong.org/viewvc/webcheck?revision=464&view=revision

Log:
support MAX_DEPTH == 0

Modified:
   webcheck/webcheck/crawler.py

Modified: webcheck/webcheck/crawler.py
==============================================================================
--- webcheck/webcheck/crawler.py        Wed Nov 16 12:18:19 2011        (r463)
+++ webcheck/webcheck/crawler.py        Wed Nov 16 12:19:15 2011        (r464)
@@ -254,7 +254,7 @@
 
     def get_links_to_crawl(self, session):
         links = session.query(Link).filter(Link.fetched == None)
-        if config.MAX_DEPTH:
+        if config.MAX_DEPTH != None:
             links = links.filter(Link.depth <= config.MAX_DEPTH)
         return links.filter(Link.yanked == None)
 
-- 
To unsubscribe send an email to
webcheck-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/webcheck-commits/