@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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "0.1.300",
7
+ "version": "0.1.301",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/romulus",
3
- "version": "0.1.301",
3
+ "version": "0.1.302",
4
4
  "description": "Romulus Design System - Nuxt module by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",