Skip to content

Commit

Permalink
Purge stale cache entries for SpaceDock
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed May 4, 2020
1 parent e47f850 commit f139400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 f139400

Please sign in to comment.