countdown: prospector docstring stuff

bss/dr.botzo#17
This commit is contained in:
Brian S. Stephan 2017-02-22 20:39:52 -06:00
parent beff6638d0
commit ba5369bd31
3 changed files with 1 additions and 5 deletions

View File

@ -0,0 +1 @@
"""Countdown supports denoting points in time, and sending reminders about them to IRC."""

View File

@ -16,7 +16,6 @@ log = logging.getLogger('countdown.ircplugin')
class Countdown(Plugin):
"""Report on countdown items."""
def __init__(self, bot, connection, event):
@ -69,7 +68,6 @@ class Countdown(Plugin):
def handle_item_detail(self, connection, event, match):
"""Provide the details of one countdown item."""
name = match.group(1)
if name != 'list':
@ -97,7 +95,6 @@ class Countdown(Plugin):
def handle_item_list(self, connection, event, match):
"""List all countdown items."""
items = CountdownItem.objects.all()
if len(items) > 0:
reply = "countdown items: {0:s}".format(", ".join([x.name for x in items]))

View File

@ -10,7 +10,6 @@ log = logging.getLogger('countdown.models')
class CountdownItem(models.Model):
"""Track points in time."""
name = models.CharField(max_length=64, default='')
@ -26,5 +25,4 @@ class CountdownItem(models.Model):
def __str__(self):
"""String representation."""
return "{0:s} @ {1:s}".format(self.name, timezone.localtime(self.at_time).strftime('%Y-%m-%d %H:%M:%S %Z'))