liquid_feedback_frontend
annotate model/member_count.lua @ 950:37e31dd73e45
Removed preview2 mechanism from app/main/vote/list.lua
author | jbe |
---|---|
date | Thu Nov 08 20:59:50 2012 +0100 (2012-11-08) |
parents | 6c29e35cbdd3 |
children | a85f7ea61ef6 |
rev | line source |
---|---|
bsw/jbe@0 | 1 MemberCount = mondelefant.new_class() |
bsw/jbe@0 | 2 MemberCount.table = 'member_count' |
bsw/jbe@0 | 3 |
bsw/jbe@0 | 4 function MemberCount:get() |
bsw@350 | 5 if not MemberCount.total_count then |
bsw@350 | 6 MemberCount.total_count = self:new_selector():single_object_mode():exec().total_count |
bsw@350 | 7 end |
bsw@350 | 8 return MemberCount.total_count |
bsw/jbe@0 | 9 end |