Skip to content

Commit

Permalink
fix: realign signature of file-preview view-function
Browse files Browse the repository at this point in the history
  • Loading branch information
martinobersteiner committed Sep 18, 2024
1 parent d4c741c commit e02b932
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invenio_records_lom/ui/records/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,14 @@ def record_export(
@pass_record_or_draft
@pass_file_metadata
def record_file_preview( # noqa: ANN201
record: RecordItem | None = None, # noqa: ARG001
pid_value: str | None = None,
record: RecordItem | None = None, # noqa: ARG001
pid_type: str = "recid", # noqa: ARG001
file_metadata: FileItem | None = None,
*,
is_preview: bool | None = False,
include_deleted: bool | None = False, # noqa: ARG001
**__, # noqa: ANN003
):
"""Render a preview of the specified file."""
file_previewer = file_metadata.data.get("previewer")
Expand Down

0 comments on commit e02b932

Please sign in to comment.