Skip to content

Commit

Permalink
fix: #309
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Sep 9, 2024
1 parent 217ddf3 commit 34e0494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions insights/insights/query_builders/sql_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ def add_start_and_end_time(dates):
if not dates:
return dates
if type(dates[0]) == str:
return [dates[0] + " 00:00:00", dates[1] + " 23:59:59"]
return [dates[0] + " 00:00", dates[1] + " 23:59"]
if type(dates[0]) == datetime or type(dates[0]) == date:
return [dates[0].strftime("%Y-%m-%d 00:00:00"), dates[1].strftime("%Y-%m-%d 23:59:59")]
return [dates[0].strftime("%Y-%m-%d 00:00"), dates[1].strftime("%Y-%m-%d 23:59")]


class BinaryOperations:
Expand Down

0 comments on commit 34e0494

Please sign in to comment.