VietCat commited on
Commit
09c294c
·
1 Parent(s): a98e93d

fix duplicate message

Browse files
Files changed (1) hide show
  1. app/sheets.py +1 -1
app/sheets.py CHANGED
@@ -92,7 +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[8].lower() == 'false':
96
  history.append({
97
  'conversation_id': row[0],
98
  'originalcommand': row[1],
 
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],
98
  'originalcommand': row[1],