add timestamp filter
add missing timestamp filter from getting all entries
This commit is contained in:
@@ -121,6 +121,7 @@ class Wallabag(object):
|
|||||||
page: int default 1 what page you want
|
page: int default 1 what page you want
|
||||||
perPage: int default 30 result per page
|
perPage: int default 30 result per page
|
||||||
tags: list of tags url encoded.
|
tags: list of tags url encoded.
|
||||||
|
since: int default 0 from what timestamp you want
|
||||||
Will returns entries that matches ALL tags
|
Will returns entries that matches ALL tags
|
||||||
:return data related to the ext
|
:return data related to the ext
|
||||||
"""
|
"""
|
||||||
@@ -158,6 +159,8 @@ class Wallabag(object):
|
|||||||
params['perPage'] = kwargs['perPage']
|
params['perPage'] = kwargs['perPage']
|
||||||
if 'tags' in kwargs and isinstance(kwargs['tags'], list):
|
if 'tags' in kwargs and isinstance(kwargs['tags'], list):
|
||||||
params['tags'] = kwargs['tags']
|
params['tags'] = kwargs['tags']
|
||||||
|
if 'since' in kwargs and isinstance(kwargs['since'], int):
|
||||||
|
params['since'] = kwargs['since']
|
||||||
|
|
||||||
path = '/api/entries.{ext}'.format(ext=self.format)
|
path = '/api/entries.{ext}'.format(ext=self.format)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user