Skip to content

Commit

Permalink
Update myjdapi.py
Browse files Browse the repository at this point in the history
Added query_packages function to LinkGrabber Class
  • Loading branch information
replexXx authored and mmarquezs committed Sep 24, 2020
1 parent fb7088a commit be67452
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions myjdapi/myjdapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,26 @@ def rename_package(self):
"""
pass

def query_packages(self):
"""
No idea what parameters i have to pass and/or i don't know what it does.
If i find out i will implement it :P
"""
pass
def query_packages(self,
params=[{
"availableOfflineCount":True,
"availableOnlineCount":True,
"availableTempUnknownCount":True,
"availableUnknownCount":True,
"bytesTotal":True,
"childCount":True,
"comment":True,
"enabled":True,
"hosts":True,
"maxResults":-1,
"packageUUIDs":[],
"priority":True,
"saveTo":True,
"startAt":0,
"status":True
}]):
resp = self.device.action(self.url + "/queryPackages", params)
return resp

def move_packages(self):
"""
Expand Down

0 comments on commit be67452

Please sign in to comment.