mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-05 02:56:17 +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',
|
@cmdln.option('-l', '--legend', action='store_true',
|
||||||
help='show the legend')
|
help='show the legend')
|
||||||
@cmdln.option('--csv', action='store_true',
|
@cmdln.option('-c', '--csv', action='store_true',
|
||||||
help='csv output')
|
help='csv output')
|
||||||
def do_prjresults(self, subcmd, opts, *args):
|
def do_prjresults(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: Shows project-wide build results
|
"""${cmd_name}: Shows project-wide build results
|
||||||
|
@ -2402,10 +2402,10 @@ def get_prj_results(apiurl, prj, show_legend=False, csv=False):
|
|||||||
if csv:
|
if csv:
|
||||||
# TODO: option to disable the table header
|
# TODO: option to disable the table header
|
||||||
row = ['_'] + ['/'.join(tg) for tg in targets]
|
row = ['_'] + ['/'.join(tg) for tg in targets]
|
||||||
r.append(','.join(row))
|
r.append(';'.join(row))
|
||||||
for pac in pacs:
|
for pac in pacs:
|
||||||
row = [pac] + [status[pac][tg] for tg in targets]
|
row = [pac] + [status[pac][tg] for tg in targets]
|
||||||
r.append(','.join(row))
|
r.append(';'.join(row))
|
||||||
return r
|
return r
|
||||||
|
|
||||||
# human readable output
|
# human readable output
|
||||||
|
Loading…
Reference in New Issue
Block a user