Refactor: Rename "PirateDb" to "SwarmDb"

This commit is contained in:
Rick Falkvinge
2013-02-09 18:47:10 +00:00
parent 40c730cffa
commit e71a25bed1
192 changed files with 610 additions and 610 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ namespace Swarmops.Utility.BotCode
// Every hour of the day, we check that this has been recorded for the day. This is just in case
// the bot isn't running at midnight, to make sure that we get one entry per day.
if (PirateDb.GetDatabaseForReading().GetBlogTopList(DateTime.Today) == null)
if (SwarmDb.GetDatabaseForReading().GetBlogTopList(DateTime.Today) == null)
{
ScrapeAndStore();
}
@@ -49,7 +49,7 @@ namespace Swarmops.Utility.BotCode
match = match.NextMatch();
}
PirateDb.GetDatabaseForWriting().StoreBlogTopList(DateTime.Today, rankingList.ToArray());
SwarmDb.GetDatabaseForWriting().StoreBlogTopList(DateTime.Today, rankingList.ToArray());
}
}
}
+1 -1
View File
@@ -760,7 +760,7 @@ namespace Swarmops.Utility.BotCode
+ fromOrgReport + "\r\n"
+ toOrgReport;
BasicPersonRole[] UPSecretary = PirateDb.GetDatabaseForReading().GetPeopleWithRoleType(RoleType.OrganizationSecretary,
BasicPersonRole[] UPSecretary = SwarmDb.GetDatabaseForReading().GetPeopleWithRoleType(RoleType.OrganizationSecretary,
new int[] { Organization.UPSEid },
new int[] { });
if (UPSecretary.Length > 0)
+1 -1
View File
@@ -100,7 +100,7 @@ namespace Swarmops.Utility.BotCode
dateTimeClosed = turnaround.DateTimeOpened;
}
PirateDb.GetDatabaseForWriting().SetCommunicationTurnaroundClosed(Organization.PPSEid, 1, turnaround.CommunicationId, (DateTime) dateTimeClosed, 0);
SwarmDb.GetDatabaseForWriting().SetCommunicationTurnaroundClosed(Organization.PPSEid, 1, turnaround.CommunicationId, (DateTime) dateTimeClosed, 0);
}
}
}