Update for latest spreadsheet fields
This commit is contained in:
parent
39c2249e49
commit
d3dd11b21c
1 changed files with 9 additions and 3 deletions
|
@ -286,16 +286,22 @@ def parse_assigned_metadata_initial(csvfile):
|
||||||
:7: Deprecated
|
:7: Deprecated
|
||||||
:8: Notes
|
:8: Notes
|
||||||
:9: Team Notes
|
:9: Team Notes
|
||||||
|
:10: Notes 2
|
||||||
|
:11: final supported_by field
|
||||||
"""
|
"""
|
||||||
with open(csvfile, 'rb') as f:
|
with open(csvfile, 'rb') as f:
|
||||||
for record in csv.reader(f):
|
for record in csv.reader(f):
|
||||||
module = record[0]
|
module = record[0]
|
||||||
|
|
||||||
supported_by = 'community'
|
if record[11] == 'core':
|
||||||
if record[4]:
|
|
||||||
supported_by = 'core'
|
supported_by = 'core'
|
||||||
elif record[5]:
|
elif record[11] == 'curated':
|
||||||
supported_by = 'committer'
|
supported_by = 'committer'
|
||||||
|
elif record[11] == 'community':
|
||||||
|
supported_by = 'community'
|
||||||
|
else:
|
||||||
|
raise Exception('Module record has no supported_by field: %s' % record)
|
||||||
|
#supported_by = 'community'
|
||||||
|
|
||||||
status = []
|
status = []
|
||||||
if record[6]:
|
if record[6]:
|
||||||
|
|
Loading…
Reference in a new issue