Created
March 2, 2016 12:49
-
-
Save ak1211/72787235c64f7e4501c7 to your computer and use it in GitHub Desktop.
覚えておいた開始ログ,終了ログの対応関係を調べる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for start in start_session_logs: | |
term = next(itertools.ifilter(lambda it:it["DateTime"] >= start["DateTime"] and it["IP"] == start["IP"], terminate_session_logs), None) | |
if term: | |
start["terminate log"] = term | |
term["start log"] = start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment