Fix missing microseconds initialisation
review1000002
This commit is contained in:
1 parent
86917a6a4a
commit
5e750d52a8
1 file changed
+2
@@ -217,6 +217,8 @@ class Trigger(ModelSQL, ModelView):
|
||||
timepart_full[0].split(":"))
|
||||
if len(timepart_full) == 2:
|
||||
microseconds = int(timepart_full[1])
|
||||
else:
|
||||
microseconds = 0
|
||||
delay[record_id] = datetime.datetime(year, month, day,
|
||||
hours, minutes, seconds, microseconds)
|
||||
if (datetime.datetime.now() - delay[record_id]
|
||||
|
||||
Reference in new issue
Block a user