in osci/postprocess/osci_change_report/process.py [0:0]
def get_prev_day(date: datetime):
"""Get previous day from the date except 1st January"""
if date.month == 1 and date.day == 1:
return date
return date - timedelta(days=1)