You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all : thx for your hard work ;)
I tested the migration into Mattermost an had an error on get_reactions(rc_message). The Problem was: There is no reaction :)
so i changed the code from
def get_reactions(rc_message):
mm_reactions = []
for emoji, users in rc_message.get('reactions', {}).items():
for username in users['usernames']:
if username not in IGNORE_USERS:
mm_reactions.append(dict(
to
def get_reactions(rc_message):
mm_reactions = []
reaktion = rc_message.get('reactions', {}) # This
if reaktion is not None: # and this
for emoji, users in reaktion.items():
for username in users['usernames']:
if username not in IGNORE_USERS:
mm_reactions.append(dict(
to clarify: i get the reaction and check if it is other then None.
Thats it...
The text was updated successfully, but these errors were encountered:
first of all : thx for your hard work ;)
I tested the migration into Mattermost an had an error on
get_reactions(rc_message)
. The Problem was: There is no reaction :)so i changed the code from
to
to clarify: i get the reaction and check if it is other then None.
Thats it...
The text was updated successfully, but these errors were encountered: