Skip to content

Commit

Permalink
Minor fix to image listing
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSwainston committed Nov 7, 2023
1 parent 6cb1b38 commit 405a4cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions psrdb/tables/pipeline_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ def __init__(self, client, token):
GraphQLTable.__init__(self, client, token)
self.record_name = "pipeline_image"

self.field_names = ["id", "image", "imageType", "rank", "processing {id}"]
self.field_names = ["id", "image", "imageType", "resolution", "cleaned", "pipelineRun {id}"]

def list(self, id=None, processing_id=None):
"""Return a list of records matching the id and/or the processing id."""
def list(self, id=None, pipeline_run_id=None):
"""Return a list of records matching the id and/or the pipelineRun id."""
filters = [
{"field": "processing", "value": processing_id},
{"field": "processing", "value": pipeline_run_id},
]
return GraphQLTable.list_graphql(self, self.table_name, filters, [], self.field_names)

Expand Down
1 change: 1 addition & 0 deletions psrdb/tables/pulsar_fold_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def __init__(self, client, token):
"observation { utcStart }",
"observation { band }",
"observation { duration }",
"pipelineRun { id }",
"pipelineRun { dm }",
"pipelineRun { dmErr }",
"pipelineRun { dmEpoch }",
Expand Down

0 comments on commit 405a4cf

Please sign in to comment.