2019-03-31 17:04:39.645493из бд
delta1 = datetime.datetime.now() - lf1 # lf1 это 2019-03-31 17:04:39.645493
print(delta1.seconds())
Exception has occurred: TypeError
unsupported operand type(s) for -: 'datetime.datetime' and 'str'
now = datetime.datetime.now()
now = str(now)
now = datetime.datetime.strptime(now[0:19],'%Y-%m-%d %H:%M:%S')
lf1 = datetime.datetime.strptime(lf1[0:19],'%Y-%m-%d %H:%M:%S')
minutes_diff1 = round((now - lf1).total_seconds() / 60.0)