taha454 commited on
Commit
b2df416
·
verified ·
1 Parent(s): 5d958f6

solved ident bug

Browse files
Files changed (1) hide show
  1. redis_utils.py +2 -2
redis_utils.py CHANGED
@@ -9,8 +9,8 @@ from utils import yaml_path
9
  def redis_send(redis_conn,user_id, chat_id, answer):
10
 
11
  with open(yaml_path, 'r') as file:
12
- parameters_obj = yaml.safe_load(file)
13
 
14
- REDIS_TTL = parameters_obj.get("REDIS_TTL", 7200)
15
 
16
  return redis_conn.set(f"ANSWER_FOR_USER_ID{user_id}_OF_{chat_id}", json.dumps(answer), ex=REDIS_TTL)
 
9
  def redis_send(redis_conn,user_id, chat_id, answer):
10
 
11
  with open(yaml_path, 'r') as file:
12
+ parameters_obj = yaml.safe_load(file)
13
 
14
+ REDIS_TTL = parameters_obj.get("REDIS_TTL", 7200)
15
 
16
  return redis_conn.set(f"ANSWER_FOR_USER_ID{user_id}_OF_{chat_id}", json.dumps(answer), ex=REDIS_TTL)