Skip to content

Commit bc2bf28

Browse files
committed
made minor changes to update_date_submission_range and how it is called in controller.py
1 parent 4f54a9a commit bc2bf28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

woudc_data_registry/controller.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def ingest(ctx, source, reports_dir, lax, bypass, verbosity):
240240

241241
orchestrate(source, reports_dir, metadata_only=lax, bypass=bypass)
242242
update_extents()
243-
update_data_submission_ranges()
243+
update_date_submission_ranges()
244244

245245

246246
@click.command()
@@ -390,7 +390,6 @@ def gather(ctx, path, verbosity):
390390
def update_date_ranges(cntx, models, verbosity):
391391
""" update the start and end dates of the contributors, instruments,
392392
stations, and deployments table from all data submissions"""
393-
registry = Registry()
394393
if models is not None: # update the specified tables
395394
tables = [model.strip() for model in models.split(',')]
396395
update_date_submission_ranges(tables)

woudc_data_registry/generate_metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,13 +521,14 @@ def update_extents():
521521
return True
522522

523523

524-
def update_data_submission_ranges(registry, tables=None):
524+
def update_date_submission_ranges(tables=None):
525525
"""
526526
Update date ranges for each station, instrument, contributor, and
527527
deployment of the data submission
528528
529529
:returns: void
530530
"""
531+
registry = Registry()
531532

532533
[
533534
Contributor, Deployment, Station, DataRecord, Instrument

0 commit comments

Comments
 (0)