doc: comments
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-12-25 00:45:12 +01:00
parent 6912a8d7d3
commit 9bb479dadf
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -32,6 +32,8 @@ def get_posts() -> list[str]:
class File:
"""file representation"""
def __init__(self, content: str, cdate: str):
# content
self.content = content
@ -77,6 +79,7 @@ def fresh_file_id() -> int:
def exist_post(file_id: int) -> float | None:
"""check if post exists, return modification epoch"""
try:
return os_path.getmtime(post_filename(file_id))
except FileNotFoundError: