Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Pootle-2.0.0
diff options
context:
space:
mode:
authoralaaosh <alaaosh@54714841-351b-0410-a198-e36a94b762f5>2010-01-05 14:27:07 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2010-01-08 22:38:06 (GMT)
commit9792dc10667e669bf5acf83658bce7a3015ee371 (patch)
tree7b4b91552a146c05742e7ed80486729541f3baf0 /Pootle-2.0.0
parentce112cc74d9de7561ec492f9081bd2827438d0c8 (diff)
precache getquickstats() as well as getcompletestats(), mostly useful when using memcached
git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/branches/Pootle-2.0/Pootle@13584 54714841-351b-0410-a198-e36a94b762f5
Diffstat (limited to 'Pootle-2.0.0')
-rw-r--r--Pootle-2.0.0/local_apps/pootle_app/management/commands/refresh_stats.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Pootle-2.0.0/local_apps/pootle_app/management/commands/refresh_stats.py b/Pootle-2.0.0/local_apps/pootle_app/management/commands/refresh_stats.py
index a5fb536..55860a2 100644
--- a/Pootle-2.0.0/local_apps/pootle_app/management/commands/refresh_stats.py
+++ b/Pootle-2.0.0/local_apps/pootle_app/management/commands/refresh_stats.py
@@ -53,7 +53,7 @@ class Command(NoArgsCommand):
# translation project no longer exists
translation_project.delete()
continue
-
+
# rescan translation_projects
project_tree.scan_translation_project_files(translation_project)
if recompute:
@@ -68,7 +68,7 @@ class Command(NoArgsCommand):
# initialized. The indexer will update the text index of the
# TranslationProject if it is out of date.
translation_project.indexer
-
+
logging.info("Updating stats for %s", translation_project.fullname)
translation_project.getcompletestats()
-
+ translation_project.getquickstats()