mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:36:30 +00:00
bump ImageSharp version vulnerability fix
decouple Loader from Common dll fix current user url in api
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<PackageReference Include="Polly" Version="8.5.2" />
|
||||
<PackageReference Include="RabbitMQ.Stream.Client" Version="1.8.9" />
|
||||
<PackageReference Include="Serilog" Version="4.3.0" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.7" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.11" />
|
||||
<PackageReference Include="Stub.System.Data.SQLite.Core.NetStandard" Version="1.0.119" />
|
||||
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.119" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="5.0.3" />
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace Azaion.Common;
|
||||
public static class Constants
|
||||
{
|
||||
public const string CONFIG_PATH = "config.json";
|
||||
public const string LOADER_CONFIG_PATH = "loaderconfig.json";
|
||||
public const string DEFAULT_API_URL = "https://api.azaion.com";
|
||||
public const string AZAION_SUITE_EXE = "Azaion.Suite.exe";
|
||||
|
||||
|
||||
@@ -9,8 +9,9 @@ public class Detection : YoloLabel
|
||||
{
|
||||
[JsonProperty(PropertyName = "an")][Key("an")] public string AnnotationName { get; set; } = null!;
|
||||
[JsonProperty(PropertyName = "p")][Key("p")] public double Confidence { get; set; }
|
||||
[JsonProperty(PropertyName = "dn")][Key("dn")] public string Description { get; set; }
|
||||
[JsonProperty(PropertyName = "af")][Key("af")] public AffiliationEnum Affiliation { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "dn")] [Key("dn")] public string Description { get; set; } = null!;
|
||||
[JsonProperty(PropertyName = "af")] [Key("af")] public AffiliationEnum Affiliation { get; set; }
|
||||
|
||||
//For db & serialization
|
||||
public Detection(){}
|
||||
|
||||
@@ -3,16 +3,18 @@ namespace Azaion.Common.Database;
|
||||
public class MediaFile
|
||||
{
|
||||
public string Name { get; set; } = null!;
|
||||
public string LocalPath { get; set; } = null!;
|
||||
public DateTime? ProcessedDate { get; set; }
|
||||
public MediaDetectionStatus MediaDetectionStatus { get; set; } = MediaDetectionStatus.New;
|
||||
public string MediaUrl { get; set; } = null!;
|
||||
public DateTime? LastProcessedDate { get; set; }
|
||||
public MediaStatus Status { get; set; } = MediaStatus.New;
|
||||
public int? RecognisedObjects { get; set; }
|
||||
}
|
||||
|
||||
public enum MediaDetectionStatus
|
||||
public enum MediaStatus
|
||||
{
|
||||
None,
|
||||
New,
|
||||
Processing,
|
||||
Processed,
|
||||
AIProcessing,
|
||||
AIProcessed,
|
||||
ManualConfirmed,
|
||||
Error
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public class AzaionApi(ILogger logger, HttpClient client, ICache cache, ApiCrede
|
||||
get
|
||||
{
|
||||
var user = cache.GetFromCache(Constants.CURRENT_USER_CACHE_KEY,
|
||||
() => Get<User>("currentUser"));
|
||||
() => Get<User>("users/current"));
|
||||
if (user == null)
|
||||
throw new Exception("Can't get current user");
|
||||
return user;
|
||||
|
||||
Reference in New Issue
Block a user