kopia lustrzana https://github.com/simonw/datasette
8 wiersze
154 B
Python
8 wiersze
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)))
|