From 00f4bf26a925070cc9fb4e487085d73dd3ecdde1 Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Sat, 16 Jun 2018 21:04:55 -0700 Subject: [PATCH] Rename get_user_activity This function was actually getting _just_ the session IDs, not the whole session data. --- killstream/kill_stream.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/killstream/kill_stream.py b/killstream/kill_stream.py index a8f94d4..2398d01 100644 --- a/killstream/kill_stream.py +++ b/killstream/kill_stream.py @@ -120,8 +120,8 @@ def get_activity(): pass -def get_user_activity(user_id): - """Get current sessions for a specific user. +def get_user_session_ids(user_id): + """Get current session IDs for a specific user. Parameters ---------- @@ -131,7 +131,7 @@ def get_user_activity(user_id): Returns ------- list - The active sessions for the specific user ID. + The active session IDs for the specific user ID. """ sessions = get_activity() @@ -189,7 +189,7 @@ if __name__ == "__main__": if opts.jbop == 'stream': terminate_session(opts.sessionId, message) elif opts.jbop == 'allStreams': - streams = get_user_activity(opts.userId) + streams = get_user_session_ids(opts.userId) for session_id in streams: terminate_session(session_id, message)