@tekkare/romulus 0.1.301 → 0.1.302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -38,6 +38,9 @@ export default defineEventHandler(async (event): Promise<OipStatsUsers> => {
|
|
|
38
38
|
// dit qu'il en reste. Lu par paquets de CHUNK lignes : les « Charger plus »
|
|
39
39
|
// suivants retombent sur la meme requete, servie par le cache.
|
|
40
40
|
const rowCap = Math.ceil((offset + limit + 1) / CHUNK) * CHUNK;
|
|
41
|
+
// Sans email, la personne n'a jamais ete identifiee : un visiteur reste sur
|
|
42
|
+
// la page de connexion (robot, apercu de lien). Il n'a rien a faire dans un
|
|
43
|
+
// classement d'utilisateurs.
|
|
41
44
|
const ranking = hogql(`
|
|
42
45
|
SELECT
|
|
43
46
|
any(${prop("email")}),
|
|
@@ -49,7 +52,7 @@ export default defineEventHandler(async (event): Promise<OipStatsUsers> => {
|
|
|
49
52
|
uniq(${OIP_STATS_PATH}),
|
|
50
53
|
max(timestamp) AS last_seen
|
|
51
54
|
FROM events
|
|
52
|
-
WHERE ${where} AND timestamp >= ${OIP_STATS_SINCE[period]}${onPage ? ` AND ${OIP_STATS_PATH} = {path}` : ""}
|
|
55
|
+
WHERE ${where} AND ${prop("email")} IS NOT NULL AND timestamp >= ${OIP_STATS_SINCE[period]}${onPage ? ` AND ${OIP_STATS_PATH} = {path}` : ""}
|
|
53
56
|
GROUP BY person_id
|
|
54
57
|
ORDER BY pageviews DESC, last_seen DESC
|
|
55
58
|
LIMIT ${rowCap}
|