Add Ciné Galaxy

This commit is contained in:
Mathias DUPEUX 2024-11-27 12:47:14 +01:00
parent 0603beb326
commit f3ee26a977

2
app.py
View file

@ -11,6 +11,8 @@ from modules.Classes import *
theaters = [Theater(data["node"]) for data in theaters = [Theater(data["node"]) for data in
requests.get("https://www.allocine.fr/_/localization_city/Brest").json()["values"]["theaters"]] requests.get("https://www.allocine.fr/_/localization_city/Brest").json()["values"]["theaters"]]
theaters = theaters + [Theater(data["node"]) for data in requests.get("https://www.allocine.fr/_/localization_city/Landerneau").json()["values"]["theaters"]]
def getShowtimes(date): def getShowtimes(date):
showtimes: list[Showtime] = [] showtimes: list[Showtime] = []