chiark / gitweb /
Add 'adopt' command. This adopts a randomly picked track by changing
[disorder] / python / disorder.py.in
index e99f18b..e873e49 100644 (file)
@@ -905,6 +905,10 @@ class client:
     """Add a scheduled event"""
     self._simple("schedule-add", str(when), priority, action, *rest)
 
+  def adopt(self, id):
+    """Adopt a randomly picked track"""
+    self._simple("adopt", id)
+
   ########################################################################
   # I/O infrastructure