Skip to content

Commit e36ec79

Browse files
committed
patch to 1.4.7 --> 1.4.7.2
1 parent 1f440c6 commit e36ec79

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ services:
1414
- auth
1515
- projects
1616
ports:
17-
- 80:80
17+
- target: 80
18+
published: 80
19+
mode: host
1820
bot:
1921
<<: *common
2022
image: ghcr.io/amthorn/qutex/qutex_bot:${QUTEX_VERSION:-latest}

services/_api_service_template/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ COPY services/${SERVICE_PREFIX}/*.py ./
1818

1919
ENV SERVICE_PREFIX=${SERVICE_PREFIX}
2020
ENTRYPOINT ["flask", "run", "--host=0.0.0.0", "--port=4000"]
21-
HEALTHCHECK --interval=30s --start-period=5s --timeout=30s --retries=3 CMD curl http://localhost:4000/api/v1/${SERVICE_PREFIX}/healthcheck | grep OK
21+
HEALTHCHECK --interval=30s --start-period=5s --timeout=30s --retries=3 CMD wget http://localhost:4000/api/v1/${SERVICE_PREFIX}/healthcheck -q -O - | grep OK

services/projects/api/v1/projects.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ class ProjectsApi(Resource):
2727
def get(self) -> dict[str, list]:
2828
# TODO: authorize
2929
page_num = request.args.get('page', 1)
30-
limit = request.args.get('limit', 1)
31-
# data = [i.to_mongo() for i in ProjectDocument.objects.skip((page_num - 1) * limit).limit(limit)]
32-
data = [i.to_mongo() for i in ProjectDocument.objects()] * 100
30+
limit = request.args.get('limit', 50)
31+
data = [i.to_mongo() for i in ProjectDocument.objects.skip((page_num - 1) * limit).limit(limit)]
3332
return {'data': data, 'total': len(data)}
3433

3534
def post(self, **kwargs: dict[str, Any]) -> dict[str, Any]:

0 commit comments

Comments
 (0)