preliminary release
This commit is contained in:
@@ -31,14 +31,6 @@ def optional_str(v: Any) -> Any:
|
||||
return text or None
|
||||
|
||||
|
||||
def rounded_int(v: Any) -> Any:
|
||||
"""A minutes/count field stored as an `int` column, whose source may
|
||||
report a float (e.g. a duration measured to tenths of a minute)."""
|
||||
if v is None or (isinstance(v, str) and v.strip() == ""):
|
||||
return None
|
||||
return round(float(v))
|
||||
|
||||
|
||||
_DAY_FIRST_FORMATS = ("%d/%m/%Y", "%d-%m-%Y", "%d.%m.%Y", "%Y/%m/%d")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user