Skip to content

Commit

Permalink
Update hackernews_cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfer0x80 authored Mar 26, 2022
1 parent 06ad1c0 commit 25bea0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hackernews_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ def show_comments(data, comment):
# read_space_in_lines = 5 (each read occupies 5 lines in the logfile)
# link_index = 3
def show_read(data, read):
global BROWSER, READS_SIZE, PAGE_SIZE
global BROWSER, READS_SIZE
if read != 0:
read_link = (read -1) * PAGE_SIZE + 3
read_link = (read -1) * 5 + 3
if read > READS_SIZE:
return 1
link = data[read_link]
Expand Down

0 comments on commit 25bea0f

Please sign in to comment.