File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -377,7 +377,10 @@ def retrieving_tweets_polarity(symbol):
377377
378378 tweet_list .append (Tweet (tw , polarity ))
379379 count = count - 1
380- global_polarity = global_polarity / len (tweet_list )
380+ if len (tweet_list ) != 0 :
381+ global_polarity = global_polarity / len (tweet_list )
382+ else :
383+ global_polarity = global_polarity
381384 neutral = ct .num_of_tweets - pos - neg
382385 if neutral < 0 :
383386 neg = neg + neutral
Original file line number Diff line number Diff line change 5656 < li > < a href ="# "> ABOUT</ a >
5757
5858 </ li >
59- < li > < a href ="http://localhost/wordpress/currency-converter/ "> CURRENCY CONVERTER</ a >
59+ <!-- < li><a href="http://localhost/wordpress/currency-converter/">CURRENCY CONVERTER</a>
6060
61- </ li >
61+ </li> -->
6262 < li > < a href ="http://localhost/wordpress#contact "> CONTACT US</ a >
6363
6464 </ li >
@@ -169,7 +169,7 @@ <h3>Quick Links</h3>
169169 < li > < a href ="http://localhost/wordpress/ "> < i class ="fa fa-arrow-right "> </ i > HOME</ a > </ li >
170170 < li > < a href ="http://localhost/wordpress/dashboard "> < i class ="fa fa-arrow-right "> </ i > DASHBOARD</ a > </ li >
171171 < li > < a href ="# "> < i class ="fa fa-arrow-right "> </ i > ABOUT</ a > </ li >
172- < li > < a href ="http://localhost/wordpress/currency-converter/ "> < i class ="fa fa-arrow-right "> </ i > CURRENCY CONVERTER</ a > </ li >
172+ <!-- < li><a href="http://localhost/wordpress/currency-converter/"> <i class="fa fa-arrow-right"></i> CURRENCY CONVERTER</a></li> -- >
173173 < li > < a href ="http://localhost/wordpress#contact "> < i class ="fa fa-arrow-right "> </ i > CONTACT US</ a > </ li >
174174
175175 </ ul >
Original file line number Diff line number Diff line change 7474 < li class ="nav-label "> < a href ="# "> ABOUT</ a > </ li >
7575
7676
77- < li class ="nav-label "> < a href ="http://localhost/wordpress/currency-converter/ "> CURRENCY CONVERTER</ a > </ li >
77+ <!-- < li class="nav-label"><a href="http://localhost/wordpress/currency-converter/">CURRENCY CONVERTER</a></li> -- >
7878
7979
8080
@@ -497,7 +497,7 @@ <h3 style="color:white;padding-top: 25px;padding-left: 0px;">Quick Links</h3>
497497 < li > < a style ="color:white;padding-top: 10px; " href ="http://localhost/wordpress/ "> < i class ="fa fa-arrow-right "> </ i > HOME</ a > </ li >
498498 < li > < a style ="color:white; " href ="http://localhost/wordpress/dashboard "> < i class ="fa fa-arrow-right "> </ i > DASHBOARD</ a > </ li >
499499 < li > < a style ="color:white; " href ="# "> < i class ="fa fa-arrow-right "> </ i > ABOUT</ a > </ li >
500- < li > < a style ="color:white; " href ="http://localhost/wordpress/currency-converter/ "> < i class ="fa fa-arrow-right "> </ i > CURRENCY CONVERTER</ a > </ li >
500+ <!-- < li><a style="color:white;" href="http://localhost/wordpress/currency-converter/"> <i class="fa fa-arrow-right"></i> CURRENCY CONVERTER</a></li> -- >
501501 < li > < a style ="color:white; " href ="http://localhost/wordpress#contact "> < i class ="fa fa-arrow-right "> </ i > CONTACT US</ a > </ li >
502502
503503 </ ul >
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments