Skip to content

Commit

Permalink
Merge pull request #33 from jerryderry/master
Browse files Browse the repository at this point in the history
Fixes #32 get country codes only for the specified date
  • Loading branch information
philip-lee-ons authored Apr 17, 2020
2 parents 87961da + 96ec61e commit 722dc88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ esac
set -e # Exit on any error

# Get dates lookup
CLEAN=$(echo $DATE | sed -r 's/\-/_/g')
CLEAN=$(echo $DATE | sed -E 's/\-/_/g')
DATES_FILE="config/dates_lookup_${CLEAN}.csv"
echo "Using $DATES_FILE as lookup"

# List all the countries/states
case $STATES in
true)
COUNTRIES=$(./mobius.py svg | sed -En "s/.*[0-9 \.]+([US-]{2}(\-[A-Z][A-Za-z_]+)).*/\1/p")
COUNTRIES=$(./mobius.py svg | sed -En "s/.*[0-9 \.]+([US-]{2}(\-[A-Z][A-Za-z_]+)).*$DATE.*/\1/p")

;;
*)
COUNTRIES=$(./mobius.py svg | sed -En "s/.*[0-9 \.]+([A-Z]{2}(\-[A-Z][A-Za-z_]+)?).*/\1/p")
COUNTRIES=$(./mobius.py svg | sed -En "s/.*[0-9 \.]+([A-Z]{2}(\-[A-Z][A-Za-z_]+)?).*$DATE.*/\1/p")
;;
esac

Expand Down

0 comments on commit 722dc88

Please sign in to comment.