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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user