This commit is contained in:
Jakobus Schürz 2020-10-11 17:30:33 +02:00
parent 877665aeab
commit 16c844908d

View file

@ -97,7 +97,7 @@ class WorkdirFS(Operations):
with open(self.configlast, 'r') as fh: with open(self.configlast, 'r') as fh:
yesterday = fh.readline().strip() yesterday = fh.readline().strip()
print("yesterday: "+yesterday, end='\n') print("yesterday: "+yesterday, end='\n')
if yesterday == None or yesterday == "": if len(yesterday) == 0:
self.yesterday = self.today self.yesterday = self.today
else: else:
self.yesterday = datetime.strptime(yesterday, "%Y-%m-%d") self.yesterday = datetime.strptime(yesterday, "%Y-%m-%d")