In Python, if I wanted to do a check for all items from yesterday would I do something like:
from datetime import datetime, timedelta
if datetime.datetime.today() - timedelta(days=2) < item_to_check < datetime.datetime.today():
Would this pull all items from yesterday and is this the best way to do it?