Skip to content

Commit

Permalink
Exclude Topics that are "Im Aufbau" (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr authored May 2, 2024
2 parents b708816 + b1a966a commit b84892e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Geodatenbezug/Models/Topic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ public record Topic
/// </summary>
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; set; }

/// <summary>
/// Topic title.
/// </summary>
[JsonPropertyName("publication_data")]
public string? PublicationData { get; set; }
}
2 changes: 1 addition & 1 deletion Geodatenbezug/Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task<List<Topic>> GetTopicsToProcess()
var topicsToProcess = new List<Topic>();
foreach (var topic in topics)
{
if (topic.UpdatedAt.HasValue)
if (topic.UpdatedAt.HasValue && topic.PublicationData != "Im Aufbau")
{
var updatedAtString = topic.UpdatedAt.Value.ToString("G", CultureInfo.GetCultureInfo("de-CH"));

Expand Down

0 comments on commit b84892e

Please sign in to comment.