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