webcheck commit: r464 - webcheck/webcheck
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
webcheck commit: r464 - webcheck/webcheck
- From: Commits of the webcheck project <webcheck-commits [at] lists.arthurdejong.org>
- To: webcheck-commits [at] lists.arthurdejong.org
- Reply-to: webcheck-users [at] lists.arthurdejong.org
- Subject: webcheck commit: r464 - webcheck/webcheck
- Date: Wed, 16 Nov 2011 12:19:16 +0100 (CET)
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/
- webcheck commit: r464 - webcheck/webcheck,
Commits of the webcheck project