From 26ee88e2a9001ad70a598e6aa8ca801ef2514e9b Mon Sep 17 00:00:00 2001 From: Oscar Hudson Date: Sat, 8 Jun 2024 03:22:37 +0100 Subject: [PATCH] add movie ID --- first.py | 4 ++-- templates/movie_list.html | 10 +++++++++- theunderground/pay_posters.py | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/first.py b/first.py index daa6e35b..be94ee3d 100644 --- a/first.py +++ b/first.py @@ -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 diff --git a/templates/movie_list.html b/templates/movie_list.html index d7579af5..6c404e0f 100644 --- a/templates/movie_list.html +++ b/templates/movie_list.html @@ -9,9 +9,11 @@ - + + + @@ -20,8 +22,14 @@ {% for movie in movies.items %} + {% if movie.ds_mov_id is not none %} + + {% else %} + + {% endif %} +
Movie IDWii Movie IDDSi Movie ID Name LengthGenre Thumbnail Actions
{{ movie.movie_id }}{{ movie.ds_mov_id }}N/A{{ movie.title }} {{ movie.length }}{{ movie.genre }} Thumbnail for {{ movie.movie_id }} diff --git a/theunderground/pay_posters.py b/theunderground/pay_posters.py index c3423a57..0bf5246c 100644 --- a/theunderground/pay_posters.py +++ b/theunderground/pay_posters.py @@ -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