allura
修訂 | 866016feb3962da57e02eb57bc24160900531127 (tree) |
---|---|
時間 | 2012-04-17 18:08:49 |
作者 | Yaroslav Luzin <jardev@gmai...> |
Commiter | Yaroslav Luzin |
ticket:17 Fixed - forgot to import pymongo
@@ -6,6 +6,7 @@ import Image | ||
6 | 6 | from bson import ObjectId |
7 | 7 | from datetime import datetime, timedelta |
8 | 8 | |
9 | +import pymongo | |
9 | 10 | import pkg_resources |
10 | 11 | from pylons import c, g, request |
11 | 12 | from paste.deploy.converters import asbool |
@@ -743,7 +744,7 @@ class StatsController(BaseController): | ||
743 | 744 | def index(self, **kw): |
744 | 745 | if c.project.shortname != '--init--': |
745 | 746 | redirect('index') |
746 | - | |
747 | + | |
747 | 748 | # public private deleted |
748 | 749 | delete_count = M.Project.query.find(dict(neighborhood_id=c.project.neighborhood._id, deleted=True)).count() |
749 | 750 | public_count = 0 |