From b8e23b94d28e07693f2dc725c95dda7642209680 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Fri, 12 Jun 2026 22:00:20 +0200 Subject: [PATCH] final changes for the changes to add the Titel to the Terminplanes --- Web/modules/database/termine.py | 3 ++- config.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Web/modules/database/termine.py b/Web/modules/database/termine.py index 61e61f3..e937456 100644 --- a/Web/modules/database/termine.py +++ b/Web/modules/database/termine.py @@ -38,7 +38,7 @@ def _active_record_query(extra_query=None): return base_query -def add(date_start: str, date_end: str, time_span: list, slots: int, slot_lenght: int, user: str, mail: list=[], note:str="", calendar_enabled: bool=False): +def add(date_start: str, date_end: str, time_span: list, slots: int, slot_lenght: int, user: str, mail: list=[], note:str="", calendar_enabled: bool=False, title: str=""): try: client = MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT) db = _get_tenant_db(client) @@ -53,6 +53,7 @@ def add(date_start: str, date_end: str, time_span: list, slots: int, slot_lenght 'user': user, 'mail': mail, 'note': note, + 'title': title, 'calendar_enabled': bool(calendar_enabled), 'slots_booked': [], # -> [(start_time, name), ...]the list gets there indexes as the slot 1-defined so is can be counted without an extra variable 'Created': datetime.datetime.now(), diff --git a/config.json b/config.json index ec49e38..a31421b 100755 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "dbg": true, + "dbg": false, "key": "InventarsystemSecureKey2026XYZ789abcdef012", "ver": "0.7.20", "host": "0.0.0.0",