Skip to content

Commit

Permalink
Fix for tweetEntryChanges()
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejpapez committed Jul 4, 2021
1 parent 67a45ac commit 9d37f4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ApplSec/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
if f"<td>{currentDateFormatOne}</td>" in release:
newReleases.append(release)

updatesInfo = getData(newReleases)

if len(newReleases) > 0:
updatesInfo = getData(newReleases)
tweetNewUpdates(updatesInfo)

# find the latest version of operating systems
Expand Down Expand Up @@ -66,6 +67,8 @@
break

# if there are any changes to the last 20 release notes, run tweetEntryChanges()
updatesInfo = getData(lastTwentyReleases)

for key, value in updatesInfo.items():
if value["added"] or value["updated"]:
tweetEntryChanges(updatesInfo)
Expand Down

0 comments on commit 9d37f4e

Please sign in to comment.