mirror of
https://github.com/MathiasDPX/grainParisArt.git
synced 2025-01-08 16:16:40 +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
|
return data
|
||||||
|
|
||||||
showtimes = getShowtimes(datetime.today()+timedelta(days=1))
|
showtimes = []
|
||||||
print("Séances récupéré!")
|
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__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@ -114,7 +116,7 @@ def home():
|
||||||
"index": i
|
"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__':
|
if __name__ == '__main__':
|
||||||
app.run()
|
app.run()
|
Loading…
Reference in a new issue