eckendoerffer
commited on
Commit
·
00fe717
1
Parent(s):
90144e9
Update extract_news/4_extract_news_url.py
Browse files
extract_news/4_extract_news_url.py
CHANGED
@@ -56,7 +56,7 @@ def process_news_source():
|
|
56 |
global formatted_keys
|
57 |
|
58 |
cursor = conn.cursor()
|
59 |
-
query = ("SELECT `id`, `url`, `media` FROM `base_news` WHERE `link`='0' AND `step` > 0
|
60 |
cursor.execute(query)
|
61 |
row = cursor.fetchone()
|
62 |
|
|
|
56 |
global formatted_keys
|
57 |
|
58 |
cursor = conn.cursor()
|
59 |
+
query = ("SELECT `id`, `url`, `media` FROM `base_news` WHERE `link`='0' AND `step` > 0 ORDER BY Rand() LIMIT 1")
|
60 |
cursor.execute(query)
|
61 |
row = cursor.fetchone()
|
62 |
|