added --today parameter to send a nofitication for todays events else its change or new events. also fetches current and next month now.

This commit is contained in:
2025-10-20 02:58:16 +02:00
parent 1cdcf2f423
commit f086fd9792
6 changed files with 49 additions and 54 deletions

View File

@@ -19,4 +19,11 @@ export function prefixKeysWithDollar<T extends Record<string, any>>(obj: T): Add
export function transformArray<T extends Record<string, any>>(arr: T[]): AddDollarPrefix<T>[] {
return arr.map(prefixKeysWithDollar);
}
export function pad_l2 ( _thing: string | number ): string {
if ( typeof _thing == "number" ) {
_thing = JSON.stringify(_thing);
};
return _thing.padStart(2, "0");
}