Flow_1q8xtg6
SR-User_Info
Flow_05s4pvl
Flow_08nmyrt
Flow_1gd83n0
Flow_12fb3ir
Flow_1mplhly
Flow_0i96b90
Flow_0d47w7r
not(isCurrentUser)
Flow_0i96b90
Flow_0dg341m
# Update Current User Extras
current_user_extras = {}
# Add
current_user_extras["bamboo_api_id"] = userBambooId
current_user_extras["time_zone"] = userTimeZone
current_user_extras["date_format"] = userDateFormat
current_user_extras["time_format"] = userTimeFormat
# Add Bamboo Info to Extras
current_user_extras["first_name"] = resp_BambooUserInfo["firstName"]
current_user_extras["last_name"] = resp_BambooUserInfo["lastName"]
current_user_extras["preferred_name"] = resp_BambooUserInfo["preferredName"]
if current_user_extras["preferred_name"] is None:
current_user_extras["full_name"] = current_user_extras["first_name"] + " " + current_user_extras["last_name"]
else:
current_user_extras["full_name"] = current_user_extras["first_name"] + " (" + current_user_extras["preferred_name"] + ") " + current_user_extras["last_name"]
current_user_extras["status_key"] = resp_BambooUserInfo["customStatusChatKey"]
current_user_extras["bamboo_supervisor_api_id"] = resp_BambooUserInfo["supervisorEid"]
current_user_extras["bamboo_supervisor_status_id"] = resp_BambooUserInfo["supervisorId"]
del(userFullName)
del (userFirstName)
del(userTimeZone)
del(userStatusKey)
del(userBambooId)
del(userDateFormat)
del(userTimeFormat)
Flow_0sypyzb
Flow_12fb3ir
Flow_0d47w7r
Flow_0dg341m
Flow_1gd83n0
Flow_1q8xtg6
Flow_05s4pvl
# If not previously set, set find_user to current_user
try:
find_user
except NameError:
find_user = current_user["username"]
isCurrentUser = True
# Check if find_user has a Status email
is_status_email = (find_user[-9:] == "status.im")
Flow_08nmyrt
Flow_0sypyzb
Flow_1mplhly
not(is_status_email)