chore: get_scores return by reverse time

This commit is contained in:
2024-09-25 19:24:06 +08:00
parent 37a02c855d
commit a2c3bfaead
+1 -1
View File
@@ -87,7 +87,7 @@ def get_scores():
try: try:
with open(csv_file_path, mode="r", encoding="utf-8") as csvfile: with open(csv_file_path, mode="r", encoding="utf-8") as csvfile:
reader = csv.DictReader(csvfile) reader = csv.DictReader(csvfile)
scores = jsonify(list(reader)) scores = jsonify(list(reader)[::-1])
scores.headers.add("Access-Control-Allow-Origin", "*") scores.headers.add("Access-Control-Allow-Origin", "*")
return scores return scores
except Exception as e: except Exception as e: