From e5acc4fd1df8518a044d36b05138304eab6a2146 Mon Sep 17 00:00:00 2001 From: xelast418 Date: Mon, 18 Sep 2023 10:29:44 +1200 Subject: [PATCH] Minor updates: - Updates README.md with redactAs - Updates .gitignore to exclude developement files - Updates tools.py to reword the horodate prefix from "Downloaded at" to "Event last fetched" --- .gitignore | 2 +- README.md | 9 ++++++--- app/tools/tools.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 40a69eb..72cc436 100644 --- a/.gitignore +++ b/.gitignore @@ -133,6 +133,6 @@ dmypy.json app/config/calendar.json /app/cache/ -#development directories +# Development directories /app/config/ .vscode diff --git a/README.md b/README.md index e8ac8f9..4059092 100644 --- a/README.md +++ b/README.md @@ -59,15 +59,18 @@ The JSON configuration file should look like the following. }, "name":{ "addPrefix":"str", - "addSuffix":"str" + "addSuffix":"str", + "redactAs":"str" }, "description":{ "addPrefix":"str", - "addSuffix":"str" + "addSuffix":"str", + "redactAs":"str" }, "location":{ "addPrefix":"str", - "addSuffix":"str" + "addSuffix":"str", + "redactAs":"str" } } } diff --git a/app/tools/tools.py b/app/tools/tools.py index 262666b..91f253d 100644 --- a/app/tools/tools.py +++ b/app/tools/tools.py @@ -422,7 +422,7 @@ def load_cal(entry: dict) -> Calendar: else: cal = Calendar(imports=r.content.decode()) - cal = horodate(cal, 'Downloaded at') + cal = horodate(cal, 'Event last fetched: ') return cal