Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

tweak masspay scripts #3901

Merged
merged 2 commits into from
Jan 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/masspay.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from httplib import IncompleteRead


os.chdir('../masspay')
os.chdir('../logs/masspay')
ts = datetime.datetime.now().strftime('%Y-%m-%d')
INPUT_CSV = '{}.input.csv'.format(ts)
PAYPAL_CSV = '{}.output.paypal.csv'.format(ts)
Expand Down Expand Up @@ -198,7 +198,7 @@ def post_back_to_gratipay():
try:
gratipay_api_key = os.environ['GRATIPAY_API_KEY']
except KeyError:
gratipay_api_key = getpass.getpass("Gratipay API key: ")
gratipay_api_key = getpass.getpass("Your admin user Gratipay API key: ")

try:
gratipay_base_url = os.environ['GRATIPAY_BASE_URL']
Expand Down
4 changes: 2 additions & 2 deletions payday.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ start () {
# ====

if [ "$2" == "for_real_please" ]; then
LOG="../paydays/gratipay-$1.log"
LOG="../logs/paydays/gratipay-$1.log"
else
LOG="../paydays/test-$1.log"
LOG="../logs/paydays/test-$1.log"
fi

if [ -f $LOG ]; then
Expand Down