Skip to content

Commit 411a7c3

Browse files
committed
pushing error to fix with Omer ! :)))
1 parent eb54562 commit 411a7c3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

db.sqlite3

0 Bytes
Binary file not shown.

nlpFiles/getTextFromWeb.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ def pasteText(list, link):
8080
list.append("-" * 80)
8181

8282
#In the end, the average polarity score of the article is added (variables for polarity meter)
83+
list1 = [str(round(totNegative / count * 100, 1)) + "%",str(round(totNeutral / count * 100, 1)) + "%",str(round(totPositive / count * 100, 1)) + "%"]
8384
if count != 0:
84-
list.append(str(round(totNegative / count * 100, 1)) + " Negative")
85-
list.append(str(round(totNeutral / count * 100, 1)) + " Neutral")
86-
list.append(str(round(totPositive / count * 100, 1)) + " Positive")
85+
list.append(list1)
8786

8887

8988

nobiasapp/templates/successPage.html

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
background-color: #ddd;
2626
border-radius: 5px;
2727
overflow: hidden;
28+
--cwidth1: {{ thisVar|last.0 }};
29+
--cwidth2: {{ thisVar|last.1 }};
30+
--cwidth3: {{ thisVar|last.2 }};
2831
}
2932

3033
.polarity-bar .section {
@@ -34,14 +37,17 @@
3437

3538
.red-section {
3639
background-color: #ff4646;
40+
width: var(--cwidth1);
3741
}
3842

3943
.grey-section {
4044
background-color: #a0a0a0;
45+
width: var(--cwidth2);
4146
}
4247

4348
.green-section {
4449
background-color: #4caf50;
50+
width: var(--cwidth3);
4551
}
4652
h2{
4753
color: black;

0 commit comments

Comments
 (0)