Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
scrapper-portabilidad
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Javier
scrapper-portabilidad
Commits
00b45e98
Commit
00b45e98
authored
May 16, 2023
by
Javier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modificación cli
parent
31c22755
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
cli.py
cli.py
+8
-6
No files found.
cli.py
View file @
00b45e98
...
@@ -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
=
'
\n
Actualización Finalizada,
\n
'
msg
=
'
\n
Actualizació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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment