[Demi-commits] r84 - lib
John Morrissey
jwm-guest at costa.debian.org
Thu Apr 27 15:37:48 UTC 2006
Author: jwm-guest
Date: 2006-04-27 15:37:47 +0000 (Thu, 27 Apr 2006)
New Revision: 84
Modified:
lib/dsa.py
Log:
sort DSAs correctly now that we have four-digit numbers
Modified: lib/dsa.py
===================================================================
--- lib/dsa.py 2006-04-24 18:26:22 UTC (rev 83)
+++ lib/dsa.py 2006-04-27 15:37:47 UTC (rev 84)
@@ -48,7 +48,7 @@
query += "WHERE title IN (" + join(["%s" for item in title], ", ") + ") "
args.extend(title)
- query += "ORDER BY title DESC"
+ query += "ORDER BY REPLACE(title, 'DSA-', '') + 0 DESC"
c.execute(query, args)
dsas = []
More information about the Demi-commits
mailing list