Skip to content

Commit

Permalink
Fix cannot get chrono user basket data
Browse files Browse the repository at this point in the history
  • Loading branch information
lthoang committed Nov 24, 2023
1 parent c6a349b commit b17009d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cornac/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def chrono_user_basket_data(self):

if self.__chrono_user_basket_data is None:
self.__chrono_user_basket_data = defaultdict()
for (bid, ids), t in zip(*self.baskets.values(), self.basket_timestamps):
for (bid, ids), t in zip(self.baskets.items(), self.basket_timestamps):
u = self.uir_tuple[0][ids[0]]
u_data = self.__chrono_user_basket_data.setdefault(u, ([], []))
u_data[0].append(bid)
Expand Down

0 comments on commit b17009d

Please sign in to comment.