Skip to content

Commit a9df153

Browse files
committed
Clean up podcast / code with code.
1 parent 54ae581 commit a9df153

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

code/code_with_me/podcast/program.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ def show_header():
1616

1717

1818
def display_results():
19-
# This is updated since the video recording.
20-
# We had to trim back the episode list, so I changed
21-
# this code to use the moving numbers from the RSS feed
22-
# as they change over time.
23-
start = service.get_min_show_id()
19+
min_num = service.get_min_show_id()
2420
end = service.get_latest_show_id()
21+
start = max(min_num, end - 20)
2522

2623
for show_id in range(start, end):
2724
info = service.get_episode(show_id)

0 commit comments

Comments
 (0)