Commit
•
b9da9ca
1
Parent(s):
a92fa68
Update db_operations/db_read.py
Browse files- db_operations/db_read.py +2 -6
db_operations/db_read.py
CHANGED
@@ -37,9 +37,7 @@ class DBRead:
|
|
37 |
rss_df = pd.DataFrame(docs)
|
38 |
except Exception as insert_err:
|
39 |
self.__error = 1
|
40 |
-
rss_df =
|
41 |
-
'description': '', 'parsed_date': '',
|
42 |
-
'src': ''}, index=[0])
|
43 |
return rss_df
|
44 |
|
45 |
def __close_connection(self):
|
@@ -49,9 +47,7 @@ class DBRead:
|
|
49 |
|
50 |
def read_news_from_db(self):
|
51 |
logger.warning('Entering read_news_from_db() to read old news')
|
52 |
-
rss_df =
|
53 |
-
'description': '', 'parsed_date': '',
|
54 |
-
'src': ''}, index=[0])
|
55 |
if self.url is not None:
|
56 |
if self.__error == 0:
|
57 |
self.__connect()
|
|
|
37 |
rss_df = pd.DataFrame(docs)
|
38 |
except Exception as insert_err:
|
39 |
self.__error = 1
|
40 |
+
rss_df = None
|
|
|
|
|
41 |
return rss_df
|
42 |
|
43 |
def __close_connection(self):
|
|
|
47 |
|
48 |
def read_news_from_db(self):
|
49 |
logger.warning('Entering read_news_from_db() to read old news')
|
50 |
+
rss_df = None
|
|
|
|
|
51 |
if self.url is not None:
|
52 |
if self.__error == 0:
|
53 |
self.__connect()
|