diff --git a/ApplSec/main.py b/ApplSec/main.py
index 667a733..02786fd 100644
--- a/ApplSec/main.py
+++ b/ApplSec/main.py
@@ -15,11 +15,11 @@
releases = re.findall(r"(?<=
)(?:.|\n)*?(?=<\/tr>)", mainPage)
releases.pop(0) # remove first row
-lastTwentyReleases = releases[:20]
+lastFiftyReleases = releases[:50]
-lastTwentyReleaseNames = []
-for release in lastTwentyReleases:
- lastTwentyReleaseNames.append(
+lastFiftyReleaseNames = []
+for release in lastFiftyReleases:
+ lastFiftyReleaseNames.append(
re.findall(r"(?<=)(?:.|\n)*?(?=<\/td>)", release)[0]
)
@@ -28,14 +28,14 @@
# if there are new releases, run tweetNewUpdates()
if len(str(date.today().day)) > 1:
- day = date.today().day
+ day = str(date.today().day)
else:
day = f"0{date.today().day}"
currentDateFormatOne = f"{day} {date.today().strftime('%b')} {date.today().year}"
newReleases = []
-for release in lastTwentyReleases:
+for release in lastFiftyReleases:
if f" | {currentDateFormatOne} | " in release:
newReleases.append(release)
@@ -65,7 +65,7 @@
if key == "macOS":
# alongside of the version also get the macOS name
latestVersion["macOS"] = re.findall(
- rf"{key}\s([a-z\s]+[0-9]+)", str(lastTwentyReleaseNames), re.IGNORECASE
+ rf"{key}\s([a-z\s]+[0-9]+)", str(lastFiftyReleaseNames), re.IGNORECASE
)[0]
@@ -119,10 +119,10 @@
# if there are any changes to the last 20 release notes, run tweetEntryChanges()
-lastTwentyReleasesInfo = getData(lastTwentyReleases)
+lastFiftyReleasesInfo = getData(lastFiftyReleases)
entryChangesInfo = {}
-for key, value in lastTwentyReleasesInfo.items():
+for key, value in lastFiftyReleasesInfo.items():
if value["added"] or value["updated"]:
entryChangesInfo[key] = value
@@ -148,7 +148,7 @@
# if any releases got releases notes, run tweetReleaseNotesAvailable()
releaseNotesAvailableInfo = {}
-for key, value in lastTwentyReleasesInfo.items():
+for key, value in lastFiftyReleasesInfo.items():
if (
key not in storedDataFile["details_available_soon"]
and value["CVEs"] == "no details yet"
diff --git a/requirements.txt b/requirements.txt
index 103d386..55f261a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
tweepy==3.10.0
-emoji==1.4.1
+emoji==1.6.1
requests==2.26.0