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
d2636220
Commit
d2636220
authored
Apr 12, 2022
by
Javier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Erratas
parent
b1b0e0d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
main.py
main.py
+4
-0
No files found.
main.py
View file @
d2636220
...
@@ -213,6 +213,7 @@ def create_account(account: Account = Depends()):
...
@@ -213,6 +213,7 @@ def create_account(account: Account = Depends()):
"""
"""
if
not
mbilling
.
functions
.
get_user
(
account
.
number
):
plan_id
,
offer_id
=
encode_rate
(
account
.
rate
)
plan_id
,
offer_id
=
encode_rate
(
account
.
rate
)
# Generación de la Cuenta
# Generación de la Cuenta
...
@@ -251,6 +252,9 @@ def create_account(account: Account = Depends()):
...
@@ -251,6 +252,9 @@ def create_account(account: Account = Depends()):
status_code
=
400
status_code
=
400
)
)
else
:
response
=
JSONResponse
(
content
=
{
'error'
:
'El número ya está registrado en MagnusBilling'
},
status_code
=
409
)
return
response
return
response
...
...
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