Commit 00b45e98 by Javier

Modificación cli

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