fix warnings
This commit is contained in:
parent
226f7556ce
commit
b48d3c8ad9
4 changed files with 4 additions and 6 deletions
|
|
@ -50,7 +50,6 @@ class ConfServer:
|
|||
|
||||
def confserver_app(self):
|
||||
self.app = web.Application(
|
||||
loop=asyncio.get_event_loop(),
|
||||
middlewares=[
|
||||
self.log_all_requests,
|
||||
],
|
||||
|
|
|
|||
|
|
@ -68,8 +68,7 @@ class portal_api_lg(plugins.ConfServerApp):
|
|||
logs = []
|
||||
logsroot = ET.fromstring(retcmd["resp"])
|
||||
if logsroot.attrib["ret"] == "ok":
|
||||
cleanlogs = logsroot.getchildren()
|
||||
for l in cleanlogs:
|
||||
for l in logsroot:
|
||||
cleanlog = {
|
||||
"ts": l.attrib["s"],
|
||||
"area": l.attrib["a"],
|
||||
|
|
|
|||
|
|
@ -570,8 +570,8 @@ class XMPPAsyncClient:
|
|||
if client:
|
||||
bumper.client_set_xmpp(client["resource"], True)
|
||||
|
||||
clientbindxml = xml.getchildren()
|
||||
clientresourcexml = clientbindxml[0].getchildren()
|
||||
clientbindxml = list(xml)
|
||||
clientresourcexml = list(clientbindxml[0])
|
||||
if self.devclass: # its a bot
|
||||
self.name = f"XMPP_Client_{self.uid}_{self.devclass}"
|
||||
self.bumper_jid = "{}@{}.ecorobot.net/atom".format(
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ async def test_confserver_exceptions():
|
|||
async def test_confserver_no_ssl():
|
||||
conf_server = bumper.ConfServer((HOST, 111111), usessl=False)
|
||||
conf_server.confserver_app()
|
||||
asyncio.create_task(conf_server.start_server())
|
||||
await conf_server.start_server()
|
||||
|
||||
|
||||
def test_get_milli_time():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue