Skip to content

Commit

Permalink
fix logic for existing_html_used
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew D.Gramigna committed Oct 20, 2023
1 parent 4fda268 commit 8aec653
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def __init__(self, *args, **kwargs):
self.updated_at = int(self.current_time)
self.created_at = int(self.current_time)
self.current_date_utc = datetime.utcfromtimestamp(self.current_time).strftime("%Y-%m-%d")
self.existing_html_used = False #Initially set this to false, change later on in finalize_response if True
self.logger.info(f"Initialized Spider, {self.html_source}")

@property
Expand Down Expand Up @@ -73,11 +74,6 @@ def company_name(self):
return self.html_source.split("=")[-1]
#Traditional format
return self.html_source.split("/")[-1]

@property
def existing_html_used(self):
#Initially set this to false, change later on in finalize_response if True
return False

@property
def full_s3_html_path(self):
Expand Down

0 comments on commit 8aec653

Please sign in to comment.