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:
@@ -19,7 +19,7 @@ import os
|
||||
import psycopg2
|
||||
|
||||
|
||||
def handle(event):
|
||||
def run_sql(event):
|
||||
dsn = os.environ['PG_DSN']
|
||||
statements = event.get('statements', [])
|
||||
if not statements:
|
||||
|
||||
Reference in New Issue
Block a user