fix flake8 E713 (test-for-membership)

This commit is contained in:
Pavol Rusnak
2023-01-30 11:46:44 +00:00
parent f6bd8684d3
commit eba7319808
9 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ class Database(Compat):
if value is None:
return None
f = "%Y-%m-%d %H:%M:%S.%f"
if not "." in value:
if "." not in value:
f = "%Y-%m-%d %H:%M:%S"
return time.mktime(datetime.datetime.strptime(value, f).timetuple())