Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
fix: use filepath instead of snic_specific html
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-wildlife committed Sep 11, 2023
1 parent 02a7003 commit ad55ae2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions kso_utils/movie_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,24 +276,17 @@ def preview_movie(

else:
# Generate temporary path to the selected movie
url = get_movie_path(
movie_path = get_movie_path(
project=project,
f_path=movie_selected["fpath"].values[0],
server_connection=server_connection,
)
if project.server == ServerType.SNIC:
url = (
"https://portal.c3se.chalmers.se/pun/sys/dashboard/files/fs/"
+ pathname2url(movie_path)
)
else:
movie_path = url

html_code = f"""<html>
<div style="display: flex; justify-content: space-around; align-items: center">
<div>
<video width=500 controls>
<source src={url}>
<source src={movie_path}>
</video>
</div>
<div>{movie_selected_view.to_html()}</div>
Expand Down

0 comments on commit ad55ae2

Please sign in to comment.