summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDidierRLopes <dro.lopes@campus.fct.unl.pt>2021-09-26 23:02:30 +0100
committerGitHub <noreply@github.com>2021-09-26 23:02:30 +0100
commitb60e34a0f0407840c71ea79312e5f646bc36de9d (patch)
tree9ed6e74b34af44aaa791e0762c8c5033f5ce9d63
parent35f82f24bad2b8a93fc8a0b0ad86504ae99e303a (diff)
Small improvement on fa/analysis and new image for discord bot (#764)
* small improv on fa/analysis based on data author suggestion * add image of logo with white background for discord bot
-rw-r--r--gamestonk_terminal/stocks/fundamental_analysis/eclect_us_model.py17
-rw-r--r--images/gst_logo_green_white_background.pngbin0 -> 180500 bytes
2 files changed, 16 insertions, 1 deletions
diff --git a/gamestonk_terminal/stocks/fundamental_analysis/eclect_us_model.py b/gamestonk_terminal/stocks/fundamental_analysis/eclect_us_model.py
index f72b927a31c..d462867cf78 100644
--- a/gamestonk_terminal/stocks/fundamental_analysis/eclect_us_model.py
+++ b/gamestonk_terminal/stocks/fundamental_analysis/eclect_us_model.py
@@ -2,6 +2,7 @@
__docformat__ = "numpy"
import requests
+from colorama import Style
# pylint: disable=R1718
@@ -23,11 +24,25 @@ def get_filings_analysis(ticker: str) -> str:
if result.status_code == 200:
if result.json():
- return "\n\n".join(
+ rf_highlights = f"{Style.BRIGHT}\n\tRISK FACTORS:{Style.RESET_ALL}\n"
+ rf_highlights_txt = "\n\n".join(
+ {sentence["sentence"] for sentence in result.json()[0]["rf_highlights"]}
+ )
+
+ daa_highlights = (
+ f"{Style.BRIGHT}\n\tDISCUSSION AND ANALYSIS:{Style.RESET_ALL}\n"
+ )
+ daa_highlights += "\n\n".join(
{
sentence["sentence"]
for sentence in result.json()[0]["daa_highlights"]
}
)
+ return (
+ rf_highlights + rf_highlights_txt + "\n" + daa_highlights
+ if rf_highlights_txt
+ else daa_highlights
+ )
+
return ""
diff --git a/images/gst_logo_green_white_background.png b/images/gst_logo_green_white_background.png
new file mode 100644
index 00000000000..fce83fd623f
--- /dev/null
+++ b/images/gst_logo_green_white_background.png
Binary files differ