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.
 
 
 
 
ozgursozluk/ozgursozluk/utils.py

16 lines
304 B

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