Implement configurable chanlimit and add more fields about LIST output to Redis

This commit is contained in:
2022-08-13 20:37:21 +01:00
parent 291968fbc7
commit 43c5625b3b
3 changed files with 16 additions and 2 deletions

View File

@@ -86,7 +86,6 @@ class TestChanKeep(TestCase):
# list_insig = [x for x in listinfo_num if x < mean]
list_sig = [x for x in listinfo if x[1] > mean]
chosen = sorted(list_sig, reverse=True, key=lambda x: x[1])[:max_chans]
print("CHOSEN", chosen)
self.assertEqual(len(chosen), 5)
@patch("modules.chankeep.keepChannels")