VietCat commited on
Commit
40feaf4
·
1 Parent(s): b5f9eee

fix duplicate message

Browse files
Files changed (1) hide show
  1. app/sheets.py +1 -0
app/sheets.py CHANGED
@@ -92,6 +92,7 @@ class SheetsClient:
92
  for row in values:
93
  # Bổ sung cột rỗng cho đủ 12 cột
94
  row = row + [""] * (12 - len(row))
 
95
  if row[4] == user_id and row[5] == page_id and row[11].lower() == 'false':
96
  history.append({
97
  'conversation_id': row[0],
 
92
  for row in values:
93
  # Bổ sung cột rỗng cho đủ 12 cột
94
  row = row + [""] * (12 - len(row))
95
+ logger.info(f"[DEBUG] Conversation: {row[4]}:{user_id} - {row[5]}:{page_id} - {row[11]}/{row[11].lower()}")
96
  if row[4] == user_id and row[5] == page_id and row[11].lower() == 'false':
97
  history.append({
98
  'conversation_id': row[0],