Added counting

Changed Count post URL
Archiving crashes now removes crashes that match the archive
This commit is contained in:
Caleb Gardner
2024-06-12 02:17:26 -05:00
parent df3fe83c5f
commit e3af23873f
6 changed files with 157 additions and 16 deletions
+2 -2
View File
@@ -23,13 +23,13 @@ type CountTable interface {
Table[CountLog]
// Remove all Log items that have a CountLog.Date value less then the given value.
RemoveOldLogs(date int)
// Get count. If platform is an empty string or "all", the full count should be given
Count(platform string) int
}
type CrashTable interface {
Table[CrashReport]
// Move a crash type to archive. All instances that perfectly match that appear in CrashReport.Individual should be deleted.
// If a CrashReport ends up with an empty Individual array it should also be deleted.
// Move a crash type to archive. Crashes that match the archived crash will be automatically removed from the CrashTable.
Archive(ArchivedCrash) error
IsArchived(IndividualCrash) bool
// Add the IndividualCrash report to the crash table. If a CrashReport exists that matches, then it gets added to CrashReport.Individual.