From ceb7bb85ae4a46253705f0f2e84007795ab38dd7 Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 27 Nov 2023 20:11:56 -0800 Subject: [PATCH] fix scraper_id being reset accidentally --- src/webtranspose/scrape.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/webtranspose/scrape.py b/src/webtranspose/scrape.py index c8c2d4b..86479ba 100644 --- a/src/webtranspose/scrape.py +++ b/src/webtranspose/scrape.py @@ -50,8 +50,7 @@ def __init__( self.scraper_id = scraper_id if self.scraper is None: self.scraper = OpenAIScraper() - self.scraper_id = None - if self.api_key is None: + if self.scraper_id is None: self.scraper_id = str(uuid.uuid4()) self.created = _created