Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Dead code pertaining to "any_languages" query generation

Open
#34 0 comments 0 reactions 1 assignee View on GitHub

@shyba is already working on this.

Since May 18, 2022.

Assessment

This issue has not been assessed yet.

Description

Saw this while investigating https://github.com/lbryio/lbry-sdk/issues/3328 and any_languages search term implementation.

1 File:
https://github.com/lbryio/scribe/blob/baf630dfa7854dd6ec4152ffdf35b13999093cde/scribe/elasticsearch/search.py#L404

...contains duplicate elif cases pertaining to any_languages:

        elif key == 'any_languages':
            query['must'].append({"terms": {'languages': clean_tags(value)}})
        elif key == 'any_languages':
            query['must'].append({"terms": {'languages': value}})

Can't say which one is the correct behavior.

Dominant language
Python
Stars
15
Forks
16
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lbryio/hub

All issues in lbryio/hub

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.