Skip to content

Commit

Permalink
🚑 Fix the query for last7 days (#188)
Browse files Browse the repository at this point in the history
* fix: create the applets collection if it isn't already there

* dbg: adding a print statement ot debug on the dev server

* fix: aggregate works from pythona and app

* 🔖 v0.4.7

* enh: made the greater than or equal datetime be the beginning of the day
  • Loading branch information
akeshavan authored and shnizzedy committed Sep 25, 2019
1 parent 72814fd commit 43c0854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion girderformindlogger/utility/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def aggregateAndSave(item, informant):
endDate = datetime.now(
tzlocal.get_localzone()
)
startDate = endDate - timedelta(days=7)
startDate = (endDate - timedelta(days=7)).date()
print("From {} to {}".format(
startDate.strftime("%c"),
endDate.strftime("%c")
Expand Down

0 comments on commit 43c0854

Please sign in to comment.