kargaranamir commited on
Commit
02fd08a
1 Parent(s): 90a720b

site url to link.

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -47,6 +47,7 @@ def render_site_table(isocode):
47
  df_urls = df_urls.sort_values(by='Number of Links', ascending=False)
48
  df_urls = df_urls.reset_index(drop=True)
49
  df_urls['Number of Links'] = df_urls.apply(lambda row: '<a href="/?isocode={}&siteurl={}" target="_self">{}</a>'.format(isocode, row['Site URL'], row['Number of Links']) if row['Number of Links'] else row['Number of Links'], axis=1)
 
50
 
51
  # Display the table
52
  df_urls = df_urls[['Site Name', 'Site URL', 'Category', 'Number of Links', 'Possible Parallel Languages', 'Confidence', 'Info']]
 
47
  df_urls = df_urls.sort_values(by='Number of Links', ascending=False)
48
  df_urls = df_urls.reset_index(drop=True)
49
  df_urls['Number of Links'] = df_urls.apply(lambda row: '<a href="/?isocode={}&siteurl={}" target="_self">{}</a>'.format(isocode, row['Site URL'], row['Number of Links']) if row['Number of Links'] else row['Number of Links'], axis=1)
50
+ df_urls['Site URL'] = df_urls['Site URL'].apply(lambda url: f'<a href="{url}">{url}</a>')
51
 
52
  # Display the table
53
  df_urls = df_urls[['Site Name', 'Site URL', 'Category', 'Number of Links', 'Possible Parallel Languages', 'Confidence', 'Info']]