[Miner] Fixed modifications output
This commit is contained in:
parent
e659a7c762
commit
c87e5028b0
|
@ -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']:
|
||||
|
|
|
@ -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']:
|
||||
|
|
Loading…
Reference in New Issue