Skip to content

Commit

Permalink
time adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
Proteseus committed Nov 6, 2023
1 parent aad623c commit 510235a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def iterate_orders(csv_file_path_orders):
# orders = session.query(Trackable).all()

now = datetime.now()
start_time = datetime(now.year, now.month, now.day, 22, 0, 0) - timedelta(days=1)
end_time = datetime(now.year, now.month, now.day, 22, 0, 0)
start_time = datetime(now.year, now.month, now.day, 12, 0, 0) - timedelta(days=1)
end_time = datetime(now.year, now.month, now.day, 12, 0, 0)
orders = session.query(Trackable).filter(Trackable.date >= start_time, Trackable.date <= end_time)


Expand Down

0 comments on commit 510235a

Please sign in to comment.