/
githubmirror
/
cheat.sh
Обзор
Документация
Войти
/
githubmirror
/
cheat.sh
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/stateful_queries.py
19 строк
346 B
Igor Chubin
Format python code using black
29 июл 2025, 21:07
29 июл 2025, 21:07
e82797a
Код
Авторство
О чём код?
""" Support for the stateful queries """ import cache def save_query(client_id, query): """ Save the last query `query` for the client `client_id` """ cache.put("l:%s" % client_id, query) def last_query(client_id): """ Return the last query for the client `client_id` """ return cache.get("l:%s" % client_id)