Skip to content

Conversation

@combinatorist
Copy link
Collaborator

No description provided.

for x in attempting_items:
raw_matches = search_entities(x.name, "en", dict_result=True)
raw_matches = search_entities(
x.name, config.LANGUAGE_CODE, dict_result=True, max_results=max_results
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

also configured language here where it was previously missed

requires-python = "<4.0,>=3.13"
dependencies = [
"wikibaseintegrator (>=0.12.12,<0.13.0)",
"wikibaseintegrator @ git+https://github.com/LeMyst/WikibaseIntegrator.git@301067883ddce0bca31fdd54973c3d6c8cbbcb7d",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is temporary to get around a login issue.

wbi = WikibaseIntegrator()

WIKIDATA_MAX_RESULTS_PER_SEARCH: int = int(
os.getenv("WIKIDATA_MAX_RESULTS_PER_SEARCH", 50)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

using 50 to match the library's default, but realistically, we probably want just 5, which is what I've set in the public repo var

AIRTABLE_BASE_ID: ${{ vars.AIRTABLE_BASE_ID }}
WIKIDATA_BOT_PW: ${{ secrets.WIKIDATA_BOT_PW }}
WIKIDATA_BOT_USERNAME: ${{ secrets.WIKIDATA_BOT_USERNAME }}
WIKIDATA_MAX_RESULTS_PER_SEARCH: ${{ vars.WIKIDATA_MAX_RESULTS_PER_SEARCH }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Core fix making results configurable to reduce noise and airtable limits.

@combinatorist combinatorist merged commit ec1f8c0 into main Sep 4, 2025
4 checks passed
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