chiark / gitweb /
Add 'adopt' command. This adopts a randomly picked track by changing
[disorder] / python / disorder.py.in
index e99f18b7d51d478752105e7456cd14e41d60d033..e873e49c76387ba627cd7d5db5bb92748530996c 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