mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
99fba0fad3
commit
0991ea75cc
5 changed files with 11 additions and 11 deletions
|
|
@ -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),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue