Skip to content

Commit

Permalink
Merge branch 'feature/images'
Browse files Browse the repository at this point in the history
  • Loading branch information
Trampenau, Rene committed Sep 25, 2018
2 parents 91d6ac1 + 2252bf8 commit 3f8dc5a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def _printWorkitem(id):
new_tag = descriptionSoup.new_tag('img', src=imageDir + attachment.get('src')[11:], align="middle")
attachment.replace_with(new_tag)
elif attachment.get('src').startswith("workitemimg:"):
pass
#print "ID: " + id
copyfile(imageDict['attachment' + attachment.get('src')[12:]], imageDir + attachment.get('src')[12:])
new_tag = descriptionSoup.new_tag('img', src=imageDir + attachment.get('src')[12:], align="middle")
attachment.replace_with(new_tag)
else:
pass

Expand Down Expand Up @@ -152,6 +155,8 @@ def _removeDefinedAttributes(soup):
# #print img, imageDict[img], "\n"
# if img.startswith('15'):
# print img, imageDict[img], "\n"
#
#exit()

# ask user for a number
rawNumber = raw_input('Choose a number: ')
Expand Down

0 comments on commit 3f8dc5a

Please sign in to comment.