Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent 01bb75e commit fd3dab9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ CHANGELOG
------------------

Initial release as namespace plugin

8 changes: 5 additions & 3 deletions pelican/plugins/similar_posts/similar_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ def add_similar_posts(generator):

logger.debug(
"{article}: similar_posts scores: {scores}".format(
article=os.path.basename(article.source_path)
if hasattr(article, "source_path")
else i,
article=(
os.path.basename(article.source_path)
if hasattr(article, "source_path")
else i
),
scores=[score for _, score in selected],
)
)
Expand Down

0 comments on commit fd3dab9

Please sign in to comment.