Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca18d3b9e2 | ||
|
|
b12f1b62d4 | ||
|
|
ede6157582 |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tout-doux",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"engines": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "tout-doux"
|
||||
version = "1.4.0"
|
||||
version = "1.4.1"
|
||||
description = ""
|
||||
requires-python = ">=3.14"
|
||||
dependencies = [
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"every_week": "Every week",
|
||||
"every_month": "Every month",
|
||||
"every_year": "Every year",
|
||||
"custom": "Custom (crontab)",
|
||||
"custom": "Custom (cron syntax)",
|
||||
"one_time": "One time (then delete)"
|
||||
},
|
||||
"week": [
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"every_week": "Toutes les semaines",
|
||||
"every_month": "Tous les mois",
|
||||
"every_year": "Tous les ans",
|
||||
"custom": "Personnalisé (crontab)",
|
||||
"custom": "Personnalisé (syntaxe cron)",
|
||||
"one_time": "Une seule fois (puis suppression)"
|
||||
},
|
||||
"week": [
|
||||
|
||||
@@ -46,6 +46,7 @@ export function taskNextReset(task: Task): Date | null {
|
||||
try {
|
||||
const interval = CronExpressionParser.parse(task.reset_cron, {
|
||||
currentDate: task.check_date,
|
||||
hashSeed: task.id,
|
||||
});
|
||||
return interval.next().toDate();
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user