commit f4fc5a499f16f340aed68a79e3a1c1d2ff41725b Author: hiro hiro@torproject.org Date: Thu Aug 29 16:17:11 2019 +0200
Add scripts to export stats and edit gitignore --- .gitignore | 3 ++- scripts/export_stats | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore index 1f08289..d6e21ab 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ __pycache__ log gettor.db _trial_temp - +gettor.pid +csv diff --git a/scripts/export_stats b/scripts/export_stats new file mode 100644 index 0000000..a0b9f99 --- /dev/null +++ b/scripts/export_stats @@ -0,0 +1,15 @@ +#!/bin/bash +# +# This file is part of GetTor, a Tor Browser distribution system. +# +# :authors: hiro hiro@torproject.org +# see also AUTHORS file +# +# :copyright: (c) 2008-2019, The Tor Project, Inc. +# +# :license: This is Free Software. See LICENSE for license information. + +cd ~/gettor +mkdir -p csv +sqlite3 -header -csv gettor.db "select * from stats;" > csv/$(date "+%Y-%m-%d").csv +./scripts/add_links_to_db -f gettor.db
tor-commits@lists.torproject.org