[Miner] Fixed modifications output

This commit is contained in:
Felipe Martín 2013-05-27 16:11:15 +02:00
parent e659a7c762
commit c87e5028b0
2 changed files with 18 additions and 16 deletions

View File

@ -91,7 +91,8 @@ new_old_data = {}
new_old_data['list'] = []
[new_old_data['list'].append(x.name) for x in BLOCKS]
new_blocks = len(new_old_data['list'])-len(OLD_BLOCKS['list'])
print(' Fetched %d items (%d new)' % (len(new_old_data['list']), new_blocks))
print(' Fetched %d blocks (%d new)' % (len(new_old_data['list']), new_blocks))
if new_blocks > 0:
print(' Modifications:')
for item in BLOCKS:
if item.name not in OLD_BLOCKS['list']:

View File

@ -89,6 +89,7 @@ new_old_data['list'] = []
[new_old_data['list'].append(x.name) for x in ITEMS]
new_items = len(new_old_data['list'])-len(OLD_ITEMS['list'])
print(' Fetched %d items (%d new)' % (len(ITEMS), new_items))
if new_items > 0:
print(' Modifications:')
for item in ITEMS:
if item.name not in OLD_ITEMS['list']: