Author SHA1 Message Date
klemek aeeabe81c7 chore: 1.7.6
Python Lint CI / ruff (push) Successful in 2m38s
Python Lint CI / ruff-format-check (push) Successful in 3m51s
Python Lint CI / ty (push) Successful in 3m22s
Docker Build / build (push) Successful in 7m56s
TS Lint / ESLint (push) Successful in 4m50s
TS Lint / Oxlint (push) Successful in 3m40s
TS Lint / TypeScript (push) Successful in 3m44s
2026-08-02 09:48:32 +02:00
klemek 87eff715f6 fix: rrule detection 2026-08-02 09:48:28 +02:00
4 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tout-doux",
"version": "1.7.5",
"version": "1.7.6",
"private": true,
"type": "module",
"engines": {
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "tout-doux"
version = "1.7.5"
version = "1.7.6"
description = ""
requires-python = ">=3.14"
dependencies = [
+6 -2
View File
@@ -22,7 +22,7 @@ export function parseCron(cron: string | null): {
value: 0,
date: null,
};
} else if (cron.startsWith("RRULE:") || cron.startsWith("DTSTART:")) {
} else if (isRrule(cron)) {
return parseRrule(cron);
} else if ((value = /^0 (\d+) \* \* \*$/i.exec(cron)) !== null) {
return {
@@ -75,6 +75,10 @@ export function parseCron(cron: string | null): {
}
}
function isRrule(cron: string): boolean {
return cron.startsWith("RRULE:") || cron.startsWith("DTSTART:");
}
export function parseRrule(rule: string): {
type: CronType;
value: number;
@@ -193,7 +197,7 @@ export function nextCronReset(
return null;
}
try {
if (cron.startsWith("RRULE:")) {
if (isRrule(cron)) {
try {
const rule = new RRule({
...RRule.parseString(cron),
Generated
+1 -1
View File
@@ -323,7 +323,7 @@ asyncpg = [
[[package]]
name = "tout-doux"
version = "1.7.5"
version = "1.7.6"
source = { editable = "." }
dependencies = [
{ name = "flask", extra = ["async"] },