Skip to content

fix: use TCGdex.URI to build url#8

Closed
HellLord77 wants to merge 1 commit intotcgdex:masterfrom
HellLord77:fix/custom-uri
Closed

fix: use TCGdex.URI to build url#8
HellLord77 wants to merge 1 commit intotcgdex:masterfrom
HellLord77:fix/custom-uri

Conversation

@HellLord77
Copy link
Contributor

previously TCGdex.URI was completely unused. this pr allows modifying this variable to point custom host.

from tcgdexsdk import TCGdex

TCGdex.URI = "http://localhost:3000/v2"  # modify host for every subsequent fetch/fecth_list calls

tcgdex = TCGdex("en")
tcgdex.URI = "http://localhost:3000/v2"  # modify only for this tcgdex object

@Aviortheking
Copy link
Member

Thanks for the PR, I did some more work on top of it in #9 to make it more consistent with the rest of the SDKs

@HellLord77 HellLord77 deleted the fix/custom-uri branch May 3, 2025 16:35
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