parent
							
								
									1334c16189
								
							
						
					
					
						commit
						f1bbed6066
					
				
				 3 changed files with 16 additions and 5 deletions
			
			
		@ -0,0 +1,12 @@ | 
				
			||||
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) | 
				
			||||
@ -0,0 +1,2 @@ | 
				
			||||
from orm_db import * | 
				
			||||
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue