mirror of
https://github.com/MathiasDPX/grainParisArt.git
synced 2025-01-08 16:16:40 +00:00
order by interest and add url
This commit is contained in:
parent
dfd629abd8
commit
efaf0c8909
2 changed files with 8 additions and 2 deletions
6
app.py
6
app.py
|
@ -51,6 +51,8 @@ def getShowtimes(date):
|
||||||
"synopsis": movie.synopsis,
|
"synopsis": movie.synopsis,
|
||||||
"affiche": movie.affiche,
|
"affiche": movie.affiche,
|
||||||
"director": movie.director,
|
"director": movie.director,
|
||||||
|
"wantToSee": movie.wantToSee,
|
||||||
|
"url": f"https://www.allocine.fr/film/fichefilm_gen_cfilm={movie.id}.html",
|
||||||
"seances": {}
|
"seances": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,6 +62,10 @@ def getShowtimes(date):
|
||||||
|
|
||||||
data[movie.title]["seances"][theater.name].append(showtime.startsAt.strftime("%H:%M"))
|
data[movie.title]["seances"][theater.name].append(showtime.startsAt.strftime("%H:%M"))
|
||||||
|
|
||||||
|
data = data.values()
|
||||||
|
|
||||||
|
data = sorted(data, key=lambda x: x["wantToSee"], reverse=True)
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
showtimes = []
|
showtimes = []
|
||||||
|
|
|
@ -43,13 +43,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
</div>
|
</div>
|
||||||
{% for film in films.values() %}
|
{% for film in films %}
|
||||||
<div class="container_infoFilm">
|
<div class="container_infoFilm">
|
||||||
<img src={{ film.affiche }} class="affiche" />
|
<img src={{ film.affiche }} class="affiche" />
|
||||||
<div class="infoFilm">
|
<div class="infoFilm">
|
||||||
<div class="blur-background"></div>
|
<div class="blur-background"></div>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="titreFilm">{{film.title}}</h3>
|
<h3 class="titreFilm"><a href="{{ film.url }}">{{film.title}}</a></h3>
|
||||||
<div class="info-content">
|
<div class="info-content">
|
||||||
<p class="realisateur">Réalisateur : {{film.director}}</p>
|
<p class="realisateur">Réalisateur : {{film.director}}</p>
|
||||||
<p class="casting">Casting : {{ film.casting }}</p>
|
<p class="casting">Casting : {{ film.casting }}</p>
|
||||||
|
|
Loading…
Reference in a new issue