Skip to content

Instantly share code, notes, and snippets.

@ak1211
Created March 2, 2016 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ak1211/75f8bb1f92a519daab9a to your computer and use it in GitHub Desktop.
Save ak1211/75f8bb1f92a519daab9a to your computer and use it in GitHub Desktop.
対応の評価は開始ログの時間より終了ログが後であることとIPアドレスが一致すること
term = next(itertools.ifilter(lambda it:it["DateTime"] >= start["DateTime"] and it["IP"] == start["IP"], terminate_session_logs), None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment