Coronavirus monitor

שולם
על ידי avalon | מְעוּדכָּן 한 달 전 | Health and Fitness
פּוֹפּוּלָרִיוּת

0.5 / 10

חֶבִיוֹן

71,045ms

רמת שירות

32%

Health Check

N/A

חזרה לכל הדיונים

China is wrongly arranged

Rapid account: Mkelzeer
mkelzeer
4년 전

To get the leaderboard, I fetch the first 10 countries in the response, that are already arranged in a descending order, but now, China is put at the end of the response, therefore, it can no longer be included in the leaderboards. Please fix the bug.

Rapid account: Rithotyn
Rithotyn Commented 4년 전

This has been this way for a while. I sort the results before using them as you can’t rely on the order.

Rapid account: Mkelzeer
mkelzeer Commented 4년 전

The (cases_by_country) is actually returning descendingly-ordered results: https://pastebin.com/YVyu9vFb
Ignoring the first line, which is a bug as it returns a value of country_name: “”, the other values are arranged descendingly as you can see in the link, and then at the end, you can see China (out of order) - This was to just explain the problem.

But yes, I would like to see ordered results for leaderboard (P.S: It already exists but it has a small bug, 1st value and China’s arrangement)

Thanks!

Rapid account: Astsiatsko
astsiatsko Commented 4년 전

We don’t use any sorting, order is random. You need ordered results?

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות