Skip to content

Commit

Permalink
Merge pull request #1 from Neko-Design/fix/2024-update
Browse files Browse the repository at this point in the history
2024 Lambda Runtimes Support
  • Loading branch information
Neko-Design committed Jul 5, 2024
2 parents 9b8e96a + 597a99e commit 3811e89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,6 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/

test.py
6 changes: 3 additions & 3 deletions lambdaruntimes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def __process_expired_runtimes(self, table):
sdk=None,
os=row[2],
arch=None,
deprecation_phase_1=parser.parse(row[3]) if row[3] else parser.parse(row[4]),
deprecation_phase_2=parser.parse(row[4]),
deprecation_phase_1=parser.parse(row[3]) if row[3] else None,
deprecation_phase_2=parser.parse(row[4]) if row[4] else None,
runtime_is_expiring=True,
runtime_is_expired=True))

Expand All @@ -114,7 +114,7 @@ def __populate_lambda_runtime_lists(self):
tables = soup.find_all('table')

for table in tables:
table_title = table.css.select_one('.title').get_text()
table_title = table.css.select_one('.title').get_text() if table.css.select_one('.title') else "Unknown"
if table_title == self.current_runtimes_title:
self.runtimes.extend(self.__process_current_runtimes(table))
elif table_title == self.expired_runtimes_title:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "lambda-runtimes"

version = "0.0.1"
version = "0.0.2"

authors = [
{ name="Ewen McCahon", email="hi@ewenmccahon.me" },
Expand Down

0 comments on commit 3811e89

Please sign in to comment.