Skip to content

Commit

Permalink
Fix #202 - allow use of arbitrary separator, slight refactor for more…
Browse files Browse the repository at this point in the history
… idiomatic code
  • Loading branch information
nonprofittechy committed Nov 8, 2023
1 parent 0dc8eb9 commit cff6f64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docassemble/ALToolbox/al_income.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,13 +701,13 @@ def init(self, *pargs, **kwargs):
if not hasattr(self, "source"):
self.source = "vehicle"

def year_make_model(self) -> str:
def year_make_model(self, separator="/") -> str:
"""
Returns a string of the format year/make/model of the vehicle. Triggers
gathering those attributes.
"""
return f"{ self.year } / { self.make } / { self.model }"

return separator.join([self.year, self.make, self.model])

class ALVehicleList(ALAssetList):
"""List of ALVehicles. Extends ALAssetList."""
Expand Down

0 comments on commit cff6f64

Please sign in to comment.