Skip to content

Commit

Permalink
Fixed whitenova end time
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrodri committed Jul 28, 2022
1 parent f60272f commit 6c1b8c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/srcs/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_time_between_dates(user_login, start_date, end_date, white_nova_start) -

@app.route('/', methods=["GET"])
def index():
white_nova_start = pendulum.from_format('2022-09-15 12', 'YYYY-MM-DD HH')
white_nova_start = pendulum.from_format('2022-07-15 10', 'YYYY-MM-DD HH')
options = request.args.to_dict()
user_login = options.get('login')
date_range = get_nova_range(white_nova_start)
Expand All @@ -65,7 +65,7 @@ def index():
return response

def historic():
white_nova_start = pendulum.from_format('2022-09-15 12', 'YYYY-MM-DD HH')
white_nova_start = pendulum.from_format('2022-07-15 10', 'YYYY-MM-DD HH')
options = request.args.to_dict()
user_login = options.get('login')

Expand All @@ -85,7 +85,7 @@ def historic():
return len(historic.json())

def events():
white_nova_start = pendulum.from_format('2022-09-15 12', 'YYYY-MM-DD HH')
white_nova_start = pendulum.from_format('2022-07-15 10', 'YYYY-MM-DD HH')
options = request.args.to_dict()
user_login = options.get('login')
date_range = get_nova_range(white_nova_start)
Expand Down

0 comments on commit 6c1b8c5

Please sign in to comment.