Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only check links in outdated articles if --outdated is set #7

Merged
merged 7 commits into from
Apr 18, 2022
Merged

Only check links in outdated articles if --outdated is set #7

merged 7 commits into from
Apr 18, 2022

Conversation

TicClick
Copy link
Contributor

(also add a simple reader/writer for front matter)


offset = fileobj.tell()
for line in fileobj:
if line.split('#')[0].strip() == FRONT_MATTER_DELIMITER:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you even put comments after the ---?

return collections.OrderedDict()


def save_front_matter(filepath: str, fm: collections.OrderedDict):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused but ok

@Walavouchey Walavouchey changed the title Only check expired articles if --outdated is set Only check links in outdated articles if --outdated is set Apr 18, 2022
@Walavouchey Walavouchey merged commit 3a7f18f into Walavouchey:master Apr 18, 2022
@TicClick TicClick deleted the skip-outdated branch April 18, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants