mintest notes
This commit is contained in:
parent
2386c0e929
commit
8bc5c5ba4e
@ -48,6 +48,8 @@ function init_consent(policy) {
|
|||||||
self.member_count = modpol.orgs.get_org(self.org_id):get_member_count()
|
self.member_count = modpol.orgs.get_org(self.org_id):get_member_count()
|
||||||
|
|
||||||
if policy.duration then
|
if policy.duration then
|
||||||
|
-- mintest.after(time, func, ...args)
|
||||||
|
-- should override modpol callback function
|
||||||
register_callback(self.start_time + policy.duration)
|
register_callback(self.start_time + policy.duration)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -65,7 +67,7 @@ function update_consent(user, approve) {
|
|||||||
table.insert(yes_votes, user)
|
table.insert(yes_votes, user)
|
||||||
else
|
else
|
||||||
table.insert(no_votes, user)
|
table.insert(no_votes, user)
|
||||||
|
|
||||||
if not duration then
|
if not duration then
|
||||||
eval_consent()
|
eval_consent()
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user