Skip to content

Commit 54ffddb

Browse files
authored
Update poetry2 (#312)
* update pyproject.toml * annofab v0.111.0 * poetry update * update devcontainer.json * fix typo * setting cSpell * poetry update
1 parent 0623194 commit 54ffddb

File tree

5 files changed

+328
-347
lines changed

5 files changed

+328
-347
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@
2121
"--init",
2222
"--net=host"
2323
],
24+
"containerEnv": {
25+
"CONTAINER_WORKSPACE": "${containerWorkspaceFolder}",
26+
"LOCAL_WORKSPACE": "${localWorkspaceFolder}"
27+
},
2428
"postStartCommand": "poetry install",
2529
"extensions": [
2630
"mosapride.zenkaku",
2731
"ms-python.python",
2832
"ms-python.vscode-pylance",
29-
"streetsidesoftware.code-spell-checker"
33+
"streetsidesoftware.code-spell-checker",
34+
"bungcip.better-toml"
3035
]
3136
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"cSpell.ignorePaths": [
4141
"**/.git/objects/**",
4242
".devcontainer/",
43-
".vscode/"
43+
".vscode/",
44+
"LICENSE"
4445
],
4546
"cSpell.words": [
4647
"pylint",

annofabapi/wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _hour_to_millisecond(hour: Optional[float]) -> Optional[int]:
7676
return int(hour * 3600_000) if hour is not None else None
7777

7878

79-
_ORGNIZATION_ID_FOR_AVAILABILITY = "___plannedWorktime___"
79+
_ORGANIZATION_ID_FOR_AVAILABILITY = "___plannedWorktime___"
8080
"""予定稼働時間用の組織ID"""
8181

8282
_JOB_CONCURRENCY_LIMIT = {
@@ -2087,7 +2087,7 @@ def _to_new_data(labor: Dict[str, Any]) -> Dict[str, Any]:
20872087
return labor
20882088

20892089
query_params = {
2090-
"organization_id": _ORGNIZATION_ID_FOR_AVAILABILITY,
2090+
"organization_id": _ORGANIZATION_ID_FOR_AVAILABILITY,
20912091
"account_id": account_id,
20922092
"from": from_date,
20932093
"to": to_date,
@@ -2227,7 +2227,7 @@ def put_labor_control_availability(
22272227
22282228
"""
22292229

2230-
organization_id = _ORGNIZATION_ID_FOR_AVAILABILITY
2230+
organization_id = _ORGANIZATION_ID_FOR_AVAILABILITY
22312231

22322232
labor_list, _ = self.api.get_labor_control(
22332233
query_params={"organization_id": organization_id, "account_id": account_id, "from": date, "to": date}

0 commit comments

Comments
 (0)