Fixed top5 and other error messages.

Now cache data is not empty when loaded.
This commit is contained in:
pranav-1711 2022-02-28 00:18:10 +05:30
parent 860b05befe
commit f19e222c38

View file

@ -267,6 +267,7 @@ def get_roles() -> dict:
if CacheData.roles == {}:
with OpenJson(PLAYERS_DATA_PATH + "roles.json") as roles_file:
roles = roles_file.load()
CacheData.roles = roles
return roles
return CacheData.roles