Skip to content

Commit

Permalink
hub: view JSON files unrendered
Browse files Browse the repository at this point in the history
... even when `?format=raw` is not used

Depends-on: release-engineering/kobo#266
Fixes: openscanhub#303
Closes: openscanhub#306
  • Loading branch information
kdudka committed Nov 20, 2024
1 parent 842be80 commit 6c4fc74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osh/hub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@

VALID_TASK_LOG_EXTENSIONS = ['.log', '.ini', '.err', '.out', '.js', '.txt', '.cfg']

# Log file extensions to be viewed unrendered even when `?format=raw` is not used
VIEW_RAW_LOG_EXTENSIONS = [".html", ".js", ".json"]

# This is kept here for backward compatibility.
# https://github.com/openscanhub/openscanhub/pull/256#pullrequestreview-2001187953
DEFAULT_EMAIL_DOMAIN = "redhat.com"
Expand Down

0 comments on commit 6c4fc74

Please sign in to comment.