store event ID val as hex now as well

This commit is contained in:
Robin Mueller 2022-03-04 11:01:49 +01:00
parent 5c8895b631
commit 52f291692c
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -266,11 +266,14 @@ class EventParser(FileParser):
def export_to_file(filename: str, event_list: list, file_separator: str):
file = open(filename, "w")
for entry in event_list:
event_id = entry[0]
event_id = int(entry[0])
event_value = entry[1]
event_id_as_hex = f"{event_id:#06x}"
file.write(
str(event_id)
+ file_separator
+ event_id_as_hex
+ file_separator
+ event_value[EVENT_ENTRY_NAME_IDX]
+ file_separator
+ event_value[EVENT_ENTRY_SEVERITY_IDX]