From ba1a2a69d20bf31865a777d44ac501baadc792a2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 14 Jun 2020 17:55:25 +0200 Subject: [PATCH] Use left join in cvstats --- pyproject.toml | 2 +- royalpack/stars/api_cvstats_avg.py | 6 +++--- royalpack/version.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d97ed7e9..37ac7ee7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalpack" - version = "5.8.16" + version = "5.8.17" description = "A Royalnet command pack for the Royal Games community" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalpack/stars/api_cvstats_avg.py b/royalpack/stars/api_cvstats_avg.py index 7748bb12..06664a24 100644 --- a/royalpack/stars/api_cvstats_avg.py +++ b/royalpack/stars/api_cvstats_avg.py @@ -41,7 +41,7 @@ FROM ( ) c GROUP BY ph ) all_time -JOIN +LEFT JOIN ( SELECT date_part('hour', c.h) ph, AVG(c.members_connected) members_connected, @@ -68,7 +68,7 @@ JOIN ) c GROUP BY ph ) last_week ON last_week.ph = all_time.ph -JOIN +LEFT JOIN ( SELECT date_part('hour', c.h) ph, AVG(c.members_connected) members_connected, @@ -95,7 +95,7 @@ JOIN ) c GROUP BY ph ) last_month ON last_month.ph = all_time.ph -JOIN +LEFT JOIN ( SELECT date_part('hour', c.h) ph, AVG(c.members_connected) members_connected, diff --git a/royalpack/version.py b/royalpack/version.py index 7151772d..52d8bc1f 100644 --- a/royalpack/version.py +++ b/royalpack/version.py @@ -1 +1 @@ -semantic = "5.8.16" +semantic = "5.8.17"