From c2637e12c4d0ad0cb88c09a1547b8d50c1440744 Mon Sep 17 00:00:00 2001 From: Gogs Date: Sun, 7 May 2017 19:31:19 +0000 Subject: [PATCH] Bug fix with context, and dependencies --- requirements.txt | 32 ++++++++------------------------ src/api/index.py | 2 +- 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/requirements.txt b/requirements.txt index ff952d7..c64c4ce 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,34 +1,18 @@ -asn1crypto==0.22.0 -cffi==1.8.3 -click==6.6 +appdirs==1.4.3 +click==6.7 couchdbkit==0.6.5 -cryptography==1.5.3 -enum34==1.1.6 -Flask==0.11.1 -get==0.0.0 +Flask==0.12.1 http-parser==0.8.3 -idna==2.1 -ipaddress==1.0.17 itsdangerous==0.24 -Jinja2==2.8 -MarkupSafe==0.23 -ndg-httpsclient==0.4.2 +Jinja2==2.9.6 +MarkupSafe==1.0 numpy==1.12.1 packaging==16.8 pika==0.10.0 -post==0.0.0 -public==0.0.0 -pyasn1==0.1.9 -pycparser==2.17 -pyOpenSSL==16.2.0 pyparsing==2.2.0 -query-string==0.0.0 -request==0.0.0 -requests==2.11.1 +requests==2.13.0 restkit==4.2.2 -setupfiles==0.0.0 six==1.10.0 socketpool==0.5.3 -stripe==1.41.1 -Werkzeug==0.11.11 -xmljson==0.1.7 +stripe==1.55.0 +Werkzeug==0.12.1 diff --git a/src/api/index.py b/src/api/index.py index 85e24f8..69b595d 100644 --- a/src/api/index.py +++ b/src/api/index.py @@ -18,7 +18,7 @@ PORT = 8100 if 'port' not in PARAMS else int(PARAMS['port']) ; path = PARAMS['path'] #os.environ['CONFIG'] f = open(path) CONFIG = json.loads(f.read()) -CONTEXT= ('/'+PARAMS['context']) if 'context' in PARAMS else '' +CONTEXT= PARAMS['context'] if 'context' in PARAMS else '' stripe_keys = { 'secret_key': CONFIG['stripe']['secret'].strip(), 'publishable_key': CONFIG['stripe']['pub'].strip()