Skip to content

Commit 0816b58

Browse files
committed
fix: fix overlapped variable name
1 parent 9de5140 commit 0816b58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

efb_telegram_master/master_message.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ def msg(self, update: Update, context: CallbackContext):
173173
topic_destinations = self.db.get_topic_slaves(topic_chat_id=message.chat.id)
174174
thread_id = message.message_thread_id
175175
if thread_id:
176-
for (destination, topic_id) in topic_destinations:
176+
for (dest, topic_id) in topic_destinations:
177177
if topic_id == thread_id:
178-
self.logger.debug("[%s] Chat %s is singly-linked to %s in topic %s", mid, message.chat, destination, topic_id)
179-
destination = destination
178+
self.logger.debug("[%s] Chat %s is singly-linked to %s in topic %s", mid, message.chat, dest, topic_id)
179+
destination = dest
180180
quote = message.reply_to_message.message_id != message.reply_to_message.message_thread_id
181181
if quote:
182182
message.reply_to_message = None

0 commit comments

Comments
 (0)