mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-18 02:24:04 +00:00
Fix error when creating report: csv.Error
This commit is contained in:
parent
a9edf4a9fe
commit
b0f4d1ff60
|
@ -214,7 +214,7 @@ def save_timeline(timeline: list, timeline_path: str) -> None:
|
|||
"""
|
||||
with open(timeline_path, "a+", encoding="utf-8") as handle:
|
||||
csvoutput = csv.writer(handle, delimiter=",", quotechar="\"",
|
||||
quoting=csv.QUOTE_ALL)
|
||||
quoting=csv.QUOTE_ALL, escapechar='\\')
|
||||
csvoutput.writerow(["UTC Timestamp", "Plugin", "Event", "Description"])
|
||||
|
||||
for event in sorted(timeline, key=lambda x: x["timestamp"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user