#! /bin/bash

#$ cd awaps  # test
#$ yql/task_update_mini_2/run --dry-run 2017-01-01

# start
#$ cat yql/task_update_mini_2/dates.txt | xargs -P 10 -L 1 yql/task_update_mini_2/run &> /dev/null &
if [[ "$1" == "--dry-run" ]]
then
    ./from_template ./yql/task_update_mini_2/template.yql $2
else
    ./from_template ./yql/task_update_mini_2/template.yql $1 | ~/yql --title "Fix timestamp"
fi
