File tree 5 files changed +8
-11
lines changed
src/dataset_image_annotator/api/v1
5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.0.23
18
+ version : 0.0.24
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
23
# It is recommended to use it with quotes.
24
- appVersion : " 0.0.23 "
24
+ appVersion : " 0.0.24 "
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ metadata:
6
6
{{- include "annotator-backend.labels" . | nindent 4 }}
7
7
spec :
8
8
{{- if not .Values.autoscaling.enabled }}
9
- replicas : {{ .Values.replicaCount }}
10
9
{{- end }}
11
10
selector :
12
11
matchLabels :
Original file line number Diff line number Diff line change 2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
4
5
- replicaCount : 1
6
-
7
5
postgresql :
8
6
database : " image-annotations"
9
7
username : " "
Original file line number Diff line number Diff line change 4
4
5
5
[metadata]
6
6
name = dataset-image-annotator
7
- version = 0.0.23
7
+ version = 0.0.24
8
8
description = Image annotation tool
9
9
author = Oleg Korsak
10
10
@@ -32,7 +32,7 @@ package_dir =
32
32
setup_requires = pyscaffold>=3.2a0,<3.3a0
33
33
# Add here dependencies of your project (semicolon/line-separated), e.g.
34
34
install_requires =
35
- rawpy ==0.17.3
35
+ rawpy ==0.18.0
36
36
Pillow ==9.4.0
37
37
pydantic ==1.10.4
38
38
tzdata ==2022.7
@@ -54,12 +54,12 @@ exclude =
54
54
desktop =
55
55
PySide6-Essentials ==6.4.2
56
56
web =
57
- alembic ==1.9.2
57
+ alembic ==1.9.3
58
58
asyncpg ==0.27.0
59
59
Authlib ==1.2.0
60
60
passlib ==1.7.4
61
61
databases[postgresql]==0.7.0
62
- fastapi ==0.89.1
62
+ fastapi ==0.90.0
63
63
fastapi-pagination ==0.11.3
64
64
fastapi-users[sqlalchemy]==10.3.0
65
65
numpy ==1.24.1
Original file line number Diff line number Diff line change 10
10
from fastapi_users import FastAPIUsers
11
11
from fastapi_users .authentication import AuthenticationBackend , JWTStrategy , CookieTransport
12
12
from pydantic import Json
13
+ from python3_commons .db import connect_to_db
13
14
14
15
from dataset_image_annotator import core
15
16
from dataset_image_annotator .api import users
21
22
from dataset_image_annotator .core import upload_handler
22
23
from dataset_image_annotator .db import database
23
24
from dataset_image_annotator .db .models import User
24
- from dataset_image_annotator .helpers import connect_to_db
25
25
26
26
logger = logging .getLogger (__name__ )
27
27
router = APIRouter ()
@@ -46,7 +46,7 @@ def get_jwt_strategy() -> JWTStrategy:
46
46
47
47
@router .on_event ('startup' )
48
48
async def startup ():
49
- await connect_to_db (database )
49
+ await connect_to_db (database , settings . db_dsn )
50
50
51
51
52
52
@router .on_event ('shutdown' )
You can’t perform that action at this time.
0 commit comments