Refactor code for API #3
@ -24,6 +24,7 @@ def dump_api_message(
|
|||||||
json.dumps(
|
json.dumps(
|
||||||
{"type": type, "time": datetime.now().isoformat(), "content": content}
|
{"type": type, "time": datetime.now().isoformat(), "content": content}
|
||||||
),
|
),
|
||||||
|
flush=True,
|
||||||
file=file,
|
file=file,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user