Refactor: Rename "PirateDb" to "SwarmDb"
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user