mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
fix 'CrawlUrl' object has no attribute 'priority' bug
This commit is contained in:
parent
4022cc0162
commit
32abfcac8a
@ -18,7 +18,7 @@ class CrawlUrl:
|
|||||||
self.priority_key = (priority << 32) | (hash(self.url) & (2**32 - 1))
|
self.priority_key = (priority << 32) | (hash(self.url) & (2**32 - 1))
|
||||||
|
|
||||||
def get_priority(self):
|
def get_priority(self):
|
||||||
return self.priority >> 32
|
return self.priority_key >> 32
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def host(self):
|
def host(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user