sentiment-analyzer icon indicating copy to clipboard operation
sentiment-analyzer copied to clipboard

Redundant code in datalink.py

Open akshayah3 opened this issue 11 years ago • 5 comments

Can we merge the fetchtweet and fetchtweets into a single method?

akshayah3 avatar May 13 '14 17:05 akshayah3

Can you give a link to the file and line no ?

coder006 avatar May 13 '14 19:05 coder006

@coder006 https://github.com/debugger22/sentiment-analyzer/blob/master/src/datalink.py#L23-L55

debugger22 avatar May 13 '14 22:05 debugger22

Will do that. PR is also welcome.

debugger22 avatar May 13 '14 22:05 debugger22

I'll send one.

On Wed, May 14, 2014 at 4:26 AM, Sudhanshu Mishra [email protected]:

Will do that. PR is also welcome.

— Reply to this email directly or view it on GitHubhttps://github.com/debugger22/sentiment-analyzer/issues/4#issuecomment-43023631 .

akshayah3 avatar May 14 '14 00:05 akshayah3

An error has been raised. (2003, "Can't connect to MySQL server on 'localhost' (10061)") Traceback (most recent call last): File "C:\Users\lenovo\Desktop\SA project\sentiment-analyzer-master\src\main.py", line 9, in testTweet, tweetTime = dblink.fetchTweet( File "C:\Users\lenovo\Desktop\SA project\sentiment-analyzer-master\src\datalink.py", line 29, in fetchTweet with self.db: AttributeError: 'DatabaseConnectionDown' object has no attribute 'db'

what is this error thanks

ibrahim-elgazwy avatar Oct 10 '16 13:10 ibrahim-elgazwy