Skip to content

Commit

Permalink
add movie ID
Browse files Browse the repository at this point in the history
  • Loading branch information
oscie57 committed Jun 8, 2024
1 parent e7b2236 commit 946276c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions first.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad
from Cryptodome.Cipher import AES
from Cryptodome.Util.Padding import pad

import config
from helpers import xml_node_name, current_date_and_time
Expand Down
10 changes: 9 additions & 1 deletion templates/movie_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
<table class="table is-fullwidth is-hoverable is-striped">
<thead>
<tr>
<th scope="col">Movie ID</th>
<th scope="col">Wii Movie ID</th>
<th scope="col">DSi Movie ID</th>
<th scope="col">Name</th>
<th scope="col">Length</th>
<th scope="col">Genre</th>
<th scope="col">Thumbnail</th>
<th scope="col">Actions</th>
</tr>
Expand All @@ -20,8 +22,14 @@
{% for movie in movies.items %}
<tr>
<td>{{ movie.movie_id }}</td>
{% if movie.ds_mov_id is not none %}
<td>{{ movie.ds_mov_id }}</td>
{% else %}
<td>N/A</td>
{% endif %}
<td>{{ movie.title }}</td>
<td>{{ movie.length }}</td>
<td>{{ movie.genre }}</td>
<td><img src="{{ url_for('get_movie_thumbnail', movie_id=movie.movie_id) }}"
alt="Thumbnail for {{ movie.movie_id }}"/></td>
<td>
Expand Down
4 changes: 2 additions & 2 deletions theunderground/pay_posters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad
from Cryptodome.Cipher import AES
from Cryptodome.Util.Padding import pad
from flask import render_template, flash, url_for, redirect
from flask_login import login_required
from theunderground.forms import PayPosterForm
Expand Down

0 comments on commit 946276c

Please sign in to comment.