Have the console command 'info' display all torrents info when no argument is given

This commit is contained in:
Andrew Resch 2009-08-06 20:15:52 +00:00
parent 7b9fe6ea94
commit 299add850c
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ class Command(BaseCommand):
for arg in args: for arg in args:
torrent_ids.extend(self.console.match_torrent(arg)) torrent_ids.extend(self.console.match_torrent(arg))
if not args:
torrent_ids.extend(self.console.match_torrent(""))
def on_torrents_status(status): def on_torrents_status(status):
# Print out the information for each torrent # Print out the information for each torrent
for key, value in status.items(): for key, value in status.items():