|
|
|
@ -5,6 +5,7 @@
|
|
|
|
|
"""
|
|
|
|
|
from __future__ import division
|
|
|
|
|
from flask import Flask, request, session, render_template,Response
|
|
|
|
|
from flask_cors import CORS
|
|
|
|
|
import Domain
|
|
|
|
|
from couchdbkit import Server, Document
|
|
|
|
|
import stripe
|
|
|
|
@ -29,6 +30,7 @@ stripe.api_key = stripe_keys['secret_key'].strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
CORS(app)
|
|
|
|
|
COUCHDB = Server(uri=CONFIG['couchdb']['uri']) ;
|
|
|
|
|
"""
|
|
|
|
|
This function will set the user information to the session and update the information
|
|
|
|
@ -206,7 +208,7 @@ def get_plans(app_name) :
|
|
|
|
|
# This should address any case of the database of customers being out of sync
|
|
|
|
|
# @TODO: Have a log suggesting a utility imports the customer
|
|
|
|
|
#
|
|
|
|
|
pass
|
|
|
|
|
return json.dumps(plans)
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# @TODO: Mark the plans the current user is signed up for
|
|
|
|
|