Make sure last_update is an ascii encoded string.
This commit is contained in:
parent
d8e265011a
commit
1f2072f8c2
|
@ -163,7 +163,7 @@ class Core(CorePluginBase):
|
||||||
|
|
||||||
def update_info(self, blocklist):
|
def update_info(self, blocklist):
|
||||||
"""Updates blocklist info"""
|
"""Updates blocklist info"""
|
||||||
self.config["last_update"] = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")
|
self.config["last_update"] = str(datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT"))
|
||||||
self.config["list_size"] = os.path.getsize(blocklist)
|
self.config["list_size"] = os.path.getsize(blocklist)
|
||||||
|
|
||||||
def download_list(self, url=None):
|
def download_list(self, url=None):
|
||||||
|
|
Loading…
Reference in New Issue