Skip to content

Commit

Permalink
Merge pull request #3570 from csordasmarton/fix_files_in_static_html
Browse files Browse the repository at this point in the history
[html] Fix static HTML report files
  • Loading branch information
bruntib authored Jan 7, 2022
2 parents 4d86203 + 9788918 commit eaeddd9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class HTMLReport(TypedDict):


class FileSource(TypedDict):
id: str
filePath: str
content: str

Expand Down Expand Up @@ -170,7 +171,7 @@ def _add_source_file(self, file: File) -> FileSource:
file_content = InvalidFileContentMsg

self.files[file.id] = {
'filePath': file.path, 'content': file_content}
'id': file.id, 'filePath': file.path, 'content': file_content}

return self.files[file.id]

Expand Down

0 comments on commit eaeddd9

Please sign in to comment.