diff --git a/countdown/__init__.py b/countdown/__init__.py index e69de29..005fc73 100644 --- a/countdown/__init__.py +++ b/countdown/__init__.py @@ -0,0 +1 @@ +"""Countdown supports denoting points in time, and sending reminders about them to IRC.""" diff --git a/countdown/ircplugin.py b/countdown/ircplugin.py index 53cb2bc..8765f63 100644 --- a/countdown/ircplugin.py +++ b/countdown/ircplugin.py @@ -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])) diff --git a/countdown/models.py b/countdown/models.py index cc56e7a..1336657 100644 --- a/countdown/models.py +++ b/countdown/models.py @@ -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'))