witten
/
luminotes
Archived
1
0
Fork 0

Simpler, faster, and more correct storage usage calculation.

This commit is contained in:
Dan Helfman 2007-10-22 08:11:50 +00:00
parent f41b659850
commit 5a49506eee
1 changed files with 2 additions and 3 deletions

View File

@ -175,10 +175,9 @@ class User( Persistent ):
select
coalesce( sum( pg_column_size( note.* ) ), 0 )
from
luminotes_user_current, user_notebook, note
user_notebook, note
where
luminotes_user_current.id = %s and
user_notebook.user_id = luminotes_user_current.id and
user_notebook.user_id = %s and
note.notebook_id = user_notebook.notebook_id;
""" % quote( self.object_id )