Skip to content

fix import bug in mybooks api#11992

Merged
cdrini merged 1 commit intomasterfrom
fastapi-refactor/move-imports-up
Mar 3, 2026
Merged

fix import bug in mybooks api#11992
cdrini merged 1 commit intomasterfrom
fastapi-refactor/move-imports-up

Conversation

@RayBB
Copy link
Collaborator

@RayBB RayBB commented Mar 3, 2026

We were importing the wrong thing in a bad copy/paste not caught by mypy (but caught by ty)

@RayBB RayBB requested a review from cdrini March 3, 2026 02:56
@RayBB RayBB changed the title move some imports up in fastapi code fix import bug in mybooks api Mar 3, 2026
@RayBB RayBB added the Priority: 1 Do this week, receiving emails, time sensitive, . [managed] label Mar 3, 2026
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Lgtm!


fq = None
if mode == "ebooks":
from openlibrary.solr.solr import get_fulltext_min
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oooof! That's shocking that wasn't auto-caught... it would be great to automate errors for non-existant dependencies!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah it wasn't caught because we haven't enabled #11073 yet.

I think we should do that soon. I'll update the PR.

@cdrini cdrini merged commit 812d868 into master Mar 3, 2026
8 checks passed
@cdrini cdrini deleted the fastapi-refactor/move-imports-up branch March 3, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: 1 Do this week, receiving emails, time sensitive, . [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants