liquid_feedback_frontend
annotate model/member_count.lua @ 1317:8d0a49d5ed7e
Configureable text when manual verification needed
| author | bsw | 
|---|---|
| date | Wed Aug 01 17:49:26 2018 +0200 (2018-08-01) | 
| parents | a85f7ea61ef6 | 
| children | 
| 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@1075 | 6 local member_count = self:new_selector():optional_object_mode():exec() | 
| bsw@1075 | 7 if member_count then | 
| bsw@1075 | 8 MemberCount.total_count = member_count.total_count | 
| bsw@1075 | 9 end | 
| bsw@350 | 10 end | 
| bsw@350 | 11 return MemberCount.total_count | 
| bsw/jbe@0 | 12 end |