Skip to content

Commit

Permalink
update pretty print
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Apr 15, 2021
1 parent e6c2e20 commit a311813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spackmon/apps/main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@ def __str__(self):
def pretty_print(self):
full_hash = self.full_hash[0:8]
if self.version:
return "%s v%s spack v%s" % (self.name, self.version, full_hash)
return "%s spack v%s" % (self.name, full_hash)
return "%s v%s %s" % (self.name, self.version, full_hash)
return "%s %s" % (self.name, full_hash)

def __repr__(self):
return str(self)
Expand Down

0 comments on commit a311813

Please sign in to comment.