mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 12:48:12 +07:00
Update test data and reduce manual language level setup GitOrigin-RevId: d6ddec1b2b29a2b7f1a34cfb5982fd975de78d65
11 lines
254 B
Python
11 lines
254 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)
|
|
|