
    chJ                         d dl m Z  d dlmZmZ d dlmZ d dlmZ d dlm	Z	m
Z
 d dlmZ d dlmZmZ d dlmZmZ d	ed
efdZy)    )datetime)Bottypes)InlineKeyboardBuilder)sessionmaker)get_all_userupdate_user)	UserPatch)_update_MSG_QUESTION_HINT)get_user_strategyupdate_user_strategybotsession_makerc           	      r  K   t        |       d {   }|D ]  }t        |j                        }|s|d   }|t        |d         k\  r2|d   |   }t	               }|j                  t        j                  dd             |j                  t        j                  dd             |j                  t        j                  d	d
             	 | j                  |j                  d|dz    d| d|j                                d {     y 7 7 	# t        $ r}t        |       Y d }~d }~ww xY ww)N)r   
day_numberplanu   ✅ Сделалstrategy_done)textcallback_datau   ❌ Не сделалstrategy_failu    🤔 Хочу подсказкуstrategy_hintu	   День    u    из 30:

uc   

Напиши что у тебя получилось и я тебе помогу улучшить)reply_markup)r   r   chat_idlenr   rowr   InlineKeyboardButtonsend_message	as_markup	Exceptionprint)	r   r   usersuserstratdaystepmarkupes	            /app/bot/handlers/apsched.pysend_message_cronr+      s:    ];;E!$,,/L!#eFm$$V}S!&(

&&,>o^	
 	

&&,CSbc	
 	

&&,N^mn	
	""CE7-v  6[  \#--/ #   +  <,
  	!H	sL   D7DB<D79D	D
DD7D	D4D/)D7/D44D7N)r   aiogramr   r   aiogram.utils.keyboardr   sqlalchemy.ormr   bot.db.requestsr   r	   bot.db.schemas.usersr
   bot.translationsr   r   bot.handlers.strategy_storager   r   r+        r*   <module>r5      s3      8 ' 5 * 8 R \ r4   