Skip to content

Commit 0dd5977

Browse files
MaxNumeriquegithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent f425483 commit 0dd5977

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

opengeodeweb_viewer_schemas.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,17 +1135,17 @@
11351135
}
11361136
}
11371137
},
1138-
"reset_project": {
1139-
"$id": "opengeodeweb_viewer.reset_project",
1140-
"rpc": "reset_project",
1138+
"kill": {
1139+
"$id": "opengeodeweb_viewer.kill",
1140+
"rpc": "kill",
11411141
"type": "object",
11421142
"properties": {},
11431143
"required": [],
11441144
"additionalProperties": false
11451145
},
1146-
"kill": {
1147-
"$id": "opengeodeweb_viewer.kill",
1148-
"rpc": "kill",
1146+
"import_project": {
1147+
"$id": "opengeodeweb_viewer.import_project",
1148+
"rpc": "import_project",
11491149
"type": "object",
11501150
"properties": {},
11511151
"required": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from .reset_project import *
21
from .kill import *
2+
from .import_project import *
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from typing import TypedDict
1+
from dataclasses_json import DataClassJsonMixin
2+
from dataclasses import dataclass
23

3-
class ImportProjectParams(TypedDict):
4-
pass
4+
5+
@dataclass
6+
class ImportProject(DataClassJsonMixin):
7+
pass

src/opengeodeweb_viewer/rpc/utils_protocols.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ def importProject(self, rpc_params: ImportProjectParams) -> None:
3636
flush=True,
3737
)
3838
validate_schema(
39-
rpc_params, self.utils_schemas_dict["import_project"], self.utils_prefix,
39+
rpc_params,
40+
self.utils_schemas_dict["import_project"],
41+
self.utils_prefix,
4042
)
4143

4244
widget = self.get_widget()

0 commit comments

Comments
 (0)