forked from MapComplete/MapComplete
Add some fancy graphs
This commit is contained in:
parent
f464600ab8
commit
c49585a70a
11 changed files with 3120 additions and 0 deletions
21
Docs/Tools/csvPerChange.sh
Executable file
21
Docs/Tools/csvPerChange.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#! /bin/bash
|
||||
|
||||
if [[ ! -e stats.1.json ]]
|
||||
then
|
||||
echo "No stats found - not compiling"
|
||||
exit
|
||||
fi
|
||||
|
||||
rm stats.csv
|
||||
# echo "date, username, language, theme, editor, creations, changes" > stats.csv
|
||||
echo "" > tmp.csv
|
||||
|
||||
for f in stats.*.json
|
||||
do
|
||||
echo $f
|
||||
jq ".features[].properties | [.date, .user, .metadata.language, .metadata.theme, .editor, .create, .modify]" "$f" | tr -d "\n" | sed "s/]\[/\n/g" | tr -d "][" >> tmp.csv
|
||||
echo "" >> tmp.csv
|
||||
done
|
||||
|
||||
sed "/^$/d" tmp.csv | sed "s/^ //" | sed "s/ / /g" | sed "s/\"\(....-..-..\)T........./\"\1/" | sort >> stats.csv
|
||||
rm tmp.csv
|
Loading…
Add table
Add a link
Reference in a new issue