Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def get_node_info(node):
|
|
70 |
return node_info,student_narrations,student_gen, student_rank, node_name
|
71 |
|
72 |
def network_narrator(narrator_id):
|
73 |
-
edge_narrator = edge_info[(edge_info['
|
74 |
edge_full = edge_narrator[['Taraf Count', 'Hadith Count', 'Isnad Count', 'Source', 'Book Count', 'Destination']]
|
75 |
edge_full['Teacher'] = edge_full['Source'].apply(lambda x: get_node_info(x)[-1] )
|
76 |
edge_full['Student'] = edge_full['Destination'].apply(lambda x: get_node_info(x)[-1] )
|
|
|
70 |
return node_info,student_narrations,student_gen, student_rank, node_name
|
71 |
|
72 |
def network_narrator(narrator_id):
|
73 |
+
edge_narrator = edge_info[(edge_info['Source'] == str(narrator_id)) | (edge_info['Destination'] == str(narrator_id))]
|
74 |
edge_full = edge_narrator[['Taraf Count', 'Hadith Count', 'Isnad Count', 'Source', 'Book Count', 'Destination']]
|
75 |
edge_full['Teacher'] = edge_full['Source'].apply(lambda x: get_node_info(x)[-1] )
|
76 |
edge_full['Student'] = edge_full['Destination'].apply(lambda x: get_node_info(x)[-1] )
|