On Fri, Jul 10, 2020 at 5:34 PM Craig Russell <apache....@gmail.com> wrote:
>
> I cannot find where the magic happens that updates the active member count in 
> members.txt.
>
> When moving from active to emeritus:
>       index = text.index(/^\s\*\)\s/, text.index(/^Emeritus/))
>
> When moving from emeritus to active:
>       index = text.index(/^\s\*\)\s/, text.index(/^Active/))
>
> When moving from active to deceased:
>       index = text.index(/^\s\*\)\s/, text.index(/^Deceased/))
>
> And then, adding the entry back:
>     text.insert index, entry

https://github.com/apache/whimsy/blob/d0aa149dae6b02373ec5df020a4e042149bc745e/www/secretary/workbench/views/actions/memapp.json.rb#L104-L105

I highlighted two lines.  The first will update the membership count.
The second will sort member names.

> Craig L Russell
> c...@apache.org

- Sam Ruby

Reply via email to