mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 00:19:11 +07:00
11 lines
253 B
Python
11 lines
253 B
Python
# PY-1138
|
|
from models import ChartRequest
|
|
from components.dbutil import DbSession
|
|
|
|
def foo(requestId):
|
|
with DbSession() as db:
|
|
req = db.query(ChartRequest).get(requestId)
|
|
assert req is not None, u"Invalid request"
|
|
print req
|
|
|