From 612e779cce68b2fc549da743ace4d95169a8ae23 Mon Sep 17 00:00:00 2001
From: Paulo Ferraz <paulosgf.pf@gmail.com>
Date: Wed, 6 Jul 2022 15:09:57 -0300
Subject: [PATCH] Fix #3 - corona plugin lint

---
 .../plugins/downloaded/corona/main.py         | 76 +++++++++----------
 1 file changed, 38 insertions(+), 38 deletions(-)

diff --git a/src/honeybot/plugins/downloaded/corona/main.py b/src/honeybot/plugins/downloaded/corona/main.py
index ec7cc74..2ed0763 100644
--- a/src/honeybot/plugins/downloaded/corona/main.py
+++ b/src/honeybot/plugins/downloaded/corona/main.py
@@ -47,19 +47,19 @@ def scrape(self, country):
                 )
             today = str(datetime.date.today())
             msg = (
-                "The latest coronavirus pandemic figures as of "
-                + today
-                + " show "
-                + " that there are currently "
-                + str(cases[0].text.strip())
-                + " cases of "
-                + "coronavirus of which "
-                + str(cases[2].text.strip())
-                + " have recovered. "
-                + "Unfortunately, "
-                + str(cases[1].text.strip())
-                + " patients have died as a "
-                + "result of the coronavirus pandemic. May they rest in peace."
+                "The latest coronavirus pandemic figures as of " +
+                today +
+                " show " +
+                " that there are currently " +
+                str(cases[0].text.strip()) +
+                " cases of " +
+                "coronavirus of which " +
+                str(cases[2].text.strip()) +
+                " have recovered. " +
+                "Unfortunately, " +
+                str(cases[1].text.strip()) +
+                " patients have died as a " +
+                "result of the coronavirus pandemic. May they rest in peace."
             )
             msg += "The most affected countries are the following: \n"
             for c in most_affected:
@@ -67,12 +67,12 @@ def scrape(self, country):
                 total_cases = c[1]
                 deaths = c[2]
                 string = (
-                    country
-                    + " has "
-                    + total_cases
-                    + " confirmed cases that have led to "
-                    + deaths
-                    + " deaths. RIP \n"
+                    country +
+                    " has " +
+                    total_cases +
+                    " confirmed cases that have led to " +
+                    deaths +
+                    " deaths. RIP \n"
                 )
                 msg += string
             return msg
@@ -105,16 +105,16 @@ def scrape(self, country):
                     deaths = data[index + 3].text
                     recovered = data[index + 5].text
                     msg = (
-                        "The latest coronavirus pandemic figures as of "
-                        + today
-                        + " for "
-                        + name
-                        + " show"
-                        + " that there are currently "
-                        + cases
-                        + " cases of coronavirus in "
-                        + name
-                        + "."
+                        "The latest coronavirus pandemic figures as of " +
+                        today +
+                        " for " +
+                        name +
+                        " show" +
+                        " that there are currently " +
+                        cases +
+                        " cases of coronavirus in " +
+                        name +
+                        "."
                     )
                     if recovered != " ":
                         msg += " Of these " + recovered + " have recovered. "
@@ -122,18 +122,18 @@ def scrape(self, country):
                         msg += " None have recovered yet. "
                     if deaths != " ":
                         msg += (
-                            "Unfortunately, "
-                            + deaths.strip()
-                            + " patients in "
-                            + name
-                            + " have died as a "
-                            + "result of the coronavirus pandemic. May they rest in peace."
+                            "Unfortunately, " +
+                            deaths.strip() +
+                            " patients in " +
+                            name +
+                            " have died as a " +
+                            "result of the coronavirus pandemic. May they rest in peace."
                         )
                     else:
                         msg += (
-                            "Fortunately nobody has died yet in "
-                            + name
-                            + " as a result of coronavirus."
+                            "Fortunately nobody has died yet in " +
+                            name +
+                            " as a result of coronavirus."
                         )
                     return msg
                     break