fix 'CrawlUrl' object has no attribute 'priority' bug

This commit is contained in:
Noah Levitt 2015-07-08 17:51:09 -07:00
parent 4022cc0162
commit 32abfcac8a

View File

@ -18,7 +18,7 @@ class CrawlUrl:
self.priority_key = (priority << 32) | (hash(self.url) & (2**32 - 1))
def get_priority(self):
return self.priority >> 32
return self.priority_key >> 32
@property
def host(self):