-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Apply extract ids for search results #10
Conversation
I don't really understand what the next step is to use MixIn to simplify things: |
self._items.append(Person(item_data['name'], | ||
item_data['slug'])) | ||
extract_ids(item_data) | ||
self._items.append(Person(**item_data)) | ||
|
||
yield self._items |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that UserList.get_items()
has a bug, it always appends items to self._items
. IMHO it should reset self._items = []
on each call to get_items()
.
Construct in a way that ids are filled properly
52f2026
to
ea690b6
Compare
Probably useless after #14 |
Continue #9