From e62ef907e94132f4b656e32fb52f5f76587a36dc Mon Sep 17 00:00:00 2001 From: ivar Date: Mon, 6 Oct 2025 14:30:55 +0200 Subject: 12 --- VegaData/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'VegaData/Program.cs') diff --git a/VegaData/Program.cs b/VegaData/Program.cs index aef11e6..1bd6a25 100644 --- a/VegaData/Program.cs +++ b/VegaData/Program.cs @@ -38,7 +38,7 @@ class Show public int Id { get; set; } public string Title { get; set; } public string Scene { get; set; } - public DateTimeOffset StartDateTime { get; set; } + public DateTime StartDateTime { get; set; } public string TicketUrl { get; set; } public string Type { get; set; } public string MovieVersion { get; set; } @@ -82,6 +82,7 @@ class DataWorker(IServiceScopeFactory serviceScopeFactory) : BackgroundService var existing = await db.Shows.AnyAsync(s => s.Title == show.MovieTitle && s.StartDateTime == show.ShowStart, ct); if (existing) continue; + logger.LogInformation("Adding show {title} at {startDateTime}", show.MovieTitle, show.ShowStart); db.Shows.Add(new Show() { Title = show.MovieTitle, Scene = show.ScreenName, @@ -115,7 +116,7 @@ class DataWorker(IServiceScopeFactory serviceScopeFactory) : BackgroundService public string ShowType { get; set; } [JsonPropertyName("showStart")] - public DateTimeOffset ShowStart { get; set; } + public DateTime ShowStart { get; set; } [JsonPropertyName("movieVersionId")] public string MovieVersionId { get; set; } -- cgit v1.3