Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Aggify/aggify
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadkhalaj committed Nov 13, 2023
2 parents b770ab1 + 9808da0 commit f857145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggify/utilty.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def to_mongo_positive_index(index: Union[int, slice]) -> slice:
if index.step is not None:
raise MongoIndexError

if int(index.start) >= index.stop:
if int(index.start) > index.stop:
raise MongoIndexError

if int(index.start) < 0:
Expand Down

0 comments on commit f857145

Please sign in to comment.