summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/Api.py2
-rw-r--r--module/remote/thriftbackend/pyload.thrift2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/Api.py b/module/Api.py
index 5dc8916b1..e5d26631f 100644
--- a/module/Api.py
+++ b/module/Api.py
@@ -675,7 +675,7 @@ class Api(Iface):
th.write(str(data))
th.close()
- self.addPackage(th.name, [th.name])
+ return self.addPackage(th.name, [th.name])
@permission(PERMS.MODIFY)
def orderPackage(self, pid, position):
diff --git a/module/remote/thriftbackend/pyload.thrift b/module/remote/thriftbackend/pyload.thrift
index 98e678c8e..a1b328958 100644
--- a/module/remote/thriftbackend/pyload.thrift
+++ b/module/remote/thriftbackend/pyload.thrift
@@ -274,8 +274,8 @@ service Pyload {
// downloads - adding/deleting
list<PackageID> generateAndAddPackages(1: LinkList links, 2: Destination dest),
PackageID addPackage(1: string name, 2: LinkList links, 3: Destination dest, 4: string password),
+ PackageID uploadContainer(1: string filename, 2: binary data),
void addFiles(1: PackageID pid, 2: LinkList links),
- void uploadContainer(1: string filename, 2: binary data),
void deleteFiles(1: list<FileID> fids),
void deletePackages(1: list<PackageID> pids),