better landmarks log
All checks were successful
Build and push docker image / Build (pull_request) Successful in 2m5s
Build and release APK / Build APK (pull_request) Successful in 4m46s

This commit is contained in:
2024-09-10 17:07:26 +02:00
parent 3475990e5f
commit 055089bf76
2 changed files with 6 additions and 3 deletions

View File

@@ -37,5 +37,8 @@ class Landmark(BaseModel) :
def __str__(self) -> str:
time_to_next_str = f", time_to_next={self.time_to_reach_next}" if self.time_to_reach_next else ""
return f'Landmark({self.type}): [{self.name} @{self.location}, score={self.attractiveness}{time_to_next_str}]'
is_secondary_str = f", secondary" if self.is_secondary else ""
type_str = '(' + self.type + ')'
if self.type in ["start", "finish", "nature", "shopping"] : type_str += '\t '
return f'Landmark{type_str}: [{self.name} @{self.location}, score={self.attractiveness}{time_to_next_str}{is_secondary_str}]'