Skip to content

Commit

Permalink
fix: readonly session state should be returned
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Feb 22, 2023
1 parent cdbc340 commit 2a21081
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/capellacollab/sessions/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def request_session(
git_repos_json=list(models_as_json(entries_with_models)),
)

return create_database_and_guacamole_session(
response = create_database_and_guacamole_session(
db,
schema.WorkspaceType.READONLY,
session,
Expand All @@ -231,6 +231,9 @@ def request_session(
project,
None,
)
response.state = "New"
response.last_seen = "UNKNOWN"
return response


def models_as_json(
Expand Down

0 comments on commit 2a21081

Please sign in to comment.