reformat files with black
reformat files with black
This commit is contained in:
parent
028399c496
commit
af3e4ab1ce
5 changed files with 475 additions and 387 deletions
10
bumper.py
10
bumper.py
|
|
@ -52,14 +52,10 @@ def main():
|
|||
bumper_clients=bumper.bumper_clients_var,
|
||||
)
|
||||
conf_server = bumper.ConfServer(
|
||||
conf_address_443,
|
||||
usessl=True,
|
||||
helperbot=mqtt_helperbot,
|
||||
conf_address_443, usessl=True, helperbot=mqtt_helperbot
|
||||
)
|
||||
conf_server_2 = bumper.ConfServer(
|
||||
conf_address_8007,
|
||||
usessl=False,
|
||||
helperbot=mqtt_helperbot,
|
||||
conf_address_8007, usessl=False, helperbot=mqtt_helperbot
|
||||
)
|
||||
|
||||
# add user
|
||||
|
|
@ -93,7 +89,7 @@ def main():
|
|||
bumper.revoke_expired_tokens()
|
||||
disconnected_clients = bumper.get_disconnected_xmpp_clients()
|
||||
for client in disconnected_clients:
|
||||
xmpp_server.remove_client_byuid(client['userid'])
|
||||
xmpp_server.remove_client_byuid(client["userid"])
|
||||
|
||||
except KeyboardInterrupt:
|
||||
bumper.bumperlog.info("Bumper Exiting - Keyboard Interrupt")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue