mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 22:56:15 +01:00
csv exported project results now use ';' as default
This commit is contained in:
parent
2bf92fce75
commit
734973a0bd
@ -1261,7 +1261,7 @@ class Osc(cmdln.Cmdln):
|
||||
|
||||
@cmdln.option('-l', '--legend', action='store_true',
|
||||
help='show the legend')
|
||||
@cmdln.option('--csv', action='store_true',
|
||||
@cmdln.option('-c', '--csv', action='store_true',
|
||||
help='csv output')
|
||||
def do_prjresults(self, subcmd, opts, *args):
|
||||
"""${cmd_name}: Shows project-wide build results
|
||||
|
@ -2402,10 +2402,10 @@ def get_prj_results(apiurl, prj, show_legend=False, csv=False):
|
||||
if csv:
|
||||
# TODO: option to disable the table header
|
||||
row = ['_'] + ['/'.join(tg) for tg in targets]
|
||||
r.append(','.join(row))
|
||||
r.append(';'.join(row))
|
||||
for pac in pacs:
|
||||
row = [pac] + [status[pac][tg] for tg in targets]
|
||||
r.append(','.join(row))
|
||||
r.append(';'.join(row))
|
||||
return r
|
||||
|
||||
# human readable output
|
||||
|
Loading…
Reference in New Issue
Block a user