From d2af876c4df14dd164a4f250eec19b2f278f72bc Mon Sep 17 00:00:00 2001
From: "Prestwich, Jamie J (PG/T - Comp Sci & Elec Eng)" <jp01702@surrey.ac.uk>
Date: Tue, 9 May 2023 10:30:28 +0000
Subject: [PATCH] Update file app.py

---
 musicMicroservice/app.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/musicMicroservice/app.py b/musicMicroservice/app.py
index 15a25fbb..23f5ea9b 100644
--- a/musicMicroservice/app.py
+++ b/musicMicroservice/app.py
@@ -140,7 +140,7 @@ def top_ratings():
     # Create a list of dictionaries to store the results
     top_tracks = []
     for result in results:
-        track_dict = [result[0], result[1]]
+        track_dict = [result[0], round(result[1],1)]
         top_tracks.append(track_dict)
     conn.close()
     return jsonify(top_tracks)
-- 
GitLab