Skip to content

Commit

Permalink
Merge #2859 Purge stale cache entries for SpaceDock
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed May 5, 2020
2 parents 6b8124b + f139400 commit 51d8f85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ All notable changes to this project will be documented in this file.

### Internal

- [Netkan] Purge stale cache entries for SpaceDock (#2859 by: HebaruSan; reviewed: DasSkelett)

## v1.27.2 (Chandrasekhar)

### Features
Expand Down
1 change: 1 addition & 0 deletions Netkan/Sources/Spacedock/SDVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class SDVersion
public KspVersion KSP_version;

public string changelog;
public DateTime? created;

[JsonConverter(typeof(JsonConvertFromRelativeSdUri))]
public Uri download_path;
Expand Down
1 change: 1 addition & 0 deletions Netkan/Transformers/SpacedockTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ private Metadata TransformOne(Metadata metadata, JObject json, SpacedockMod sdMo
json.SafeAdd("abstract", sdMod.short_description);
json.SafeAdd("version", latestVersion.friendly_version.ToString());
json.SafeAdd("download", latestVersion.download_path.OriginalString);
json.SafeAdd(Model.Metadata.UpdatedPropertyName, latestVersion.created);

var authors = GetAuthors(sdMod);

Expand Down

0 comments on commit 51d8f85

Please sign in to comment.