Skip to content

Conversation

@tms-hl
Copy link
Contributor

@tms-hl tms-hl commented Dec 16, 2022

Resolves a bug that causes "TypeError: '<' not supported between instances of 'NoneType' and 'int'"

The field list is sorted using get_fish(). get_fish returns None if the field is occupied.
Because of this occupied fields have to be filtered before trying to sort the list.

@maxblan maxblan changed the title iss#18: resove a bug that causes Type error in get_most_fish() penguins: resolve NoneType error for get_most_fish Dec 17, 2022
@maxblan maxblan changed the base branch from master to penguins/get_most_fish December 20, 2022 14:25
@maxblan
Copy link
Collaborator

maxblan commented Dec 20, 2022

Hi, thank you for your contribution. I have checked the problem and your PR is accepted.
This closes #18 .

@maxblan maxblan merged commit 140024c into software-challenge:penguins/get_most_fish Dec 20, 2022
maxblan added a commit that referenced this pull request Dec 20, 2022
* field: add a repr method

* readme: remove shield with error

* cartesiancoordinate: raise a index error now

* test: add tests for the board class

* fixed bug to prevent type error when calling get_most_fish on board with occupied fields (#19)

Co-authored-by: Daniel <daniel.klingebiel@gmail.com>

* release v1.0.0

* test: fix bug in a board test

Co-authored-by: tms-hl <100803511+tms-hl@users.noreply.github.com>
Co-authored-by: Daniel <daniel.klingebiel@gmail.com>
maxblan added a commit that referenced this pull request Dec 23, 2022
* field: add a repr method

* readme: remove shield with error

* cartesiancoordinate: raise a index error now

* test: add tests for the board class

* fixed bug to prevent type error when calling get_most_fish on board with occupied fields (#19)

Co-authored-by: Daniel <daniel.klingebiel@gmail.com>

* release v1.0.0

* test: fix bug in a board test

Co-authored-by: tms-hl <100803511+tms-hl@users.noreply.github.com>
Co-authored-by: Daniel <daniel.klingebiel@gmail.com>

(cherry picked from commit f910d21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants