plugin tickets import bugzilla: fixed parsing of "created" and "updated" fields
This commit is contained in:
parent
0a33ab2d1d
commit
ada8d4756e
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ class BugzillaParser(object):
|
|||
for bug in root.xpath('bug'):
|
||||
ticket = {}
|
||||
ticket['id'] = bug.findtext('bug_id')
|
||||
ticket['creation'] = bug.findtext('creation_ts')
|
||||
ticket['update'] = bug.findtext('delta_ts')
|
||||
ticket['created'] = utils.date_parse(bug.findtext('creation_ts'))
|
||||
ticket['updated'] = utils.date_parse(bug.findtext('delta_ts'))
|
||||
ticket['title'] = bug.findtext('short_desc')
|
||||
reporter_elt = bug.find('reporter')
|
||||
ticket['reporter'] = reporter_elt.get('name')
|
||||
|
|
|
|||
Loading…
Reference in a new issue