diff rhodecode/model/db.py @ 1727:8e9f51091229 beta

fixed caching query on repos path - small fixes to caching query
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 26 Nov 2011 03:01:08 +0200
parents 64e91067b996
children 07e56179633e
line wrap: on
line diff
--- a/rhodecode/model/db.py	Sat Nov 26 02:23:28 2011 +0200
+++ b/rhodecode/model/db.py	Sat Nov 26 03:01:08 2011 +0200
@@ -573,7 +573,7 @@
         """
         q = Session().query(RhodeCodeUi).filter(RhodeCodeUi.ui_key ==
                                               Repository.url_sep())
-        q.options(FromCache("sql_cache_short", "repository_repo_path"))
+        q = q.options(FromCache("sql_cache_short", "repository_repo_path"))
         return q.one().ui_value
 
     @property