Syntax error

This commit is contained in:
mogad0n 2020-09-17 11:38:01 +05:30
parent e2e2eb2bcd
commit cee49f7de9

View File

@ -219,7 +219,7 @@ class Tripsit(callbacks.Plugin):
if msg.nick in self.db: if msg.nick in self.db:
lastdose = self.db[msg.nick] lastdose = self.db[msg.nick]
time = datetime.utcnow() time = datetime.utcnow()
if lastdose['type'] == 'idose' if lastdose['type'] == 'idose':
dose_time = dateutil.parser.isoparse(lastdose['time']) dose_time = dateutil.parser.isoparse(lastdose['time'])
elif lastdose['type'] == 'hdose': elif lastdose['type'] == 'hdose':
dose_time = dateutil.parser.isoparse(lastdose['time_dosed']) dose_time = dateutil.parser.isoparse(lastdose['time_dosed'])