Skip to content

Commit 7c59915

Browse files
committed
final adjustments
1 parent f58ba97 commit 7c59915

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ help:
1616
@echo " run27 install UpScaler for Nextcloud 27"
1717
@echo " "
1818
@echo " For development of this example use PyCharm run configurations. Development is always set for last Nextcloud."
19-
@echo " First run 'upscaler_example' and then 'make manual_register', after that you can use/debug/develop it and easy test."
19+
@echo " First run 'upscaler_example' and then 'make register', after that you can use/debug/develop it and easy test."
2020
@echo " "
21-
@echo " manual_register28 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon."
22-
@echo " manual_register27 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon."
21+
@echo " register28 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon."
22+
@echo " register27 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon."
2323

2424
.PHONY: build-push
2525
build-push:
@@ -36,7 +36,7 @@ deploy28:
3636
run28:
3737
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
3838
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register upscaler_example docker_dev \
39-
-e --force-scopes \
39+
--force-scopes \
4040
--info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml
4141

4242
.PHONY: deploy27
@@ -49,19 +49,19 @@ deploy27:
4949
run27:
5050
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
5151
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register upscaler_example docker_dev \
52-
-e --force-scopes \
52+
--force-scopes \
5353
--info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml
5454

55-
.PHONY: manual_register28
56-
manual_register28:
55+
.PHONY: register28
56+
register28:
5757
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
5858
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register upscaler_example manual_install --json-info \
5959
"{\"appid\":\"upscaler_example\",\"name\":\"upscaler_example\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":10050,\"scopes\":{\"required\":[\"FILES\", \"NOTIFICATIONS\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" \
60-
-e --force-scopes
60+
--force-scopes
6161

62-
.PHONY: manual_register27
63-
manual_register27:
62+
.PHONY: register27
63+
register27:
6464
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
6565
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register upscaler_example manual_install --json-info \
6666
"{\"appid\":\"upscaler_example\",\"name\":\"upscaler_example\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":10050,\"scopes\":{\"required\":[\"FILES\", \"NOTIFICATIONS\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" \
67-
-e --force-scopes
67+
--force-scopes

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={"progress": 100})
228+
ocs_call(method="PUT", path=f"/index.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)