Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Improvements to top-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mayhem committed Dec 14, 2023
1 parent 0e7d6fc commit cee1733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lb_content_resolver/top_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ def print_top_tags_tightly(self, limit=250):

top_tags = self.get_top_tags(limit)

print(", ".join([ tt["tag"] for tt in top_tags ]))
print("; ".join([ tt["tag"] for tt in top_tags ]))
5 changes: 3 additions & 2 deletions resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ def lb_radio(index_dir, mode, prompt):

@click.command()
@click.argument('index_dir')
def top_tags(index_dir):
@click.argument('count', required=False, default=250)
def top_tags(index_dir, count):
db = Database(index_dir)
tt = TopTags(db)
tt.print_top_tags_tightly()
tt.print_top_tags_tightly(count)


cli.add_command(create)
Expand Down

0 comments on commit cee1733

Please sign in to comment.