A free and open source alternative ekşi sözlük front-end
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from datetime import datetime, timedelta
|
|
|
|
|
|
def expires() -> datetime:
|
|
"""One year later."""
|
|
|
|
return datetime.now() + timedelta(days=365)
|
|
|
|
|
|
def last_commit() -> str:
|
|
"""Return the last commit hash."""
|
|
|
|
with open(".git/refs/heads/main") as file:
|
|
hash = file.read()
|
|
|
|
return hash
|
|
|