Commit 6cb1f70b authored by echel0n's avatar echel0n

Fixed #SICKRAGE-APP-4BN - can't compare datetime.datetime to datetime.date...

Fixed #SICKRAGE-APP-4BN - can't compare datetime.datetime to datetime.date when in display show view
parent f8ae61bc
...@@ -897,7 +897,8 @@ class DisplayShowHandler(BaseHandler, ABC): ...@@ -897,7 +897,8 @@ class DisplayShowHandler(BaseHandler, ABC):
today = datetime.datetime.now().replace(tzinfo=sickrage.app.tz).date() today = datetime.datetime.now().replace(tzinfo=sickrage.app.tz).date()
air_date = episode_object.airdate air_date = episode_object.airdate
if air_date.year >= 1970 or show_obj.network: if air_date.year >= 1970 or show_obj.network:
air_date = SRDateTime(sickrage.app.tz_updater.parse_date_time(episode_object.airdate, show_obj.airs, show_obj.network), convert=True).dt air_date = SRDateTime(sickrage.app.tz_updater.parse_date_time(episode_object.airdate, show_obj.airs, show_obj.network),
convert=True).dt.date()
if cur_ep_cat == Overview.WANTED and air_date < today: if cur_ep_cat == Overview.WANTED and air_date < today:
cur_ep_cat = Overview.MISSED cur_ep_cat = Overview.MISSED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment