Commit 00b45e98 by Javier

Modificación cli

parent 31c22755
......@@ -424,8 +424,8 @@ def restore():
cursor.commit()
# Realiza las Migraciones a la Nueva Plataforma
activate_new_plataform()
perform_migration()
# activate_new_plataform()
# perform_migration()
# Restaura los Valores de Cuentas que ya no están en Nueva Plataforma
with pyodbc.connect(SQL_SERVER_CNX_STRING) as cnx:
......@@ -514,10 +514,10 @@ def synchronize():
msg = '\nActualización Finalizada,\n'
# Sincronización de Cuentas
activate_new_plataform()
perform_migration()
# activate_new_plataform()
# perform_migration()
synchronize_payment_method()
update_a2billing_balance()
# update_a2billing_balance()
update_plan_consumption()
# Recargas
......@@ -540,7 +540,9 @@ def synchronize():
def reset_daily_limit():
mbapi_path = pathlib.Path(pathlib.Path().resolve(), 'mbilling')
values = dotenv_values(pathlib.Path(mbapi_path, '.env'))
print(mbapi_path)
print(pathlib.Path(mbapi_path, '.env'))
print(values['DB_USER'])
try:
with mariadb.connect(user=values['DB_USER'], password=values['DB_PASSWORD'], host=values['DB_HOST'],
port=3306, database=values['DB_NAME']) as cnx:
......
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