aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-12-16 19:17:29 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-12-16 19:17:29 +0100
commit56bf544ef5a882ca8d132e87e892df9c2686295e (patch)
treed8b4d79c1022814ae19d80b1c10a4156d43770d4
parente1842f4a9c6e06b1163ef1ae0d8c1b68c434a0a9 (diff)
By default, print the short uid before an entry when searching.
-rw-r--r--lesana/command.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lesana/command.py b/lesana/command.py
index 2df70c1..7f70597 100644
--- a/lesana/command.py
+++ b/lesana/command.py
@@ -230,7 +230,10 @@ class Search(guacamole.Command):
print(template.render(entries=results))
else:
for entry in results:
- print(entry)
+ print("{suid}: {entry}".format(
+ suid=entry.uid[:8],
+ entry=entry,
+ ))
class Init(guacamole.Command):