Commit c76add0a authored by Luis Acosta's avatar Luis Acosta

Version 1.0.0

parent 4d3a5a32
......@@ -12,8 +12,8 @@ db_host = os.getenv("DB_HOST")
db_user = os.getenv("DB_USER")
db_pass = os.getenv("DB_PASS")
db_call_center = os.getenv("DB_NAME_CALL_CENTER")
db_name_asterisk = os.getenv("DB_NAME_ASTERISK")
db_name_cdr = os.getenv("DB_NAME_CDR")
#db_name_asterisk = os.getenv("DB_NAME_ASTERISK")
#db_name_cdr = os.getenv("DB_NAME_CDR")
db_name_hiper_service = os.getenv("DB_NAME_HIPER_SERVICE")
cc_url = 'https://mxcc-gruposerviandina.hiperpbx.com'
......@@ -36,9 +36,7 @@ fecha_hora = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
@app.route('/')
def home():
namecampaign='Camp_Agente_1007'
db = MySQLDatabase(host="localhost", user="root", password="", database="call_center")
resultado = db.consultar("select id, estatus from campaign where name=%s limit 1", (f'{namecampaign}',))
return jsonify({"Mensaje":"Hola"}), 200
return jsonify(resultado)
@app.route('/login', methods=['POST'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment