Skip to content

Commit

Permalink
Formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Apr 26, 2023
1 parent 401fbbf commit fbaea96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion load.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,13 @@ def update_display() -> None:
break
else:
text += '\n'
text += '\n'

if (this.location_name != "" and this.location_name in bio_bodies) and this.focus_setting.get() != "Never" and \
((this.focus_setting.get() == 'On Approach' and this.location_state in ['approach', 'surface'])
or (this.focus_setting.get() == 'On Surface' and this.location_state == 'surface')):
complete = len(dict(filter(lambda x: x[1][1] == 3 , bio_bodies[this.location_name].get_flora().items())))
text += '\n{} - {} - {}/{} Analysed'.format(bio_bodies[this.location_name].get_name(),
text += '{} - {} - {}/{} Analysed'.format(bio_bodies[this.location_name].get_name(),
bio_bodies[this.location_name].get_type(),
complete, len(bio_bodies[this.location_name].get_flora()))

Expand Down

0 comments on commit fbaea96

Please sign in to comment.