Skip to content
Snippets Groups Projects

Sweeping !1654 from master to devel: Fixed client and tornado handler methods for getProductions and get/addPublications

Merged Sweeping !1654 from master to devel: Fixed client and tornado handler methods for getProductions and get/addPublications
Merged LHCbDIRAC Bot requested to merge cherry-pick-fb1b53ffd-devel into devel
2 files
+ 22
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -158,6 +158,8 @@ class AnalysisProductionsClient(Client):
with_pfns: bool = True,
with_transformations: bool = False,
at_time: Opt[datetime] = None,
show_archived: bool = False,
require_has_publication: bool = False,
):
"""Return the list of productions for a specific analysis
@@ -182,6 +184,8 @@ class AnalysisProductionsClient(Client):
with_pfns,
with_transformations,
at_time,
show_archived,
require_has_publication,
call="getProductions",
)
@@ -299,9 +303,9 @@ class AnalysisProductionsClient(Client):
:param number: publication number as a string (<64chars).
:returns: S_OK() || S_ERROR()
"""
return self.executeRPC(samples, call="addPublication")
return self.executeRPC(samples, number, call="addPublication")
def getPublications(self, sample_ids):
def getPublications(self, sample_ids: Opt[list] = None):
"""Get publication numbers for the specified sample.
:param samples: List of sample IDs
Loading