refactor: уникальные имена функций-обработчиков

handle() → run_sql()    (sql_runner.py,  entrypoint: sql_runner.run_sql)
handle() → crud()       (notes_crud.py,  entrypoint: notes_crud.crud)
handle() → list_notes() (notes_list.py,  entrypoint: notes_list.list_notes)
This commit is contained in:
“Naeel”
2026-03-09 10:14:36 +04:00
parent 7dffc61c84
commit cefef54936
9 changed files with 9 additions and 9 deletions
@@ -15,7 +15,7 @@ import psycopg2
import psycopg2.extras
def handle(event):
def list_notes(event):
dsn = os.environ['PG_DSN']
conn = psycopg2.connect(dsn)
try: