rhea2809 commited on
Commit
446cd90
1 Parent(s): 69a0dea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -14,8 +14,7 @@ class DataList:
14
 
15
  self.table_header = '''
16
  <tr>
17
- <td width="15%">Name</td>
18
- <td width="10%">URL</td>
19
  <td width="30%">About</td>
20
  <td width="15%">Publisher</td>
21
  <td width="10%">Year Updated</td>
@@ -28,11 +27,10 @@ class DataList:
28
 
29
  rows = []
30
  for row in self.table.itertuples():
31
- source = f'<a href="{row.URL}" target="_blank">Link</a>' if isinstance(
32
- row.URL, str) else ''
33
  row = f'''
34
  <tr>
35
- <td>{row.Name}</td>
36
  <td>{source}</td>
37
  <td>{row.About}</td>
38
  <td>{row.Publisher}</td>
 
14
 
15
  self.table_header = '''
16
  <tr>
17
+ <td width="25%">Name</td>
 
18
  <td width="30%">About</td>
19
  <td width="15%">Publisher</td>
20
  <td width="10%">Year Updated</td>
 
27
 
28
  rows = []
29
  for row in self.table.itertuples():
30
+ source = f'<a href="{row.URL}" target="_blank">{row.Name}</a>' if isinstance(
31
+ row.URL, str) else '{row.Name}'
32
  row = f'''
33
  <tr>
 
34
  <td>{source}</td>
35
  <td>{row.About}</td>
36
  <td>{row.Publisher}</td>