update_votes 321 Bytes
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
2
3
#!/bin/bash
set -ex

Nicolas Joyard's avatar
Nicolas Joyard committed
4
source bin/lib.sh
Jamesie Pic's avatar
Jamesie Pic committed
5

Nicolas Joyard's avatar
Nicolas Joyard committed
6
7
8
9
parltrack_download_pipe ep_votes.json.xz parltrack_import_votes

sleep 10

10
11
12
13
parltrack_download_pipe ep_com_votes.json.xz parltrack_import_votes

sleep 10

Nicolas Joyard's avatar
Nicolas Joyard committed
14
francedata_download_pipe votes.json.gz francedata_import_votes
15
16
17
18
19

if [ "x$1" != "xnoscores" ]; then
	sleep 10
	refresh_scores
fi