Fix indent on pageview lookup
All checks were successful
ci/woodpecker/push/lint Pipeline was successful

This commit is contained in:
Liam Steckler 2024-02-22 06:41:44 -08:00
parent 84ca53d320
commit 77fae5eda6

View file

@ -100,15 +100,15 @@ with Session(engine) as session:
except NameError: except NameError:
print("Could not find or load the meta published time for this post") print("Could not find or load the meta published time for this post")
last_updated_time = datetime.now() last_updated_time = datetime.now()
try: try:
pageview_story_id = article_soup.find( pageview_story_id = article_soup.find(
"script", {"class": "pageview_story"} "script", {"class": "pageview_story"}
)["data-id"] )["data-id"]
except (NameError, TypeError): except (NameError, TypeError):
print( print(
"Could not find or load a Pageview story ID, skipping additional processing on this post" "Could not find or load a Pageview story ID, skipping additional processing on this post"
) )
continue continue
try: try:
lookup_statement = select(KuowStory).where( lookup_statement = select(KuowStory).where(
or_( or_(