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

@ -461,7 +461,7 @@ METADATA = {
"queries": {
"𝐜𝐢𝐭𝐢𝐞𝐬": "select id, name from facet_cities order by id limit 1;",
"pragma_cache_size": "PRAGMA cache_size;",
"magic_parameters": "select :_header_user_agent as user_agent, :_timestamp_datetime_utc as datetime",
"magic_parameters": "select :_header_user_agent as user_agent, :_now_datetime_utc as datetime",
"neighborhood_search": {
"sql": textwrap.dedent(
"""

View file

@ -187,9 +187,9 @@ def magic_parameters_client():
("_actor_id", "root"),
("_header_host", "localhost"),
("_cookie_foo", "bar"),
("_timestamp_epoch", r"^\d+$"),
("_timestamp_date_utc", r"^\d{4}-\d{2}-\d{2}$"),
("_timestamp_datetime_utc", r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$"),
("_now_epoch", r"^\d+$"),
("_now_date_utc", r"^\d{4}-\d{2}-\d{2}$"),
("_now_datetime_utc", r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$"),
("_random_chars_1", r"^\w$"),
("_random_chars_10", r"^\w{10}$"),
],