Skip to content

Commit 1bf3647

Browse files
committed
chg: rename no_resources to resources in nva function and run command
1 parent ea5deef commit 1bf3647

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/datasync/nva.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_resources(client: RESTClient, institution_code: str):
7676
def nva(
7777
base_url: str = NVA_BASE_URL,
7878
institution_code: str = NVA_INSTITUTION_CODE,
79-
no_resources: bool = False,
79+
resources: bool = False,
8080
projects: bool = False,
8181
persons: bool = False,
8282
categories: bool = False,
@@ -88,7 +88,7 @@ def nva(
8888
data_selector="hits",
8989
)
9090

91-
if not no_resources:
91+
if resources:
9292
yield dlt.resource(
9393
get_resources(client, institution_code),
9494
name="resources",
@@ -132,7 +132,7 @@ def nva(
132132

133133
@app.command()
134134
def run(
135-
no_resources: bool = False,
135+
resources: bool = False,
136136
projects: bool = False,
137137
persons: bool = False,
138138
categories: bool = False,
@@ -158,6 +158,7 @@ def run(
158158
pipeline = dlt.pipeline(
159159
pipeline_name=duckdb_name,
160160
destination=filesystem(
161+
region=region,
161162
bucket_url=f"s3://{bucket}/" + prefix,
162163
credentials=credentials,
163164
layout="{table_name}.{ext}",
@@ -171,7 +172,7 @@ def run(
171172
nva(
172173
base_url=base_url,
173174
institution_code=institution_code,
174-
no_resources=no_resources,
175+
resources=resources,
175176
projects=projects,
176177
persons=persons,
177178
categories=categories,

0 commit comments

Comments
 (0)