Skip to content

fix bug in duplicates in doc_id == 0 - #5

Open
one-piece-of-ai wants to merge 1 commit into
embr:masterfrom
one-piece-of-ai:master
Open

fix bug in duplicates in doc_id == 0#5
one-piece-of-ai wants to merge 1 commit into
embr:masterfrom
one-piece-of-ai:master

Conversation

@one-piece-of-ai

Copy link
Copy Markdown

when use "if id:", we cannot remove duplicate for doc_id ==0

when use "if id:", we cannot remove duplicate for doc_id ==0
Comment thread lsh/__init__.py
# logging.debug('buckets: %s', buckets)
all = list(set(reduce(list.__add__, buckets, [])))
if id:
if id != None:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comparisons with singletons should be done with is:

if id is not None:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants