Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Commit

Permalink
Revert "Remove max stop condition on insert"
Browse files Browse the repository at this point in the history
This reverts commit 7a3768f.
  • Loading branch information
grewn0uille committed Mar 8, 2018
1 parent 7a3768f commit c96dd3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sherlog/log_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def insert_log(line, dbsession, max_stop):
title = line.split('(')[0]
server_name = get_name(title)
desc = convert_to_dict(line.split(title)[1])
log = Log(**build_log(server_name, desc))
dbsession.add(log)
if desc['end'] > max_stop:
log = Log(**build_log(server_name, desc))
dbsession.add(log)


def insert_missing_lines():
Expand Down

0 comments on commit c96dd3f

Please sign in to comment.