Strip newline
This commit is contained in:
@@ -55,7 +55,8 @@ def _bet_fields(bet: Bet) -> dict[str, str]:
|
||||
for k, v in vars(bet).items():
|
||||
if k in _SKIP_FIELDS:
|
||||
continue
|
||||
fields[k] = v.strftime("%Y-%m-%d %H:%M") if k == "date" and isinstance(v, datetime) else str(v)
|
||||
val = v.strftime("%Y-%m-%d %H:%M") if k == "date" and isinstance(v, datetime) else str(v)
|
||||
fields[k] = val.replace("\n", " ").replace("\r", "")
|
||||
return fields
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user