Refactor: GetTree => GetAllBelow, GetLine => GetRootLineage
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Swarmops.Utility.BotCode
|
||||
|
||||
// Populate voters, then open for voting
|
||||
|
||||
Organizations orgTree = poll.Organization.GetTree();
|
||||
Organizations orgTree = poll.Organization.GetAllBelow();
|
||||
|
||||
Memberships memberships = Memberships.ForOrganizations (orgTree);
|
||||
|
||||
|
||||
@@ -185,8 +185,8 @@ namespace Swarmops.Utility.BotCode
|
||||
{
|
||||
// for this person, iterate over all applicable geographies and organizations
|
||||
|
||||
Organizations orgLine = organization.GetLine();
|
||||
Geographies geoLine = person.Geography.GetLine();
|
||||
Organizations orgLine = organization.GetRootLineage();
|
||||
Geographies geoLine = person.Geography.GetRootLineage();
|
||||
|
||||
orgLine.Reverse(); // Start at the most local org
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Swarmops.Utility.BotCode
|
||||
|
||||
public static string ExportMemberList (int organizationIdRoot, DateTime membersAfter, DateTime membersBefore)
|
||||
{
|
||||
Organizations orgs = Organization.FromIdentity (organizationIdRoot).GetTree();
|
||||
Organizations orgs = Organization.FromIdentity (organizationIdRoot).GetAllBelow();
|
||||
StringBuilder result = new StringBuilder();
|
||||
|
||||
result.Append (
|
||||
|
||||
Reference in New Issue
Block a user