Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postmon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matheus Horstmann
postmon
Commits
dcba09d6
Commit
dcba09d6
authored
12 years ago
by
Alê Borba
Browse files
Options
Downloads
Patches
Plain Diff
Retirando modificações de dev para criar branch especifico
parent
bcc8498c
No related branches found
Branches containing commit
Tags
v1.3.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
correios_server.py
+1
-3
1 addition, 3 deletions
correios_server.py
with
1 addition
and
3 deletions
correios_server.py
+
1
−
3
View file @
dcba09d6
...
...
@@ -29,7 +29,7 @@ def verifica_cep(cep):
response
.
headers
[
'
Access-Control-Allow-Origin
'
]
=
'
*
'
try
:
con
=
pymongo
.
MongoClient
(
'
localhost
'
)
con
=
pymongo
.
MongoClient
(
'
192.168.122.43
'
)
db
=
con
.
postmon
ceps
=
db
.
ceps
result
=
ceps
.
find_one
({
'
cep
'
:
cep
},
fields
=
{
'
_id
'
:
False
})
...
...
@@ -47,8 +47,6 @@ def verifica_cep(cep):
except
ValueError
:
result
=
dict
(
status
=
'
404
'
,
message
=
'
O CEP %s informado nao pode ser localizado
'
%
cep
)
response
.
status_code
=
404
response
.
status_line
=
'
404 - O CEP %s informado nao pode ser localizado
'
%
cep
if
not
result
.
has_key
(
'
status
'
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment