Skip to content

Commit

Permalink
Merge pull request #463 from DCC-Lab/version-check-backcompat
Browse files Browse the repository at this point in the history
Minor fix to keep python 3.6 support
  • Loading branch information
dccote authored Jan 30, 2023
2 parents f92dcdd + 10230ad commit ab12bf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raytracing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@

def lastCheckMoreThanADay():
if "lastVersionCheck" in prefs:
then = datetime.fromisoformat(prefs["lastVersionCheck"])
isoFormat = "%Y-%m-%dT%H:%M:%S.%f"
then = datetime.strptime(prefs["lastVersionCheck"], isoFormat)
difference = datetime.now() - then
if difference.days > 1:
return True
Expand Down

0 comments on commit ab12bf8

Please sign in to comment.