damned-lies r1186 - in trunk: . stats/management/commands
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1186 - in trunk: . stats/management/commands
- Date: Sat, 22 Nov 2008 22:43:38 +0000 (UTC)
Author: claudep
Date: Sat Nov 22 22:43:38 2008
New Revision: 1186
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1186&view=rev
Log:
2008-11-22 Claude Paroz <claude 2xlibre net>
* stats/management/commands/update-trans.py: Prevent empty string in
database-content.py.
Modified:
trunk/ChangeLog
trunk/stats/management/commands/update-trans.py
Modified: trunk/stats/management/commands/update-trans.py
==============================================================================
--- trunk/stats/management/commands/update-trans.py (original)
+++ trunk/stats/management/commands/update-trans.py Sat Nov 22 22:43:38 2008
@@ -45,7 +45,7 @@
cursor = connection.cursor()
cursor.execute(query)
for row in cursor.fetchall():
- if row[0] is not None:
+ if row[0] is not None and row[0] != '':
f.write("_(u\"\"\"%s\"\"\")\n" % row[0].encode('utf-8'))
f.close()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]