Skip to content

Commit 9ed14e0

Browse files
committed
corrections for AppAPI 1.4 (2)
1 parent e87ff88 commit 9ed14e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ def enabled_handler(enabled: bool, request: Request):
188188
json_data={
189189
"fileActionMenuParams": {
190190
"name": "upscale",
191-
"display_name": "Upscale",
191+
"displayName": "Upscale",
192192
"mime": "image",
193193
"permissions": 31,
194-
"action_handler": "/gfpgan_upscale",
194+
"actionHandler": "/gfpgan_upscale",
195195
}
196196
},
197197
)
@@ -203,7 +203,7 @@ def enabled_handler(enabled: bool, request: Request):
203203
ocs_call(
204204
"DELETE",
205205
"/ocs/v1.php/apps/app_api/api/v1/ui/files-actions-menu",
206-
json_data={"fileActionMenuName": "upscale"},
206+
json_data={"name": "upscale"},
207207
)
208208
except Exception as e:
209209
r = str(e)

0 commit comments

Comments
 (0)