mirror of
https://github.com/MathiasDPX/grainParisArt.git
synced 2025-01-08 00:06:38 +00:00
fix showtimes
This commit is contained in:
parent
009818cc6e
commit
a0a5c688d3
1 changed files with 5 additions and 3 deletions
8
app.py
8
app.py
|
@ -62,8 +62,10 @@ def getShowtimes(date):
|
|||
|
||||
return data
|
||||
|
||||
showtimes = getShowtimes(datetime.today()+timedelta(days=1))
|
||||
print("Séances récupéré!")
|
||||
showtimes = []
|
||||
for i in range(0, 7):
|
||||
print(f"Séances récupéré {i+1}/7!")
|
||||
showtimes.append(getShowtimes(datetime.today()+timedelta(days=i)))
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
@ -114,7 +116,7 @@ def home():
|
|||
"index": i
|
||||
})
|
||||
|
||||
return render_template('index.html', page_actuelle='home', films=showtimes, dates=dates)
|
||||
return render_template('index.html', page_actuelle='home', films=showtimes[delta], dates=dates)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
Loading…
Reference in a new issue