Skip to content

Commit b9ae02e

Browse files
committed
fix: updated parsett to 1.6.2. made cached status false by default in api
1 parent c55fdc5 commit b9ae02e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

poetry.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routers/secure/scrape.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Stream(BaseModel):
2929
parsed_data: ParsedData
3030
rank: int
3131
lev_ratio: float
32-
is_cached: bool
32+
is_cached: bool = False
3333

3434
class ScrapeItemResponse(BaseModel):
3535
message: str
@@ -225,8 +225,6 @@ def scrape_item(request: Request, id: str) -> ScrapeItemResponse:
225225
raise HTTPException(status_code=404, detail="Item not found")
226226

227227
streams: Dict[str, Stream] = scraper.scrape(item)
228-
for stream in streams.values():
229-
stream.is_cached = False
230228
log_string = item.log_string
231229

232230
return {

0 commit comments

Comments
 (0)