Fixed bug in the cache computation

This commit is contained in:
Polochon-street 2016-10-07 16:51:19 +02:00
parent e19fe82d9f
commit c274b2be0c

View File

@ -172,7 +172,7 @@ def main(queue_length):
if cached_distances: if cached_distances:
closest_song = (cached_distances[0], closest_song = (cached_distances[0],
cached_distances[0]["distance"], cached_distances[0]["distance"],
cached_distances[1]["similarity"]) cached_distances[0]["similarity"])
else: else:
closest_song = None closest_song = None