Spaces:
DIVY118
/
Build error

DIVY118 commited on
Commit
9c0a721
1 Parent(s): c373e2a

Update news.py

Browse files
Files changed (1) hide show
  1. news.py +1 -1
news.py CHANGED
@@ -6,7 +6,7 @@ NEWSSS=""
6
  def News(KEY,cache=True):
7
  global NEWSSS
8
  if NEWSSS:
9
- return NEWSSS, None, t()
10
  C = t()
11
  main_url = f'https://newsapi.org/v2/top-headlines?sources=techcrunch&apiKey={KEY}'
12
  main_page = requests.get(main_url).json()
 
6
  def News(KEY,cache=True):
7
  global NEWSSS
8
  if NEWSSS:
9
+ return NEWSSS, None, 0
10
  C = t()
11
  main_url = f'https://newsapi.org/v2/top-headlines?sources=techcrunch&apiKey={KEY}'
12
  main_page = requests.get(main_url).json()