Initial clean commit
This commit is contained in:
commit
6784d81c2c
141 changed files with 25219 additions and 0 deletions
16
models/traducciones.py
Normal file
16
models/traducciones.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from psycopg2 import extras
|
||||
from typing import Optional, Dict
|
||||
|
||||
|
||||
def get_traduccion(conn, traduccion_id: int) -> Optional[Dict]:
|
||||
with conn.cursor(cursor_factory=extras.DictCursor) as cur:
|
||||
cur.execute(
|
||||
"""
|
||||
SELECT *
|
||||
FROM traducciones
|
||||
WHERE id = %s;
|
||||
""",
|
||||
(traduccion_id,),
|
||||
)
|
||||
return cur.fetchone()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue