-
Notifications
You must be signed in to change notification settings - Fork 45
support for new format indexes #96
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
msgpack-python>=0.4.0 | ||
pyyaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,11 @@ def __init__(self, index_row, space): | |
self.unique = index_row[4] | ||
self.parts = [] | ||
if isinstance(index_row[5], (list, tuple)): | ||
for k, v in index_row[5]: | ||
self.parts.append((k, v)) | ||
for part in range(len(index_row[5])): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, add tests for this part of code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. But, I've changed format of parts to dict
|
||
if isinstance(part, list): | ||
self.parts.append({'field': part[0], 'type': part[1]}) | ||
else: | ||
self.parts.append(part) | ||
else: | ||
for i in range(index_row[5]): | ||
self.parts.append(( | ||
|
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.
Why're you doing this incompatible changes? use separate PR's for them.
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.
Sorry, I'll send another PR for this. I thought this repo no longer active