fix variable

This commit is contained in:
Jakobus Schürz 2020-10-11 17:24:22 +02:00
parent 1795317d9c
commit f988ed8067

View file

@ -96,7 +96,7 @@ class WorkdirFS(Operations):
if os.path.exists(self.configlast): if os.path.exists(self.configlast):
with open(self.configlast, 'r') as fh: with open(self.configlast, 'r') as fh:
yesterday = fh.readline().strip() yesterday = fh.readline().strip()
if self.yesterday == None: if yesterday == None:
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")