mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
7 lines
154 B
Python
7 lines
154 B
Python
from datasette import hookimpl
|
|
import time
|
|
|
|
|
|
@hookimpl
|
|
def prepare_connection(conn):
|
|
conn.create_function("sleep", 1, lambda n: time.sleep(float(n)))
|