def update_fun(db, message_id, ldc_topic, ldc_knn_topic): update_ldc_pair(db, message_id, ldc_topic, ldc_knn_topic) dup_str = dups_map.get(message_id, None) if dup_str is not None: # pull value out of dub_str box update_ldc_pair(db, dup_str[0], ldc_topic, ldc_knn_topic)
def update_fun(db, message_id, ldc_topic, ldc_knn_topic): update_ldc_pair(db, message_id, ldc_topic, ldc_knn_topic)