Fix indent on pageview lookup
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
This commit is contained in:
parent
84ca53d320
commit
77fae5eda6
1 changed files with 9 additions and 9 deletions
|
@ -100,15 +100,15 @@ with Session(engine) as session:
|
|||
except NameError:
|
||||
print("Could not find or load the meta published time for this post")
|
||||
last_updated_time = datetime.now()
|
||||
try:
|
||||
pageview_story_id = article_soup.find(
|
||||
"script", {"class": "pageview_story"}
|
||||
)["data-id"]
|
||||
except (NameError, TypeError):
|
||||
print(
|
||||
"Could not find or load a Pageview story ID, skipping additional processing on this post"
|
||||
)
|
||||
continue
|
||||
try:
|
||||
pageview_story_id = article_soup.find(
|
||||
"script", {"class": "pageview_story"}
|
||||
)["data-id"]
|
||||
except (NameError, TypeError):
|
||||
print(
|
||||
"Could not find or load a Pageview story ID, skipping additional processing on this post"
|
||||
)
|
||||
continue
|
||||
try:
|
||||
lookup_statement = select(KuowStory).where(
|
||||
or_(
|
||||
|
|
Loading…
Reference in a new issue