Skip to content

Commit c19d5a6

Browse files
committed
fixed bug with /init
1 parent 5a3f7b2 commit c19d5a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.run/upscaler_example.run.xml renamed to .run/upscaler_example (27).run.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<component name="ProjectRunConfigurationManager">
2-
<configuration default="false" name="upscaler_example" type="PythonConfigurationType" factoryName="Python">
2+
<configuration default="false" name="upscaler_example (27)" type="PythonConfigurationType" factoryName="Python">
33
<module name="upscaler_example" />
44
<option name="INTERPRETER_OPTIONS" value="" />
55
<option name="PARENT_ENVS" value="true" />
66
<envs>
7+
<env name="PYTHONUNBUFFERED" value="1" />
78
<env name="APP_ID" value="upscaler_example" />
89
<env name="APP_PORT" value="10050" />
910
<env name="APP_SECRET" value="12345" />
1011
<env name="APP_VERSION" value="1.0.0" />
1112
<env name="NEXTCLOUD_URL" value="http://stable27.local/index.php" />
12-
<env name="PYTHONUNBUFFERED" value="1" />
1313
</envs>
1414
<option name="SDK_HOME" value="$PROJECT_DIR$/venv/bin/python" />
15-
<option name="SDK_NAME" value="Python 3.10 (upscaler_demo)" />
15+
<option name="SDK_NAME" value="Python 3.10 (upscaler_example)" />
1616
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src" />
1717
<option name="IS_MODULE_SDK" value="false" />
1818
<option name="ADD_CONTENT_ROOTS" value="true" />

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def heartbeat_handler():
225225

226226
@APP.post("/init")
227227
def init_callback():
228-
ocs_call(method="PUT", path=f"/index.php/apps/app_api/apps/status/{os.environ['APP_ID']}", json_data={"progress": 100})
228+
ocs_call(method="PUT", path=f"/ocs/v1.php/apps/app_api/apps/status/{os.environ['APP_ID']}", json_data={"progress": 100})
229229
return responses.JSONResponse(content={}, status_code=200)
230230

231231

0 commit comments

Comments
 (0)