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

Commit

Permalink
Remove interval
Browse files Browse the repository at this point in the history
  • Loading branch information
grewn0uille committed Feb 23, 2018
1 parent d7fc58e commit 77ac5b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sherlog/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, *args, **kwargs):

self.before_request(self.before)

self.route('/graph/<server_name>/<interval>/<ping_service>',
self.route('/graph/<server_name>/<ping_service>',
methods=['GET', 'POST'])(get_graph)

rest = UnRest(self, self.create_session())
Expand All @@ -27,8 +27,8 @@ def before(self):
g.session = self.create_session()


def get_graph(server_name, interval, ping_service):
graph.build_graph(server_name, interval, ping_service)
def get_graph(server_name, ping_service):
graph.build_graph(server_name, ping_service)


app = Sherlog(__name__)
2 changes: 1 addition & 1 deletion sherlog/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_data(server_name, ping_service, start):
return data


def build_graph(server_name, interval, ping_service):
def build_graph(server_name, ping_service):
begin_month = datetime.datetime.today().replace(
day=1, hour=0, minute=0, second=0, microsecond=0)
data = get_data(server_name, ping_service, begin_month)
Expand Down

0 comments on commit 77ac5b8

Please sign in to comment.