Browse Source

Removed uneccisary prints and updated requirements.txt; fixed cta_api_key not in cwd

no_compress
Raphael Roberts 7 years ago
parent
commit
a6ddda05f5
  1. 3
      ctabus.py
  2. 1
      main.py
  3. 1
      requirements.txt

3
ctabus.py

@ -1,7 +1,8 @@
from urllib.parse import urlencode
from requests import get
import json
with open('cta_api_key') as file:
import os.path as osp
with open(osp.join(osp.dirname(__file__),'cta_api_key')) as file:
api = file.read()
def get_data(type,api_key = api,**args):

1
main.py

@ -89,7 +89,6 @@ if __name__ == "__main__":
parser.add_argument('-d','--direction',default = None)
args = parser.parse_args()
args.arg = ' '.join(args.arg)
print(args)
if not args.arg.isdecimal():
#routes
if not args.route:

1
requirements.txt

@ -1,2 +1,3 @@
editdistance
requests
python-dateutil
Loading…
Cancel
Save