zeiterfassung/lib/definitions.py
Alexander Malzkuhn 0d5d977a1e Interne Backupfunktion hinzugefügt
Downloads für Backups hinzugefügt
Wiederherstellungsfunktion hinzugefügt
2025-05-26 12:52:17 +02:00

74 lines
2.4 KiB
Python

# Zeiterfassung
# Quasi-Konstanten
import os
from pathlib import Path
app_title = "Zeiterfassung"
app_version = ("0.0.0")
# Standardpfade
scriptpath = str(Path(os.path.dirname(os.path.abspath(__file__))).parent.absolute())
userfolder = "users"
backupfolder = "backup"
# Dateinamen
usersettingsfilename = "settings.json"
photofilename = "photo.jpg"
# Status
status_in = "eingestempelt"
status_out = "ausgestempelt"
# Standardadmin Settings:
standard_adminsettings = { "admin_user": "admin",
"admin_password": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918",
"port": "8090",
"secret": "ftgzuhjikg,mt5jn46uzer8sfi9okrmtzjhndfierko5zltjhdgise",
"times_on_touchscreen": True,
"photos_on_touchscreen": True,
"touchscreen": True,
"picure_height": 200,
"button_height": 300,
"user_notes": True,
"holidays": { }
}
# Standard User Settings:
standard_usersettings = {
"username": "default",
"fullname": "Standardbenutzer",
"password": "37a8eec1ce19687d132fe29051dca629d164e2c4958ba141d5f4133a33f0688f",
"api_key": "1234567890",
"workhours": { }
}
# Abesenheiten
absence_entries = {"U": { "name": "Urlaub",
"color": "green",
"text-color": "black"},
"K": { "name": "Krankheit",
"color": "red",
"text-color": "white"},
"KK": { "name": "Krankheit Kind",
"color": "orange",
"text-color": "black"},
"UU": { "name": "Urlaub aus Überstunden",
"color": "green",
"text-color": "black"},
"F": { "name": "Fortbildung",
"color": "black",
"text-color": "white"},
"EZ": { "name": "Elternzeit",
"color": "purple",
"text-color": "white"},
"SO": { "name": "Sonstiges",
"color": "pink",
"text-color": "white"}
}