def __init__(self, config=config.get('sender')): self.url = config['url'] self.key = config['key'] self.maxRowsToSend = 10 self.lists = self.get_result('getLists', { 'format': 'json', 'api_key': self.key })
print('maintanance') return jsonify(logic.maintenanceAccurals()) @app.route('/', methods=['GET']) def get_tasks(): result = db.test_db() return jsonify(result) @app.route('/payments', methods=['POST']) @auth def post_payments(): result = None data = request.get_json(force=True) result = logic.upsert_payment(data) # except Exception as e: # print(e) # traceback.print_stack() # # result = {'ERROR'} return jsonify(result) TOKEN = config.get('TOKEN', None) if not (TOKEN): print('WARNING: TOKEN is not found in config.py') if __name__ == '__main__': app.run(host='0.0.0.0', debug=True)