Fix #2
This commit is contained in:
pare
5e8e9064bb
commit
0e854876ad
S'han modificat 1 arxius amb 25 adicions i 20 eliminacions
|
@ -182,6 +182,8 @@ class Ejabberd:
|
||||||
|
|
||||||
response = self.__api_request(endpoint, data)
|
response = self.__api_request(endpoint, data)
|
||||||
|
|
||||||
|
if len(response.json()) > 0:
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
while i < len(response.json()):
|
while i < len(response.json()):
|
||||||
|
|
||||||
|
@ -209,6 +211,9 @@ class Ejabberd:
|
||||||
sessions_temp = sessions_dict.copy()
|
sessions_temp = sessions_dict.copy()
|
||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
|
else:
|
||||||
|
|
||||||
|
sessions_temp = sessions_dict.copy()
|
||||||
|
|
||||||
sessions = self.__json_allow_dict_attrs(sessions_temp)
|
sessions = self.__json_allow_dict_attrs(sessions_temp)
|
||||||
|
|
||||||
|
|
Loading…
Referencia en una nova incidència