Fixed lint issues
This commit is contained in:
parent
1435b307a6
commit
555e2bbc00
3 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
|||
from enum import Enum
|
||||
import marshmallow as ma
|
||||
|
||||
from .requests import RequestStatus
|
||||
|
|
|
@ -14,7 +14,7 @@ class AllRequests(MethodView):
|
|||
def get(self):
|
||||
db_data = db.at("requests").read()
|
||||
response = []
|
||||
for key, value in db_data.items():
|
||||
for value in db_data.values():
|
||||
value.update({
|
||||
"status": RequestStatus(value["status"])
|
||||
})
|
||||
|
|
|
@ -2,7 +2,7 @@ from flask_smorest import abort
|
|||
from flask.views import MethodView
|
||||
|
||||
from database import Database
|
||||
from models.requests import UuidSchema, RequestsInteraction, RequestsInteractionDelete, RequestStatus
|
||||
from models.requests import UuidSchema, RequestsInteractionDelete, RequestStatus
|
||||
from models.requestentry import RequestDatabaseEntry
|
||||
from . import routes_requests as blp
|
||||
|
||||
|
|
Loading…
Reference in a new issue