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
24748357
Commit
24748357
authored
7 months ago
by
Max Callaghan
Browse files
Options
Downloads
Patches
Plain Diff
new deduplication logic for imports
parent
f15750d1
No related branches found
No related tags found
2 merge requests
!99
Main
,
!98
new deduplication logic for imports
Pipeline
#3628
failed
7 months ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
server/api/routes/search.py
+1
-1
1 addition, 1 deletion
server/api/routes/search.py
server/pipelines/tasks/imports.py
+1
-1
1 addition, 1 deletion
server/pipelines/tasks/imports.py
server/util/config.py
+2
-1
2 additions, 1 deletion
server/util/config.py
with
4 additions
and
3 deletions
server/api/routes/search.py
+
1
−
1
View file @
24748357
...
...
@@ -8,7 +8,7 @@ from sqlalchemy.ext.asyncio import AsyncSession
from
nacsos_data.db.engine
import
ensure_session
from
nacsos_data.db.schemas
import
Project
,
ItemType
from
nacsos_data.util.nql
import
NQLQuery
,
NQLFilter
from
nacsos_data.util.academic.openalex
import
query_async
,
SearchResult
from
nacsos_data.util.academic.
readers.
openalex
import
query_async
,
SearchResult
from
nacsos_data.models.items
import
AcademicItemModel
,
FullLexisNexisItemModel
,
GenericItemModel
from
nacsos_data.models.openalex.solr
import
SearchField
,
DefType
,
OpType
...
...
This diff is collapsed.
Click to expand it.
server/pipelines/tasks/imports.py
+
1
−
1
View file @
24748357
...
...
@@ -7,7 +7,7 @@ from nacsos_data.db import get_engine_async
from
nacsos_data.db.schemas
import
Import
from
nacsos_data.models.imports
import
ImportConfig
,
ImportModel
from
nacsos_data.util
import
ensure_values
from
nacsos_data.util.academic.import
ing
import
(
from
nacsos_data.util.academic.import
er
import
(
import_wos_files
,
import_openalex_files
,
import_academic_db
,
...
...
This diff is collapsed.
Click to expand it.
server/util/config.py
+
2
−
1
View file @
24748357
...
...
@@ -154,7 +154,7 @@ class Settings(BaseSettings):
EMAIL
:
EmailConfig
LOG_CONF_FILE
:
str
=
'
config/logging.
conf
'
LOG_CONF_FILE
:
str
=
'
config/logging.
toml
'
LOGGING_CONF
:
dict
[
str
,
Any
]
|
None
=
None
@field_validator
(
'
LOGGING_CONF
'
,
mode
=
'
before
'
)
...
...
@@ -165,6 +165,7 @@ class Settings(BaseSettings):
if
isinstance
(
v
,
dict
):
return
v
filename
=
info
.
data
.
get
(
'
LOG_CONF_FILE
'
,
None
)
print
(
info
.
data
)
if
filename
is
not
None
:
with
open
(
filename
,
'
r
'
)
as
f
:
ret
=
toml
.
loads
(
f
.
read
())
...
...
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