Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo Recognised to Recognized for PR#542. #543

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Damselfly.Core.DbModels/Models/API Models/Statistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class Statistics
public int PendingKeywordOps { get; set; }
public int PendingKeywordImages { get; set; }
public long TotalImagesSizeBytes { get; set; }
public int ObjectsRecognised { get; set; }
public int ObjectsRecognized { get; set; }
public int PeopleFound { get; set; }
public int PeopleIdentified { get; set; }
public string OperatingSystem { get; set; }
}
}
4 changes: 2 additions & 2 deletions Damselfly.Core/Services/StatisticsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task<Statistics> GetStatistics()
TotalImagesSizeBytes = await db.Images.SumAsync(x => (long)x.FileSizeBytes),
PeopleFound = await db.People.CountAsync(),
PeopleIdentified = await db.People.Where(x => x.Name != "Unknown").CountAsync(),
ObjectsRecognised = await db.ImageObjects.CountAsync(),
ObjectsRecognized = await db.ImageObjects.CountAsync(),
PendingAIScans = await db.ImageMetaData.Where(x => !x.AILastUpdated.HasValue).CountAsync(),
PendingThumbs = await db.ImageMetaData.Where(x => !x.ThumbLastUpdated.HasValue).CountAsync(),
PendingImages = await db.Images.Where(x => x.MetaData == null || x.LastUpdated > x.MetaData.LastUpdated)
Expand All @@ -53,4 +53,4 @@ public async Task<Statistics> GetStatistics()

return stats;
}
}
}
4 changes: 2 additions & 2 deletions Damselfly.Web.Client/Shared/Stats.razor
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<td>Tags/Keywords:</td><td>@statistics.TotalTags</td>
</tr>
<tr>
<td>Recognised Objects:</td><td>@statistics.ObjectsRecognised</td>
<td>Recognized Objects:</td><td>@statistics.ObjectsRecognized</td>
</tr>
<tr>
<td>Faces:</td><td>@statistics.PeopleFound</td>
Expand Down Expand Up @@ -100,4 +100,4 @@
}
}

}
}