lower mastodon.social default hits in known instances to 0
if the user uses mastodon.social, it will be raised to 1, if not then it can be replaced by the third instance the user logs into
This commit is contained in:
parent
4c7a919079
commit
5cb84e1fbd
|
@ -30,7 +30,7 @@ class KnownInstances(object):
|
|||
def __default(self):
|
||||
self.instances = [{
|
||||
"instance": "mastodon.social",
|
||||
"hits": 5
|
||||
"hits": 0
|
||||
}]
|
||||
|
||||
def clear(self):
|
||||
|
|
|
@ -5,7 +5,7 @@ def test_known_instances_defaults():
|
|||
ki = KnownInstances()
|
||||
assert len(ki.instances) == 1
|
||||
assert ki.instances[0]['instance'] == 'mastodon.social'
|
||||
assert ki.instances[0]['hits'] > 0
|
||||
assert isinstance(ki.instances[0]['hits'], int)
|
||||
|
||||
|
||||
def test_known_instances_clear():
|
||||
|
|
Loading…
Reference in New Issue