jobs - fix line edit

This commit is contained in:
bunkerity 2021-07-21 22:14:05 +02:00
parent 280d189864
commit 26dc796155
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 2 additions and 2 deletions

View File

@ -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"%-")

View File

@ -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"%-")