Update pytudes.py

This commit is contained in:
Peter Norvig 2024-02-20 15:05:02 -08:00 committed by GitHub
parent 334a041609
commit f26e74abb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
notebooks = {
'Recent (2022)': [], # Gets updated automatically
'Recent (20222024)': [], # Gets updated automatically
'Programming Examples': [
("AlphaCode Automated Programming", 2022, 'AlphaCode.ipynb', "Analysis of AlphaCode's automated solution to a coding problem"),
@ -138,7 +138,7 @@ def find_recent(notebooks) -> None:
recent = next(key for key in notebooks if key.startswith('Recent'))
for category in notebooks:
for line in notebooks[category]:
if line[1] in {2022}:
if line[1] in {2022, 2023, 2024}:
notebooks[recent].append(line)
def format_category(category) -> str: