Reformat code with pre-commit

This commit is contained in:
2022-07-21 13:39:41 +01:00
parent 61f6715b20
commit 7c855e09c0
60 changed files with 547 additions and 278 deletions

View File

@@ -1,5 +1,6 @@
import main
class ListCommand:
def __init__(self, *args):
self.list(*args)
@@ -11,10 +12,10 @@ class ListCommand:
if not 1 in main.network[i].relays.keys():
info("Network has no first instance: %s" % i)
continue
if not i+"1" in main.IRCPool.keys():
if not i + "1" in main.IRCPool.keys():
info("No IRC instance: %s - 1" % i)
continue
main.IRCPool[i+"1"].list()
main.IRCPool[i + "1"].list()
success("Requested list with first instance of %s" % i)
return
elif length == 2:
@@ -24,10 +25,10 @@ class ListCommand:
if not 1 in main.network[spl[1]].relays.keys():
failure("Network has no first instance")
return
if not spl[1]+"1" in main.IRCPool.keys():
if not spl[1] + "1" in main.IRCPool.keys():
failure("No IRC instance: %s - 1" % spl[1])
return
main.IRCPool[spl[1]+"1"].list()
main.IRCPool[spl[1] + "1"].list()
success("Requested list with first instance of %s" % spl[1])
return
else: