An old Planet bug resurfaces

So, I see that Planet still hasn’t fixed the bug I pointed out (and provided a patch for) in 2008. Specifically, it sorts entries by “updated” rather “published”. As a consequence, some years-old blog posts I recently re-tagged showed up as new on Planet NUUG.

Here’s the patch, although I have no idea whether it still applies:

--- __init__.py.orig    2006-07-27 02:01:54.000000000 +0200
+++ __init__.py 2008-01-28 11:38:02.000000000 +0100
@@ -924,7 +924,7 @@
         added in previous updates and don't creep into the next one.
         """
 
-        for other_key in ("updated", "modified", "published", "issued", "created"):
+        for other_key in ("published", "issued", "created", "updated", "modified"):
             if self.has_key(other_key):
                 date = self.get_as_date(other_key)
                 break

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax