jobs - fix line edit
This commit is contained in:
parent
280d189864
commit
26dc796155
|
@ -10,5 +10,5 @@ class Referrers(Job) :
|
|||
regex = r"^.+$"
|
||||
super().__init__(name, data, filename, redis_host=redis_host, type=type, regex=regex, copy_cache=copy_cache)
|
||||
|
||||
def __edit(self, chunk) :
|
||||
def _Job__edit(self, chunk) :
|
||||
return chunk.replace(b".", b"%.").replace(b"-", b"%-")
|
||||
|
|
|
@ -10,5 +10,5 @@ class UserAgents(Job) :
|
|||
regex = r"^.+$"
|
||||
super().__init__(name, data, filename, redis_host=redis_host, type=type, regex=regex, copy_cache=copy_cache)
|
||||
|
||||
def __edit(self, chunk) :
|
||||
def _Job__edit(self, chunk) :
|
||||
return chunk.replace(b"\\ ", b" ").replace(b"\\.", b"%.").replace(b"\\\\", b"\\").replace(b"-", b"%-")
|
||||
|
|
Loading…
Reference in New Issue