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
5068333f
Commit
5068333f
authored
Mar 31, 2022
by
Javier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cambio a Postpago de Usuarios
parent
f11cb2cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
functions.py
mbilling/functions.py
+8
-0
No files found.
mbilling/functions.py
View file @
5068333f
...
...
@@ -133,6 +133,14 @@ def create_user(phone_number: str, name: str, surname: str, password: str = None
_create_sip
(
phone_number
,
password
,
pbx
)
_create_did
(
phone_number
)
with
mariadb
.
connect
(
**
DB_CREDENTIALS
)
as
cnx
:
with
cnx
.
cursor
()
as
cursor
:
cursor
.
execute
(
"UPDATE mbilling.pkg_user SET typepaid=1, creditlimit=30 WHERE username=?"
,
(
phone_number
,)
)
cursor
.
fetchone
()
return
password
...
...
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