diff --git a/portas/portas/api/v1/sessions.py b/portas/portas/api/v1/sessions.py index cf3243a..b7ce024 100644 --- a/portas/portas/api/v1/sessions.py +++ b/portas/portas/api/v1/sessions.py @@ -79,7 +79,7 @@ class Controller(object): unit = get_session() statuses = unit.query(Status).filter_by(session_id=session_id) - return {"reports": [status.to_dict() for status in statuses]} + return {'reports': [status.to_dict() for status in statuses]} def deploy(self, request, environment_id, session_id): unit = get_session() diff --git a/portas/portas/db/models.py b/portas/portas/db/models.py index 3ad8e87..bdfa0e6 100644 --- a/portas/portas/db/models.py +++ b/portas/portas/db/models.py @@ -125,7 +125,6 @@ class Session(BASE, ModelBase): def to_dict(self): dictionary = super(Session, self).to_dict() - del dictionary['environment'] del dictionary['description'] return dictionary