diff --git a/SharpRss/DbAccess.cs b/SharpRss/DbAccess.cs index eeab218..322fb04 100644 --- a/SharpRss/DbAccess.cs +++ b/SharpRss/DbAccess.cs @@ -241,10 +241,10 @@ namespace SharpRss Log.Information("Checking table: {Table}", "category"); await dbc.ExecuteAsync("CREATE TABLE IF NOT EXISTS category (id STRING PRIMARY KEY, name STRING NOT NULL, hex_color STRING NOT NULL, icon STRING, last_updated INT)"); - Log.Information("Checking table: {Table}", "feed"); + Log.Information("Checking table: {Table}", "syndication"); await dbc.ExecuteAsync("CREATE TABLE IF NOT EXISTS syndication (encoded_url STRING PRIMARY KEY, title STRING, category_id STRING, syndication_type STRING, version STRING, description STRING, language STRING, copyright STRING, last_updated INT, publication_date INT, syn_updated_date INT, categories STRING, image_url STRING)"); - Log.Information("Checking table: {Table}", "feed_item"); + Log.Information("Checking table: {Table}", "syndication_item"); await dbc.ExecuteAsync("CREATE TABLE IF NOT EXISTS syndication_item (link STRING PRIMARY KEY, encoded_syndication_url STRING, read STRING, type STRING, title STRING, description STRING, last_updated INT, item_updated_date INT, publishing_date INT, authors STRING, categories STRING, content STRING, comments_url STRING)"); Log.Information("Checking database done!"); _isInitialized = true; diff --git a/SharpRss/Services/SyndicationService.cs b/SharpRss/Services/SyndicationService.cs index e61c0a9..02856d4 100644 --- a/SharpRss/Services/SyndicationService.cs +++ b/SharpRss/Services/SyndicationService.cs @@ -104,7 +104,7 @@ namespace SharpRss.Services } private async void SetupTestCategoriesAndFeedsAsync() { - Log.Information("Setting up test data..."); + /*Log.Information("Setting up test data..."); try { CategoryModel? newsCategory = await CreateCategoryAsync(new CategoryModel() { Name = "News" }); @@ -144,7 +144,7 @@ namespace SharpRss.Services catch (Exception e) { Log.Error(e, "Exception!"); - } + }*/ } } } \ No newline at end of file diff --git a/WebSharpRSS/Pages/List.razor b/WebSharpRSS/Pages/List.razor index c36c8e7..a40652d 100644 --- a/WebSharpRSS/Pages/List.razor +++ b/WebSharpRSS/Pages/List.razor @@ -15,7 +15,7 @@ } else { - + } diff --git a/WebSharpRSS/Shared/FeedItemList.razor b/WebSharpRSS/Shared/SyndicationListItem.razor similarity index 86% rename from WebSharpRSS/Shared/FeedItemList.razor rename to WebSharpRSS/Shared/SyndicationListItem.razor index 3f3f7d2..abe69ef 100644 --- a/WebSharpRSS/Shared/FeedItemList.razor +++ b/WebSharpRSS/Shared/SyndicationListItem.razor @@ -12,6 +12,10 @@
+ @if (feedItemData.SyndicationParent.Category != null && !feedItemData.SyndicationParent.Category.Icon.IsNullEmptyWhiteSpace()) + { + + } @if (feedItemData.SyndicationParent.ImageUrl != null) { diff --git a/WebSharpRSS/sharp_rss.sqlite b/WebSharpRSS/sharp_rss.sqlite index 38040e1..ad207d7 100644 Binary files a/WebSharpRSS/sharp_rss.sqlite and b/WebSharpRSS/sharp_rss.sqlite differ