Renamed _timestamp to _now, refs #842, closes #871

This commit is contained in:
Simon Willison 2020-06-28 12:45:34 -07:00
commit 0991ea75cc
5 changed files with 11 additions and 11 deletions

View file

@ -21,7 +21,7 @@ def cookie(key, request):
return request.cookies[key]
def timestamp(key, request):
def now(key, request):
if key == "epoch":
return int(time.time())
elif key == "date_utc":
@ -50,6 +50,6 @@ def register_magic_parameters():
("header", header),
("actor", actor),
("cookie", cookie),
("timestamp", timestamp),
("now", now),
("random", random),
]