Customized Scheduler + Saved Kavita+ Details (#2644)
This commit is contained in:
parent
2092e120c3
commit
ad74871623
76 changed files with 6076 additions and 3370 deletions
|
@ -14,16 +14,13 @@ public static class CronConverter
|
|||
};
|
||||
public static string ConvertToCronNotation(string source)
|
||||
{
|
||||
var destination = string.Empty;
|
||||
destination = source.ToLower() switch
|
||||
return source.ToLower() switch
|
||||
{
|
||||
"daily" => Cron.Daily(),
|
||||
"weekly" => Cron.Weekly(),
|
||||
"disabled" => Cron.Never(),
|
||||
"" => Cron.Never(),
|
||||
_ => destination
|
||||
_ => source
|
||||
};
|
||||
|
||||
return destination;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue