|
|
|
@ -45,7 +45,7 @@ stripe_keys = {
|
|
|
|
|
stripe.api_key = stripe_keys['secret_key'].strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if os.environ['CLOUDVIEW_CONTEXT'] and os.environ['CLOUDVIEW_CONTEXT'] not in CONFIG['cloud-view']:
|
|
|
|
|
if 'CLOUDVIEW_CONTEXT' in os.environ and os.environ['CLOUDVIEW_CONTEXT'] not in CONFIG['cloud-view']:
|
|
|
|
|
context = os.environ['CLOUDVIEW_CONTEXT']
|
|
|
|
|
CONFIG['cloud-view'] = CONFIG['cloud-view'].replace('cloud-view',context)
|
|
|
|
|
|
|
|
|
@ -53,6 +53,13 @@ app = Flask(__name__)
|
|
|
|
|
CORS(app)
|
|
|
|
|
|
|
|
|
|
SYS_STORE = CONFIG['store']
|
|
|
|
|
|
|
|
|
|
@app.route("/donate")
|
|
|
|
|
def donate() :
|
|
|
|
|
print (request.args['amount'])
|
|
|
|
|
amount = float(request.args['amount']) if 'amount' in request.args else 5.0
|
|
|
|
|
args = {'amount':amount,'context':CONTEXT}
|
|
|
|
|
return render_template('donate.html',**args)
|
|
|
|
|
@app.route("/")
|
|
|
|
|
def index():
|
|
|
|
|
mystore = store.factory.instance(name='music')
|
|
|
|
|