From ef004f3c6d812046acc844b2b331ce625989637b Mon Sep 17 00:00:00 2001 From: Benjamin Sigonneau Date: Thu, 3 Jun 2021 23:50:07 +0200 Subject: [PATCH] Fix sooner/later bug introduced by previous commit Previous commit fixed the date/hour displayed in the interface, but did not apply the delta (+- 1 hour) to the query for retrieving songs. --- webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp.py b/webapp.py index 8af7d08..a1bea56 100644 --- a/webapp.py +++ b/webapp.py @@ -44,7 +44,7 @@ def results_page(): 'youtube_url': 'https://www.youtube.com/results?search_query=' + urllib.parse.quote_plus(x.song.artist + ' ' + x.song.title) } - for x in search_song(day, hour) + for x in search_song(day, query_dt.hour) ] return dict(results=results, date=day,