Skip to content

Commit

Permalink
Fixing next and previous commands
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Dec 19, 2013
1 parent 90f6aee commit f411fb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions mailpile/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,14 @@ def __nonzero__(self):
return True

def next_set(self):
stats = self['stats']
return SearchResults(self.session, self.idx,
start=self['start'] - 1 + self['count'])
start=stats['start'] - 1 + stats['count'])

def previous_set(self):
stats = self['stats']
return SearchResults(self.session, self.idx,
end=self['start'] - 1)
end=stats['start'] - 1)

def as_text(self):
clen = max(3, len('%d' % len(self.session.results)))
Expand Down
2 changes: 1 addition & 1 deletion mailpile/plugins/networkgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class NetworkGraph(Search):
"""Get a graph of the network in the current search results."""
ORDER = ('Searching', 1)
SYNOPSIS = ('n', 'shownetwork', 'shownetwork', '<terms>')
SYNOPSIS = (None, 'shownetwork', 'shownetwork', '<terms>')
HTTP_CALLABLE = ('GET', )

def command(self, search=None):
Expand Down

0 comments on commit f411fb3

Please sign in to comment.