confighantering. connection t postgres. test av import
This commit is contained in:
@@ -3,12 +3,12 @@ using Bibblan.ViewModels;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace Bibblan.Business.Services
|
||||
{
|
||||
{
|
||||
public class CalibreService
|
||||
{
|
||||
private readonly BibblanOptions _options;
|
||||
CalibreContext _context;
|
||||
public CalibreService(CalibreContext context, IOptions<BibblanOptions> options)
|
||||
SqliteCalibreContext _context;
|
||||
public CalibreService(SqliteCalibreContext context, IOptions<BibblanOptions> options)
|
||||
{
|
||||
_options = options.Value;
|
||||
_context = context;
|
||||
@@ -43,7 +43,7 @@ namespace Bibblan.Business.Services
|
||||
Comments = comment.Text,
|
||||
Language = l.LangCode,
|
||||
Path = b.Path,
|
||||
HasCover = b.HasCover == "1",
|
||||
HasCover = b.HasCover,// == "1",
|
||||
Formats = (from d in _context.Data where d.Book == b.Id orderby d.Format select new DataVm { Id = d.Id, Format = d.Format, FileName = d.Name + "." + d.Format.ToLower() }).ToList(),
|
||||
SeriesName = s.Name,
|
||||
SeriesNumber = b.SeriesIndex
|
||||
|
Reference in New Issue
Block a user