From b5ae46c7e26c7e3f244c311acb0945f06240e7f7 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Wed, 4 Sep 2024 10:51:41 -0500 Subject: [PATCH] fix: Flatten twitter data --- stats/steampipe/pixi.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats/steampipe/pixi.toml b/stats/steampipe/pixi.toml index 9a491c0..c46a00e 100644 --- a/stats/steampipe/pixi.toml +++ b/stats/steampipe/pixi.toml @@ -8,7 +8,7 @@ version = "0.1.0" [tasks] plugins = "steampipe plugin install github twitter --progress=false" -twitter = "steampipe query twitter_users.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/twitter_users.json" +twitter = "steampipe query twitter_users.sql --output json | jq '.rows[0].public_metrics + {timestamp: now|tostring}' >> twitter_users.json" github = "steampipe query github.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/github.json" download_hf = "huggingface-cli download nf-core/stats --local-dir hf_stats --repo-type dataset --quiet" upload_hf = "huggingface-cli upload nf-core/stats hf_stats --repo-type dataset --quiet"