Skip to content

Commit

Permalink
fix timestamp of end date in webservice
Browse files Browse the repository at this point in the history
  • Loading branch information
ikasamah committed Feb 15, 2011
1 parent 0d2bc35 commit 4d38b22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webservice/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def generate(request):

startdate = strtotimestamp(request.form.get('startdate'))
enddate = strtotimestamp(request.form.get('enddate'))
if enddate:
enddate += 86399 # 11:59:59
groups = user.get_measure_groups(startdate=startdate, enddate=enddate)
if len(groups) == 0:
raise GenerateError('no weight scale data is available')
Expand Down

0 comments on commit 4d38b22

Please sign in to comment.