Commit 9e2d2f2e authored by dmorley's avatar dmorley

limit stats

parent fe1f831c
......@@ -40,7 +40,7 @@ deploy:
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update && apt-get install -y sudo curl gnupg2 npm nodejs
- npm install -g yarn
- npm install yarn
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
- yarn set version berry
script:
......
......@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog] and this project adheres to [Semantic
### Added
### Changed
- Tell robots not to follow links to pods
- Limit stats to 2019 further as old data is inconsistant
### Deprecated
- yarn 1.0 support
### Removed
......
......@@ -35,6 +35,7 @@ try {
total_users AS users
FROM monthlystats
WHERE softwarename = ?
AND date_checked BETWEEN '2019-01-01' and now()
GROUP BY yymm, users
ORDER BY yymm
", [$softwaredb]);
......@@ -49,6 +50,7 @@ try {
total_pods AS pods
FROM monthlystats
WHERE softwarename = ?
AND date_checked BETWEEN '2019-01-01' and now()
GROUP BY yymm, pods
ORDER BY yymm
", [$softwaredb]);
......@@ -63,6 +65,7 @@ try {
total_comments AS comments
FROM monthlystats
WHERE softwarename = ?
AND date_checked BETWEEN '2019-01-01' and now()
GROUP BY yymm, comments
ORDER BY yymm
", [$softwaredb]);
......@@ -77,6 +80,7 @@ try {
total_posts AS posts
FROM monthlystats
WHERE softwarename = ?
AND date_checked BETWEEN '2019-01-01' and now()
GROUP BY yymm, posts
ORDER BY yymm
", [$softwaredb]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment