detect: remove leftover if-True indent marker
Dead syntax left over from a prior refactor. No behavior change.
This commit is contained in:
parent
cf8bc0ad89
commit
0f26475f52
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
### Refactored
|
### Refactored
|
||||||
- `category_fetcher` batch tag-API params are now built by a shared `_build_tag_api_params` helper instead of duplicated across `fetch_via_tag_api` and `_probe_batch_api`
|
- `category_fetcher` batch tag-API params are now built by a shared `_build_tag_api_params` helper instead of duplicated across `fetch_via_tag_api` and `_probe_batch_api`
|
||||||
|
- `detect.detect_site_type` — removed the leftover `if True:` indent marker; no behavior change
|
||||||
|
|
||||||
## v0.2.7
|
## v0.2.7
|
||||||
|
|
||||||
|
|||||||
@ -46,7 +46,6 @@ async def detect_site_type(
|
|||||||
limits=httpx.Limits(max_connections=10, max_keepalive_connections=5),
|
limits=httpx.Limits(max_connections=10, max_keepalive_connections=5),
|
||||||
)
|
)
|
||||||
client = _BC._shared_client
|
client = _BC._shared_client
|
||||||
if True: # keep indent level
|
|
||||||
# Try Danbooru / e621 first — /posts.json is a definitive endpoint
|
# Try Danbooru / e621 first — /posts.json is a definitive endpoint
|
||||||
try:
|
try:
|
||||||
params: dict = {"limit": 1}
|
params: dict = {"limit": 1}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user