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

Commit

Permalink
max_stop to None for new line
Browse files Browse the repository at this point in the history
  • Loading branch information
grewn0uille committed Mar 7, 2018
1 parent 4cd1b8f commit 5f8e61d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sherlog/log_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def get_max_stop(dbsession):
return date


def insert_log(line, dbsession, max_stop):
def insert_log(line, dbsession, max_stop=None):
if 'Archive' not in line:
title = line.split('(')[0]
server_name = get_name(title)
desc = convert_to_dict(line.split(title)[1])
if desc['end'] > max_stop:
if max_stop and desc['end'] > max_stop:
log = Log(**build_log(server_name, desc))
dbsession.add(log)

Expand Down

0 comments on commit 5f8e61d

Please sign in to comment.