You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
320 B
12 lines
320 B
from orm_db import * |
|
from sqlalchemy import select, desc |
|
|
|
try: |
|
get_last_data_stmt = select(History).order_by(desc('id')).limit(1) |
|
last_data_result = db_session.execute(get_last_data_stmt).scalar() |
|
print(last_data_result) |
|
except Exception as e: |
|
print(e) |
|
|
|
last_blue = last_data_result.blue |
|
print(last_blue) |