ritwikmoitra commited on
Commit
6fa93c0
·
verified ·
1 Parent(s): 5fbf346

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def render_news(news_items, start, count=20):
37
  result = ""
38
  for i, item in enumerate(sliced, start + 1):
39
  result += f"<strong>{i}. {item['title']}</strong><br>\n"
40
- result += f"<a href='{item['link']}' target='_blank' style='text-decoration: none; color: blue;'>🔗 समाचार लिंक</a><br>\n"
41
  result += f"🗓️ प्रकाशित: {item['published']}<br>\n"
42
  result += f"<hr style='margin: 10px 0;' />\n"
43
  return result
 
37
  result = ""
38
  for i, item in enumerate(sliced, start + 1):
39
  result += f"<strong>{i}. {item['title']}</strong><br>\n"
40
+ result += f"<a href='#' onclick=\"window.location.href='{item['link']}'\" style='text-decoration: none; color: blue;'>🔗 समाचार लिंक</a><br>\n"
41
  result += f"🗓️ प्रकाशित: {item['published']}<br>\n"
42
  result += f"<hr style='margin: 10px 0;' />\n"
43
  return result