mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Primary key string
This commit is contained in:
parent
a1258b5ea9
commit
bac5e958bf
@ -19,7 +19,7 @@ namespace Wabbajack.BuildServer.Models.Jobs
|
||||
public class IndexJob : AJobPayload
|
||||
{
|
||||
public Archive Archive { get; set; }
|
||||
public override string Description => $"Index ${Archive.State.PrimaryKey} and save the download/file state";
|
||||
public override string Description => $"Index ${Archive.State.PrimaryKeyString} and save the download/file state";
|
||||
public override bool UsesNexus { get => Archive.State is NexusDownloader.State; }
|
||||
public override async Task<JobResult> Execute(DBContext db, AppSettings settings)
|
||||
{
|
||||
|
@ -35,7 +35,18 @@ namespace Wabbajack.Lib.Downloaders
|
||||
}
|
||||
|
||||
public abstract object[] PrimaryKey { get; }
|
||||
|
||||
|
||||
public string PrimaryKeyString
|
||||
{
|
||||
get
|
||||
{
|
||||
var pk = new List<object>();
|
||||
pk.Add(AbstractDownloadState.TypeToName[GetType()]);
|
||||
pk.AddRange(PrimaryKey);
|
||||
var pk_str = string.Join("|",pk.Select(p => p.ToString()));
|
||||
return pk_str;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user