Skip to content

Commit

Permalink
clean up some strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nit-in authored Nov 7, 2023
1 parent 7e1323b commit 22801be
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,20 @@ function pib_iter_dates(){
s_date=$(date -I --date="$1")
e_date=$(date -I --date="$2+1day")
while [ "${s_date}" != "${e_date}" ] ;do
echo "${s_date}"

echo "Working on day\t:\t${s_date}"
if [ $# -eq 2 ]; then
scrapy crawl pib --nolog -a rel_date="${s_date}"
fi

if [ $# -eq 3 ]; then
min_code=$3
echo "${min_code}"
scrapy crawl pib_ddmin --nolog -a rel_date="${s_date}" -a rel_mincode=${min_code}
fi

s_date=$(date -I --date="$s_date+1day")
done
else
echo "Enter correct set of arguments (date date ministry_code)"
echo "Enter correct set of arguments (date date ministry_code)\n Enter Date in format of YYYY-MM-DD"
fi
}

Expand Down Expand Up @@ -148,9 +146,9 @@ function pib_min(){
echo "Enter ministry code"
exit 1
fi
echo "${idate}"
echo "${edate}"
echo "${ministry}"
echo "Starting date\t:\t${sdate}"
echo "End date\t:\t${edate}"
echo "Selected ministry is\t:\t\b\b"
case $ministry in
0)
echo "All Ministry"
Expand Down

0 comments on commit 22801be

Please sign in to comment.