Skip to content

Commit

Permalink
Update to v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kid1194 committed Sep 25, 2022
1 parent 6da1702 commit 985b41a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions active_users/api/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ def get_users(user_types):
if sess_list and not isinstance(sess_list, list):
sess_list = [sess_list]
if sess_list and isinstance(sess_list, list):
for i, v in enumerate(sess_list):
idx = 0
for v in sess_list:
if v and isinstance(v, str):
tpv = cint(v)
if tpv:
tp[i] = -abs(tpv)
tp[idx] = -abs(tpv)
idx += 1
else:
return {"error": True, "message": "The system session expiry value is invalid."}
except Exception:
Expand Down

0 comments on commit 985b41a

Please sign in to comment.