Skip to content

Commit

Permalink
fix conddb dump functionality for tags and gts
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobrivio committed Jul 15, 2022
1 parent b656633 commit 4803016
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CondCore/Utilities/scripts/conddb
Original file line number Diff line number Diff line change
Expand Up @@ -2555,16 +2555,16 @@ def dump(args):
filter(IOV.tag_name == name).\
distinct():
if args.format == 'xml':
xmlProcessor.payload2xml(session, payload)
xmlProcessor.payload2xml(session, payload, args.destfile)
else:
_dump_payload(session, payload, args.loadonly)

elif args.type == 'gt' and _exists(session, conddb.GlobalTag.name, name) != None:
elif args.type == 'gt' and _exists(session, GlobalTag.name, name) != None:
for payload, in session.query(IOV.payload_hash).\
filter(GlobalTagMap.global_tag_name == name, IOV.tag_name == GlobalTagMap.tag_name).\
distinct():
if args.format == 'xml':
xmlProcessor.payload2xml(session, payload)
xmlProcessor.payload2xml(session, payload, args.destfile)
else:
_dump_payload(session, payload, args.loadonly)

Expand Down

0 comments on commit 4803016

Please sign in to comment.