Skip to content

Commit

Permalink
fix(provider): github stars index +1 (#2248)
Browse files Browse the repository at this point in the history
Signed-off-by: Tal <[email protected]>
  • Loading branch information
talboren authored Oct 20, 2024
1 parent 3614f43 commit de92379
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion keep/providers/github_provider/github_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ def _query(
),
-1,
)
stargazers_with_dates = stargazers_with_dates[last_stargazer_index:]
if last_stargazer_index == -1:
stargazers_with_dates = []
else:
stargazers_with_dates = stargazers_with_dates[
last_stargazer_index + 1 :
]
# If we dont, use the previous stars count as an index
elif previous_stars_count and int(previous_stars_count) > 0:
stargazers_with_dates = list(repo.get_stargazers_with_dates())[
Expand Down

0 comments on commit de92379

Please sign in to comment.