Skip to content

Commit

Permalink
[@adrilene/@denisousa] Issue #91 - Correções do PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrilene committed Jul 2, 2020
1 parent 662a81c commit 434c7ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions api/v2/controllers/dtos/service_order_request.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
class ServiceOrderRequest():
class ServiceOrderRequest:
def __init__(self, data):
self.tipo = data['tipo']
self.tipo = data["tipo"]
self.data = data

def get(self):
return self.data
return self.data

def valid(self):
return True

def errors(self):
return [{}]
return [{}]
1 change: 0 additions & 1 deletion api/v2/controllers/service_orders_many_controller.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from http import HTTPStatus
from flask import request
from .dtos.service_order_request import ServiceOrderRequest
from flask_restful import Resource
from ..helpers.helper_response import get_response
from ..validation.validation_request import invalid_deleted_parameter
Expand Down
2 changes: 1 addition & 1 deletion api/v2/utils/util_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def pop_id(data):
try:
del data['_id']
except Exception:
pass
return Exception

return id

Expand Down

0 comments on commit 434c7ea

Please sign in to comment.