Refactor: GetTree => GetAllBelow, GetLine => GetRootLineage

This commit is contained in:
Rick Falkvinge
2015-05-01 16:48:56 +02:00
parent 6b96e835b8
commit ed3d33064e
22 changed files with 58 additions and 58 deletions
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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 (