1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

publish: 5.8.18

This commit is contained in:
Steffo 2020-06-14 18:15:11 +02:00
parent ba1a2a69d2
commit 73e740f137
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
3 changed files with 33 additions and 33 deletions

View file

@ -2,7 +2,7 @@
[tool.poetry] [tool.poetry]
name = "royalpack" name = "royalpack"
version = "5.8.17" version = "5.8.18"
description = "A Royalnet command pack for the Royal Games community" description = "A Royalnet command pack for the Royal Games community"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"] authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+" license = "AGPL-3.0+"

View file

@ -127,42 +127,42 @@ LEFT JOIN
return [{ return [{
"h": r[0], "h": r[0],
"all_time": { "all_time": {
"members_connected": float(r[1]), "members_connected": float(r[1]) if r[1] is not None else None,
"users_connected": float(r[2]), "users_connected": float(r[2]) if r[2] is not None else None,
"members_online": float(r[3]), "members_online": float(r[3]) if r[3] is not None else None,
"users_online": float(r[4]), "users_online": float(r[4]) if r[4] is not None else None,
"members_playing": float(r[5]), "members_playing": float(r[5]) if r[5] is not None else None,
"users_playing": float(r[6]), "users_playing": float(r[6]) if r[6] is not None else None,
"members_total": float(r[7]), "members_total": float(r[7]) if r[7] is not None else None,
"users_total": float(r[8]) "users_total": float(r[8]) if r[8] is not None else None,
}, },
"last_week": { "last_week": {
"members_connected": float(r[10]), "members_connected": float(r[10]) if r[10] is not None else None,
"users_connected": float(r[11]), "users_connected": float(r[11]) if r[11] is not None else None,
"members_online": float(r[12]), "members_online": float(r[12]) if r[12] is not None else None,
"users_online": float(r[13]), "users_online": float(r[13]) if r[13] is not None else None,
"members_playing": float(r[14]), "members_playing": float(r[14]) if r[14] is not None else None,
"users_playing": float(r[15]), "users_playing": float(r[15]) if r[15] is not None else None,
"members_total": float(r[16]), "members_total": float(r[16]) if r[16] is not None else None,
"users_total": float(r[17]) "users_total": float(r[17]) if r[17] is not None else None,
}, },
"last_month": { "last_month": {
"members_connected": float(r[19]), "members_connected": float(r[19]) if r[19] is not None else None,
"users_connected": float(r[20]), "users_connected": float(r[20]) if r[20] is not None else None,
"members_online": float(r[21]), "members_online": float(r[21]) if r[21] is not None else None,
"users_online": float(r[22]), "users_online": float(r[22]) if r[22] is not None else None,
"members_playing": float(r[23]), "members_playing": float(r[23]) if r[23] is not None else None,
"users_playing": float(r[24]), "users_playing": float(r[24]) if r[24] is not None else None,
"members_total": float(r[25]), "members_total": float(r[25]) if r[25] is not None else None,
"users_total": float(r[26]) "users_total": float(r[26]) if r[26] is not None else None,
}, },
"last_day": { "last_day": {
"members_connected": float(r[28]), "members_connected": float(r[28]) if r[28] is not None else None,
"users_connected": float(r[29]), "users_connected": float(r[29]) if r[29] is not None else None,
"members_online": float(r[30]), "members_online": float(r[30]) if r[30] is not None else None,
"users_online": float(r[31]), "users_online": float(r[31]) if r[31] is not None else None,
"members_playing": float(r[32]), "members_playing": float(r[32]) if r[32] is not None else None,
"users_playing": float(r[33]), "users_playing": float(r[33]) if r[33] is not None else None,
"members_total": float(r[34]), "members_total": float(r[34]) if r[34] is not None else None,
}, },
} for r in sorted(results.fetchall(), key=lambda s: s[0])] } for r in sorted(results.fetchall(), key=lambda s: s[0])]

View file

@ -1 +1 @@
semantic = "5.8.17" semantic = "5.8.18"