summaryrefslogtreecommitdiffstats
path: root/module/PyPackage.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/PyPackage.py')
-rw-r--r--module/PyPackage.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/module/PyPackage.py b/module/PyPackage.py
index 42fa129f9..bc9b8094f 100644
--- a/module/PyPackage.py
+++ b/module/PyPackage.py
@@ -20,6 +20,9 @@
from module.PullEvents import UpdateEvent
class PyPackage():
+ """
+ Represents a package object at runtime
+ """
def __init__(self, manager, id, name, folder, site, password, queue, order, priority):
self.m = manager
self.m.packageCache[int(id)] = self
@@ -37,14 +40,9 @@ class PyPackage():
self.setFinished = False
def toDict(self):
- """return data as dict
-
- format:
-
- {
- id: {'name': name ... 'links': {} } }
- }
+ """ Returns a dictionary representation of the data.
+ :return: dict: {id: { attr: value }}
"""
return {
self.id: {