Skip to content

Commit

Permalink
offset
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Mar 1, 2022
1 parent 9f63209 commit aba9fe2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/eva/notify.py
Expand Up @@ -1014,6 +1014,9 @@ def get_state_log(self,
import dateutil.parser
from datetime import datetime
l = int(limit) if limit is not None else None
offset = xopts.get('offset') if xopts else None
if offset is not None:
offset = int(offset)
if l is not None and l <= 0:
return []
if t_start:
Expand Down Expand Up @@ -1044,6 +1047,8 @@ def get_state_log(self,
q += ' order by t desc, oid'
if l is not None:
q += ' limit %u' % l
if offset is not None:
q += ' offset %u' % offset
dbconn = self.db()
result = []
space = self.space if self.space is not None else ''
Expand Down

0 comments on commit aba9fe2

Please sign in to comment.