Skip to content
Snippets Groups Projects
Commit 903aabac authored by Gandalf's avatar Gandalf Committed by Jason Salyers
Browse files

[JES] Re-enable blacklist loading

parent 23f96f8f
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,6 @@ class Mutes:
def load(self):
"""Reload all accounts from irredeemables endpoint and global lists."""
return
self.accounts = set(_read_url(self.url).decode('utf8').split())
jsn = _read_url(self.blacklist_api_url + "/blacklists")
self.blist = set(json.loads(jsn))
......@@ -83,7 +82,7 @@ class Mutes:
if not observer or not context:
return {}
if perf() - cls.instance().fetched > 3600:
if int(perf() - cls.instance().fetched) > 3600:
cls.instance().load()
blacklisted_users = {}
......@@ -101,7 +100,6 @@ class Mutes:
@classmethod
def lists(cls, name, rep):
"""Return blacklists the account belongs to."""
return[]
assert name
inst = cls.instance()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment