Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NACSOS Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MCC APSIS
NACSOS
NACSOS Core
Commits
7fc7a5ce
Commit
7fc7a5ce
authored
1 year ago
by
Tim Repke
Browse files
Options
Downloads
Patches
Plain Diff
fix build
parent
eb308493
No related branches found
Branches containing commit
No related tags found
1 merge request
!53
OpenAlex Search and pydantic v2 migration
Pipeline
#1864
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/util/config.py
+2
-2
2 additions, 2 deletions
server/util/config.py
with
2 additions
and
2 deletions
server/util/config.py
+
2
−
2
View file @
7fc7a5ce
...
...
@@ -60,11 +60,11 @@ class DatabaseConfig(BaseModel):
CONNECTION_STR
:
PostgresDsn
|
None
=
None
@field_validator
(
'
CONNECTION_STR
'
,
mode
=
'
before
'
)
def
build_connection_string
(
cls
,
v
:
str
|
None
,
info
:
FieldValidationInfo
)
->
str
:
def
build_connection_string
(
cls
,
v
:
str
|
None
,
info
:
FieldValidationInfo
)
->
PostgresDsn
:
assert
info
.
config
is
not
None
if
isinstance
(
v
,
str
):
r
eturn
v
r
aise
ValueError
(
'
This field will be generated automatically, please do not use it.
'
)
return
PostgresDsn
.
build
(
scheme
=
info
.
data
.
get
(
'
SCHEME
'
,
'
postgresql
'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment