I noticed that in this function, the following is used:
for index in item_list:
title = item_attribute['title'][index]
genre = item_attribute['genre'][index]
...
to extract items that the user has interacted with, where index represents the item IDs that the user interacted with. However, this extracts the information of the item at the index-th position in the list, whereas logically, the correct approach would be to extract the item where id=index. Could this be a bug?
I noticed that in this function, the following is used:
to extract items that the user has interacted with, where
indexrepresents the item IDs that the user interacted with. However, this extracts the information of the item at theindex-th position in the list, whereas logically, the correct approach would be to extract the item whereid=index. Could this be a bug?