Skip to content
Permalink
Browse files
set zero-based offset for OARec
  • Loading branch information
tomkralidis committed Mar 11, 2022
1 parent c48f2b8 commit e8aab87a2a5dd47799757423ce26b120686c19c9
Showing 1 changed file with 5 additions and 2 deletions.
@@ -190,12 +190,15 @@ def __init__(self, url, timeout, auth):

self.response = self.conn.response

def query_records(self, bbox=[], keywords=None, limit=10, offset=0):
def query_records(self, bbox=[], keywords=None, limit=10, offset=1):
# set zero-based offset (default MetaSearch behaviour is CSW-based
# offset of 1
offset2 = offset - 1

params = {
'collection_id': self.record_collection,
'limit': limit,
'offset': offset
'offset': offset2
}

if keywords:

0 comments on commit e8aab87

Please sign in to comment.