comparison roundup/cgi/actions.py @ 5515:cd0ceb2afdb8

fixed issue2550993 and added test case
author Christof Meerwald <cmeerw@cmeerw.org>
date Sun, 19 Aug 2018 15:11:05 +0100
parents 4f6e1ce89557
children be99aa02c616
comparison
equal deleted inserted replaced
5514:ff5e3e7d216c 5515:cd0ceb2afdb8
502 ) % {'class': self.classname}) 502 ) % {'class': self.classname})
503 elif cl.hasnode(itemid) and cl.is_retired(itemid): 503 elif cl.hasnode(itemid) and cl.is_retired(itemid):
504 # If a CSV line just mentions an id and the corresponding 504 # If a CSV line just mentions an id and the corresponding
505 # item is retired, then the item is restored. 505 # item is retired, then the item is restored.
506 cl.restore(itemid) 506 cl.restore(itemid)
507 continue 507 exists = 1
508 else: 508 else:
509 exists = 1 509 exists = 1
510 510
511 # confirm correct weight 511 # confirm correct weight
512 if len(props_without_id) != len(values): 512 if len(props_without_id) != len(values):

Roundup Issue Tracker: http://roundup-tracker.org/