randydev commited on
Commit
023f2e4
·
verified ·
1 Parent(s): 11a50f9

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +3 -2
chatbot/plugins/chat.py CHANGED
@@ -752,7 +752,8 @@ async def terjemahkan(client, callback):
752
  return await callback.answer("translate history not found")
753
 
754
  for translations in data_tr["translate_history"]:
755
- if str(translations.get("uuid")) == str(uuidstr):
 
756
  translate_result += translations.get("text", "no translation")
757
  break
758
 
@@ -763,7 +764,7 @@ async def terjemahkan(client, callback):
763
  )
764
  keyboard = create_keyboard(
765
  user_id=user_id,
766
- uuid_str=str(uuidstr),
767
  chat=data_tr.get("channel_username", "RendyProjects"),
768
  is_menu=data_tr.get("is_channel_photo", False)
769
  )
 
752
  return await callback.answer("translate history not found")
753
 
754
  for translations in data_tr["translate_history"]:
755
+ LOGS.info(f"Update translation: {translations}")
756
+ if translations.get("uuid") == uuidstr:
757
  translate_result += translations.get("text", "no translation")
758
  break
759
 
 
764
  )
765
  keyboard = create_keyboard(
766
  user_id=user_id,
767
+ uuid_str=uuidstr,
768
  chat=data_tr.get("channel_username", "RendyProjects"),
769
  is_menu=data_tr.get("is_channel_photo", False)
770
  )