Skip to content

Commit 8dde0fa

Browse files
committed
corrections for AppAPI 1.4 (3)
1 parent 9ed14e0 commit 8dde0fa

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/main.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,11 @@ def enabled_handler(enabled: bool, request: Request):
186186
"POST",
187187
"/ocs/v1.php/apps/app_api/api/v1/ui/files-actions-menu",
188188
json_data={
189-
"fileActionMenuParams": {
190-
"name": "upscale",
191-
"displayName": "Upscale",
192-
"mime": "image",
193-
"permissions": 31,
194-
"actionHandler": "/gfpgan_upscale",
195-
}
189+
"name": "upscale",
190+
"displayName": "Upscale",
191+
"mime": "image",
192+
"permissions": 31,
193+
"actionHandler": "/gfpgan_upscale",
196194
},
197195
)
198196
response_data = json.loads(result.text)

0 commit comments

Comments
 (0)