Commits

Andy Mikhailenko  committed b4c8c18

Simplify the activity completion code

  • Participants
  • Parent commits 4c73afd

Comments (0)

Files changed (1)

File timetra/cli/__init__.py

 
 def complete_activity(prefix, **kwargs):
     candidates = storage.get_hamster_activity_candidates(prefix)
-    candidates = [u'{name}@{category}'.format(**c) for c in candidates]
-    if prefix:
-        candidates = [x for x in candidates if x.startswith(prefix)]
-    return candidates
+    return [u'{name}@{category}'.format(**c) for c in candidates]
 
 
 @named('log')