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:
|
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_(
|
||||||
|
|
Loading…
Reference in a new issue