mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
tools: different order of columns in to csv converter
This commit is contained in:
parent
2082e05bd7
commit
0b66050a55
@ -39,7 +39,7 @@ def write_issues(r, csvout):
|
|||||||
date = issue['created_at'].split('T')[0]
|
date = issue['created_at'].split('T')[0]
|
||||||
milestone = issue['milestone']['title'] if issue['milestone'] else ""
|
milestone = issue['milestone']['title'] if issue['milestone'] else ""
|
||||||
|
|
||||||
csvout.writerow([issue['title'], issue['number'], issue['state'], issue['html_url'],
|
csvout.writerow([issue['title'], issue['number'], issue['html_url'], issue['state'],
|
||||||
milestone, priority, severity, weight, labels])
|
milestone, priority, severity, weight, labels])
|
||||||
|
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ def get_issues(name):
|
|||||||
csvfilename = '{}-issues.csv'.format(name.replace('/', '-'))
|
csvfilename = '{}-issues.csv'.format(name.replace('/', '-'))
|
||||||
with open(csvfilename, 'w', newline='') as csvfile:
|
with open(csvfilename, 'w', newline='') as csvfile:
|
||||||
csvout = csv.writer(csvfile)
|
csvout = csv.writer(csvfile)
|
||||||
csvout.writerow(['Title', 'Number', 'State', 'URL', 'Milestone', 'Priority', 'Severity', 'Weight', 'Labels'])
|
csvout.writerow(['Title', 'Number', 'URL', 'State', 'Milestone', 'Priority', 'Severity', 'Weight', 'Labels'])
|
||||||
write_issues(r, csvout)
|
write_issues(r, csvout)
|
||||||
|
|
||||||
# Multiple requests are required if response is paged
|
# Multiple requests are required if response is paged
|
||||||
|
Loading…
Reference in New Issue
Block a user