FDSRashid commited on
Commit
cc1f78a
·
verified ·
1 Parent(s): d16ee04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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['Teacher_ID'] == str(narrator_id)) | (edge_info['Student_ID'] == 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] )
 
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] )