mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-11 00:59:35 -04:00
fix 'CrawlUrl' object has no attribute 'priority' bug
This commit is contained in:
parent
4022cc0162
commit
32abfcac8a
1 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue