GetAllBelow => ThisAndBelow
This commit is contained in:
@@ -278,7 +278,7 @@ namespace Swarmops.Logic.Structure
|
||||
object testObject = GuidCache.Get(cacheKey);
|
||||
if (testObject == null)
|
||||
{
|
||||
Geographies geographies = Geography.Root.GetAllBelow();
|
||||
Geographies geographies = Geography.Root.ThisAndBelow();
|
||||
Tree<Geography> geoTree = Tree<Geography>.FromCollection(geographies);
|
||||
|
||||
GuidCache.Set(cacheKey, geoTree);
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Swarmops.Logic.Structure
|
||||
{
|
||||
People members =
|
||||
People.FromMemberships (
|
||||
Memberships.ForOrganizations (Organization.FromIdentity (orgId).GetAllBelow()));
|
||||
Memberships.ForOrganizations (Organization.FromIdentity (orgId).ThisAndBelow()));
|
||||
|
||||
foreach (Person person in members)
|
||||
{
|
||||
@@ -88,11 +88,11 @@ namespace Swarmops.Logic.Structure
|
||||
|
||||
// Step 3 - add up the totals for every intermediate node (expensive!)
|
||||
|
||||
Geographies allGeographies = Geography.Root.GetAllBelow();
|
||||
Geographies allGeographies = Geography.Root.ThisAndBelow();
|
||||
|
||||
foreach (Geography geography in allGeographies)
|
||||
{
|
||||
Geographies localTree = geography.GetAllBelow();
|
||||
Geographies localTree = geography.ThisAndBelow();
|
||||
int voterCount = 0;
|
||||
GeographyOrganizationDataPoint[] tempOrgData = new GeographyOrganizationDataPoint[2]; // HACK
|
||||
tempOrgData[0] = new GeographyOrganizationDataPoint();
|
||||
|
||||
@@ -420,7 +420,7 @@ namespace Swarmops.Logic.Structure
|
||||
//return Organizations.FromArray(SwarmDb.GetDatabaseForReading().GetOrganizationLine(Identity));
|
||||
}
|
||||
|
||||
public Organizations GetAllBelow()
|
||||
public Organizations ThisAndBelow()
|
||||
{
|
||||
return Organizations.FromArray (OrganizationCache.GetOrganizationTree (Identity));
|
||||
//return Organizations.FromArray(SwarmDb.GetDatabaseForReading().GetOrganizationTree(Identity));
|
||||
|
||||
Reference in New Issue
Block a user