Skip to content
Merged
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
5 changes: 5 additions & 0 deletions Bottomly/Models/Karma.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public class Karma
[BsonElement("awarded")] public DateTime Awarded { get; set; }

[BsonElement("karma_type")] public string KarmaTypeValue { get; set; } = string.Empty;

/// <summary>
/// Legacy element to enable support from pymongo persisted data
/// </summary>
[BsonElement("_cls")] public string Cls { get; set; } = string.Empty;

[BsonIgnore]
public KarmaType KarmaType
Expand Down
6 changes: 6 additions & 0 deletions Bottomly/Models/Member.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ public class Member

[BsonElement("misc_info")] public string MiscInfo { get; set; } = string.Empty;

/// <summary>
/// Legacy element to enable support from pymongo persisted data
/// </summary>
[BsonElement("_cls")]
public string Cls { get; set; } = string.Empty;

[BsonIgnore]
public string Note =>
$"FullName: {FullName}\n" +
Expand Down
Loading