mirror of
https://github.com/simonw/datasette.git
synced 2026-07-26 09:24:35 +02:00
* ruff>=0.16.0 See https://astral.sh/blog/ruff-v0.16.0 * uv run ruff check . --fix --unsafe-fixes * Ruff fixes by Claude Code Opus 5
8 lines
155 B
Python
8 lines
155 B
Python
import time
|
|
|
|
from datasette import hookimpl
|
|
|
|
|
|
@hookimpl
|
|
def prepare_connection(conn):
|
|
conn.create_function("sleep", 1, lambda n: time.sleep(float(n)))
|