Gitlab Community Edition Instance

Commit e02fada2 authored by Marcel Hellkamp's avatar Marcel Hellkamp
Browse files

fix: query->params

parent c3054b94
......@@ -139,7 +139,7 @@ class CDStar:
"""
query = {"files": "true", "offset": offset, "limit": limit}
return self._rest("GET", vault, archive, query=query).json()
return self._rest("GET", vault, archive, params=query).json()
def iter_files(self, vault, archive, offset=0, **args):
""" Yield all FileInfo entries of an archive.
......@@ -170,7 +170,7 @@ class CDStar:
query = {"info": "true"}
if meta:
query['with'] = "meta"
return self._rest("GET", vault, archive, _fix_filename(name), query=query).json()
return self._rest("GET", vault, archive, _fix_filename(name), params=query).json()
def search(self, vault, q, order=None, limit=0, scroll=None, groups=None):
""" Perform a search and return the SearchResults document.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment