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.
This commit is contained in:
2021-06-03 23:50:07 +02:00
parent f26893fe84
commit ef004f3c6d

View File

@@ -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,