File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/simcore_service_webserver/projects Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def convert_to_schema_names(
8686 if key in DB_EXCLUSIVE_COLUMNS :
8787 continue
8888 converted_value = value
89- if isinstance (value , datetime ):
89+ if isinstance (value , datetime ) and key in { "creation_date" , "last_change_date" } :
9090 converted_value = format_datetime (value )
9191 elif key == "prj_owner" :
9292 # this entry has to be converted to the owner e-mail address
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ async def trash_project(request: web.Request):
5050 return web .json_response (status = status .HTTP_204_NO_CONTENT )
5151
5252
53- @routes .post (f"/{ VTAG } /projects/{{project_uuid }}:untrash" , name = "untrash_project" )
53+ @routes .post (f"/{ VTAG } /projects/{{project_id }}:untrash" , name = "untrash_project" )
5454@login_required
5555@permission_required ("project.delete" )
5656async def untrash_project (request : web .Request ):
Original file line number Diff line number Diff line change 99import arrow
1010import pytest
1111from aiohttp .test_utils import TestClient
12+ from aioresponses import aioresponses
1213from models_library .api_schemas_webserver .projects import ProjectGet , ProjectListItem
1314from models_library .rest_pagination import Page
1415from pytest_simcore .helpers .assert_checks import assert_status
@@ -39,6 +40,7 @@ async def test_trash_projects(
3940 logged_user : UserInfoDict ,
4041 user_project : ProjectDict ,
4142 mocked_catalog : None ,
43+ director_v2_service_mock : aioresponses ,
4244):
4345 assert client .app
4446
You can’t perform that action at this time.
0 commit comments