Fixed lost record update with updated user profile

Resolves bug 1220691

Change-Id: I910f6c7de3a35efa5f4bb83670f10ebe6e8f07a6
This commit is contained in:
Ilya Shakhat
2013-09-04 17:52:44 +04:00
parent f60297474e
commit a09e002107
2 changed files with 21 additions and 22 deletions

View File

@@ -142,9 +142,8 @@ def process(runtime_storage_inst, default_data, sources_root, force_update):
# need to iterate over full view of records and generate valid
# users profiles
LOG.debug('Iterate all records to create valid users profiles')
for record in record_processor_inst.update(
runtime_storage_inst.get_all_records(), release_index):
pass
for record in runtime_storage_inst.get_all_records():
record_processor_inst.update_user(record)
# update records according to generated users profiles
LOG.debug('Update all records according to users profiles')
updated_records = record_processor_inst.update(