damned-lies r758 - trunk



Author: claudep
Date: Sat Feb 23 22:02:53 2008
New Revision: 758
URL: http://svn.gnome.org/viewvc/damned-lies?rev=758&view=rev

Log:
2008-02-23  Claude Paroz  <claude 2xlibre net>

	* releases.py: Omitted in previous commit to test also the 'document' key
	for docs.

Modified:
   trunk/ChangeLog
   trunk/releases.py

Modified: trunk/releases.py
==============================================================================
--- trunk/releases.py	(original)
+++ trunk/releases.py	Sat Feb 23 22:02:53 2008
@@ -426,7 +426,8 @@
                                     Statistics.q.Branch == branch,
                                     Statistics.q.Language == None))
         for stat in list(res):
-            if allmodules[stat.Module]['branch'][stat.Branch]['domain'].has_key(stat.Domain):
+            if allmodules[stat.Module]['branch'][stat.Branch]['domain'].has_key(stat.Domain) or \
+               allmodules[stat.Module]['branch'][stat.Branch]['document'].has_key(stat.Domain):
                 un = stat.Untranslated
                 type = stat.Type
                 if type=='ui': totalpot += un
@@ -437,7 +438,8 @@
                                     Statistics.q.Branch == branch,
                                     Statistics.q.Language != None))
         for stat in list(res):
-            if allmodules[stat.Module]['branch'][stat.Branch]['domain'].has_key(stat.Domain):
+            if allmodules[stat.Module]['branch'][stat.Branch]['domain'].has_key(stat.Domain) or \
+               allmodules[stat.Module]['branch'][stat.Branch]['document'].has_key(stat.Domain):
                 type = stat.Type
                 if type not in ['ui', 'doc']: continue
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]