selfprivacy-rest-api/selfprivacy_api/utils/cached_call.py

7 lines
148 B
Python

import time
def get_ttl_hash(seconds=3600):
"""Return the same value withing `seconds` time period"""
return round(time.time() / seconds)