Commit 6fe6898
fix: Correct inverted return value in Scrapy scheduler enqueue_request
The enqueue_request method was returning bool(result.was_already_present),
which incorrectly returned True for duplicates and False for newly enqueued
requests. Per Scrapy's BaseScheduler contract, it should return True when
the request was successfully stored (new) and False when rejected (duplicate).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 252eb4e commit 6fe6898
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
0 commit comments