Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
pycdstar3
Commits
e02fada2
Commit
e02fada2
authored
Oct 02, 2019
by
Marcel Hellkamp
Browse files
fix: query->params
parent
c3054b94
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycdstar/cdstar.py
View file @
e02fada2
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment