Fehlerhandliingsoption für user settings.json entfernt

This commit is contained in:
Alexander Malzkuhn 2025-06-05 09:30:26 +02:00
parent 6f4cbefc02
commit 1330fd569e
42 changed files with 1 additions and 752 deletions

View File

@ -1,118 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ns1="http://sozi.baierouge.fr"
xmlns:cc="http://web.resource.org/cc/"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:dc="http://purl.org/dc/elements/1.1/"
id="svg1"
sodipodi:docname="timeedit.svg"
viewBox="0 0 60 60"
sodipodi:version="0.32"
_SVGFile__filename="oldscale/actions/todo.svg"
version="1.0"
y="0"
x="0"
inkscape:version="0.40"
sodipodi:docbase="/home/danny/work/flat/SVG/mono/EXTRA/kexi"
>
<sodipodi:namedview
id="base"
bordercolor="#666666"
inkscape:pageshadow="2"
inkscape:window-y="0"
pagecolor="#ffffff"
inkscape:window-height="698"
inkscape:zoom="5.5342875"
inkscape:window-x="0"
borderopacity="1.0"
inkscape:current-layer="svg1"
inkscape:cx="36.490405"
inkscape:cy="19.560172"
inkscape:window-width="1024"
inkscape:pageopacity="0.0"
/>
<g
id="g1113"
transform="matrix(1.8141 0 0 1.8141 -24.352 -32.241)"
>
<path
id="path1894"
style="stroke-linejoin:round;stroke:#ffffff;stroke-linecap:round;stroke-width:5.5124;fill:none"
d="m43.399 34.31c0 7.418-6.02 13.438-13.438 13.438s-13.438-6.02-13.438-13.438 6.02-13.438 13.438-13.438 13.438 6.02 13.438 13.438z"
/>
<path
id="path741"
style="stroke-linejoin:round;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-width:2.7562;fill:#ffffff"
d="m43.399 34.31c0 7.418-6.02 13.438-13.438 13.438s-13.438-6.02-13.438-13.438 6.02-13.438 13.438-13.438 13.438 6.02 13.438 13.438z"
/>
<path
id="path743"
sodipodi:nodetypes="cc"
style="stroke-linejoin:round;stroke:#000000;stroke-linecap:round;stroke-width:2.7562;fill:none"
d="m29.961 34.169v-8.723"
/>
<path
id="path744"
style="stroke-linejoin:round;stroke:#000000;stroke-linecap:round;stroke-width:2.7562;fill:none"
d="m30.185 34.066l5.869 3.388"
/>
<path
id="path742"
style="stroke-linejoin:round;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-width:1.7226;fill:#000000"
d="m31.178 34.31c0 0.672-0.545 1.217-1.217 1.217s-1.217-0.545-1.217-1.217 0.545-1.218 1.217-1.218 1.217 0.546 1.217 1.218z"
/>
</g
>
<metadata
>
<rdf:RDF
>
<cc:Work
>
<dc:format
>image/svg+xml</dc:format
>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
/>
<cc:license
rdf:resource="http://creativecommons.org/licenses/publicdomain/"
/>
<dc:publisher
>
<cc:Agent
rdf:about="http://openclipart.org/"
>
<dc:title
>Openclipart</dc:title
>
</cc:Agent
>
</dc:publisher
>
</cc:Work
>
<cc:License
rdf:about="http://creativecommons.org/licenses/publicdomain/"
>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks"
/>
</cc:License
>
</rdf:RDF
>
</metadata
>
</svg
>

Before

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -28,12 +28,9 @@ class user:
self.photofile = os.path.join(self.userfolder, photofilename)
# Stammdaten einlesen
#try:
with open(self.settingsfile) as json_file:
data = json.load(json_file)
#except:
# print("Fehler beim Erstellen des Datenarrays.")
# #TODO Hier muss noch Fehlerbehandlungcode hin
self.password = data["password"]
self.workhours = data["workhours"]

View File

@ -1,33 +0,0 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 496.158 496.158" xml:space="preserve">
<path style="fill:#D61E1E;" d="M248.082,0.003C111.07,0.003,0,111.063,0,248.085c0,137.001,111.07,248.07,248.082,248.07
c137.006,0,248.076-111.069,248.076-248.07C496.158,111.062,385.088,0.003,248.082,0.003z"/>
<path style="fill:#F4EDED;" d="M248.082,39.002C132.609,39.002,39,132.602,39,248.084c0,115.463,93.609,209.072,209.082,209.072
c115.467,0,209.076-93.609,209.076-209.072C457.158,132.602,363.549,39.002,248.082,39.002z"/>
<g>
<path style="fill:#5B5147;" d="M145.23,144.237h-24.44c-3.21,0-5.819,4.741-5.819,10.605s2.609,10.611,5.819,10.611h24.44
c3.217,0,5.826-4.747,5.826-10.611C151.057,148.978,148.447,144.237,145.23,144.237z"/>
<path style="fill:#5B5147;" d="M380.289,172.06H226.545c-2.025-9.851-9.416-17.176-18.244-17.176h-92.199
c-10.403,0-18.818,10.125-18.818,22.592V328.9c0,10.254,8.314,18.581,18.58,18.581h264.425c10.262,0,18.586-8.327,18.586-18.581
V190.655C398.875,180.38,390.551,172.06,380.289,172.06z"/>
</g>
<path style="fill:#F4EDED;" d="M248.076,166.711c-51.133,0-92.604,41.462-92.604,92.602c0,51.146,41.471,92.608,92.604,92.608
c51.139,0,92.6-41.462,92.6-92.608C340.676,208.174,299.215,166.711,248.076,166.711z"/>
<path style="fill:#5B5147;" d="M248.086,171.416c-48.547,0-87.909,39.355-87.909,87.909c0,48.537,39.362,87.898,87.909,87.898
c48.543,0,87.896-39.361,87.896-87.898C335.981,210.771,296.629,171.416,248.086,171.416z"/>
<path style="fill:#F4EDED;" d="M248.611,205.005c-29.992,0-54.312,24.31-54.312,54.308c0,29.991,24.319,54.321,54.312,54.321
s54.318-24.33,54.318-54.321C302.93,229.315,278.603,205.005,248.611,205.005z"/>
<path style="fill:#5B5147;" d="M248.611,209.528c-27.494,0-49.789,22.286-49.789,49.786c0,27.494,22.295,49.798,49.789,49.798
c27.496,0,49.795-22.304,49.795-49.798C298.406,231.814,276.107,209.528,248.611,209.528z"/>
<g>
<path style="fill:#F4EDED;" d="M230.224,215.002c-14.401,0-26.065,11.674-26.065,26.067c0,14.399,11.664,26.073,26.065,26.073
c14.391,0,26.065-11.674,26.065-26.073C256.289,226.676,244.614,215.002,230.224,215.002z"/>
<path style="fill:#F4EDED;" d="M159.698,165.453h-45.712c-3.756,0-6.805,3.045-6.805,6.792v25.594c0,3.04,2.004,5.575,4.756,6.448
c0.65,0.209,1.328,0.35,2.049,0.35h45.712c3.76,0,6.793-3.04,6.793-6.798v-25.594C166.491,168.498,163.458,165.453,159.698,165.453
z"/>
</g>
<path style="fill:#D61E1E;" d="M85.85,60.394c-9.086,7.86-17.596,16.37-25.456,25.456l349.914,349.914
c9.086-7.861,17.596-16.37,25.456-25.456L85.85,60.394z"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -1,79 +0,0 @@
{
"admin_user": "admin",
"admin_password": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918",
"port": "8090",
"secret": "ftgzuhjikg,mt5jn46uzer8sfi9okrmtzjhndfierko5zltjhdgise",
"touchscreen": true,
"times_on_touchscreen": true,
"photos_on_touchscreen": true,
"picture_height": "200",
"button_height": "300",
"user_notes": true,
"vacation_application": true,
"backup_folder": "/home/alexander/Dokumente/Python/Zeiterfassung/backup",
"backup_api_key": "6fed93dc4a35308b2c073a8a6f3284afe1fb9946",
"holidays": {
"2025-01-01": "Neujahr",
"2025-04-18": "Karfreitag",
"2025-04-21": "Ostermontag",
"2025-05-01": "Tag der Arbeit",
"2025-05-29": "Christi Himmelfahrt",
"2025-06-08": "Pfingstmontag",
"2025-10-03": "Tag der deutschen Einheit",
"2025-10-30": "Reformationstag",
"2025-12-25": "1. Weihnachtsfeiertag",
"2025-12-26": "2. Weihnachtsfeiertag",
"2026-01-01": "Neujahr",
"2026-04-03": "Karfreitag",
"2026-04-06": "Ostermontag",
"2026-05-01": "Tag der Arbeit",
"2026-05-14": "Christi Himmelfahrt",
"2026-05-24": "Pfingstmontag",
"2026-10-03": "Tag der deutschen Einheit",
"2026-10-30": "Reformationstag",
"2026-12-25": "1. Weihnachtsfeiertag",
"2026-12-26": "2. Weihnachtsfeiertag",
"2027-01-01": "Neujahr",
"2027-03-26": "Karfreitag",
"2027-03-29": "Ostermontag",
"2027-05-01": "Tag der Arbeit",
"2027-05-06": "Christi Himmelfahrt",
"2027-05-16": "Pfingstmontag",
"2027-10-03": "Tag der deutschen Einheit",
"2027-10-30": "Reformationstag",
"2027-12-25": "1. Weihnachtsfeiertag",
"2027-12-26": "2. Weihnachtsfeiertag",
"2028-01-01": "Neujahr",
"2028-04-14": "Karfreitag",
"2028-04-17": "Ostermontag",
"2028-05-01": "Tag der Arbeit",
"2028-05-25": "Christi Himmelfahrt",
"2028-06-04": "Pfingstmontag",
"2028-10-03": "Tag der deutschen Einheit",
"2028-10-30": "Reformationstag",
"2028-12-25": "1. Weihnachtsfeiertag",
"2028-12-26": "2. Weihnachtsfeiertag",
"2029-01-01": "Neujahr",
"2029-03-30": "Karfreitag",
"2029-04-02": "Ostermontag",
"2029-05-01": "Tag der Arbeit",
"2029-05-10": "Christi Himmelfahrt",
"2029-05-20": "Pfingstmontag",
"2029-10-03": "Tag der deutschen Einheit",
"2029-10-30": "Reformationstag",
"2029-12-25": "1. Weihnachtsfeiertag",
"2029-12-26": "2. Weihnachtsfeiertag",
"2030-01-01": "Neujahr",
"2030-04-19": "Karfreitag",
"2030-04-22": "Ostermontag",
"2030-05-01": "Tage der Arbeit",
"2030-05-30": "Christi Himmelfahrt",
"2030-06-09": "Pfingstmontag",
"2030-10-03": "Tag der deutschen Einheit",
"2030-10-30": "Reformationstag",
"2030-12-25": "1. Weihnachtsfeiertag",
"2030-12-26": "2. Weihnachtsfeiertag",
"2025-06-11": "Testeintrag",
"2025-05-31": "Testeintrag"
}
}

View File

@ -1,28 +0,0 @@
1743965819
1743965909
1743966022
1743966045
1743966047
1743966049
1743967346
1744889948
1744889966
1744989797
1744989827
1744989830
1744989883
1744989909
1744989914
1744989916
1744991169
1744991171
1744991288
1744991291
1744991473
1744991477
1744991770
1744991777
1745181046
1745181050
1745240760
1745240762

View File

@ -1,28 +0,0 @@
1743965819
1743965909
1743966022
1743966045
1743966047
1743966049
1743967346
1744889948
1744889966
1744989797
1744989827
1744989830
1744989883
1744989909
1744989914
1744989916
1744991169
1744991171
1744991288
1744991291
1744991473
1744991477
1744991770
1744991777
1745181046
1745181050
1745240760
1745240762

View File

@ -1,5 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {}
}

View File

@ -1,29 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"1": "EZ",
"2": "EZ",
"3": "EZ",
"4": "EZ",
"5": "EZ",
"8": "EZ",
"9": "EZ",
"10": "EZ",
"11": "EZ",
"12": "EZ",
"15": "EZ",
"16": "EZ",
"17": "EZ",
"18": "EZ",
"19": "EZ",
"22": "EZ",
"23": "EZ",
"24": "EZ",
"25": "EZ",
"26": "EZ",
"29": "EZ",
"30": "EZ",
"31": "EZ"
}
}

View File

@ -1,28 +0,0 @@
1743965819
1743965909
1743966022
1743966045
1743966047
1743966049
1743967346
1744889948
1744889966
1744989797
1744989827
1744989830
1744989883
1744989909
1744989914
1744989916
1744991169
1744991171
1744991288
1744991291
1744991473
1744991477
1744991770
1744991777
1745181046
1745181050
1745240760
1745240762

View File

@ -1 +0,0 @@
{"archived": 0, "overtime": -528928}

View File

@ -1,4 +0,0 @@
1740996000
1742460540
1741038540
1742464500

View File

@ -1,12 +0,0 @@
{
"archived": 1,
"overtime": -348226,
"absence": {
"7": "U",
"8": "K",
"9": "KK",
"10": "UU",
"11": "F",
"14": "EZ"
}
}

View File

@ -1,18 +0,0 @@
1744889948
1744890300
1745390818
1745390894
1745390894
1745391029
1746006467
1746006593
1746006933
1746006937
1746007004
1746007012
1746007119
1746007383
1746010855
1746010861
1746011089
1746011092

View File

@ -1,21 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"2": "SO",
"8": "U",
"9": "U",
"10": "U",
"11": "U"
},
"notes": {
"5": {},
"4": {},
"2": {},
"1": {},
"9": {},
"12": {},
"14": {},
"22": {}
}
}

View File

@ -1,32 +0,0 @@
1746385124
1746388680
1746607385
1746607536
1746607833
1746608922
1746609024
1746609037
1747206908
1747207022
1747213977
1747214813
1747216800
1747220619
1747301302
1747301459
1747302876
1747302887
1747302889
1747302897
1747386098
1747386110
1747387148
1747387150
1747387501
1747387508
1747387633
1747387635
1747387761
1747388239
1747388242
1747388615

View File

@ -1,5 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {}
}

View File

@ -1,34 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"1": "EZ",
"2": "EZ",
"3": "EZ",
"4": "EZ",
"5": "EZ",
"6": "EZ",
"7": "EZ",
"8": "EZ",
"9": "EZ",
"10": "EZ",
"11": "EZ",
"12": "EZ",
"13": "EZ",
"14": "EZ",
"15": "EZ",
"16": "EZ",
"17": "EZ",
"18": "EZ",
"19": "EZ",
"20": "EZ",
"21": "EZ",
"22": "EZ",
"23": "EZ",
"24": "EZ",
"25": "EZ",
"26": "EZ",
"27": "EZ",
"28": "EZ"
}
}

View File

@ -1,7 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"14": "F"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 KiB

View File

@ -1,38 +0,0 @@
{
"username": "testuser1",
"fullname": "Pia Paulina",
"password": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"workhours": {
"2025-05-13": {
"1": "4",
"2": "5",
"3": "6",
"4": "7",
"5": "8",
"6": "0",
"7": "0",
"vacation": "30"
},
"2025-04-22": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"vacation": "30"
},
"2025-03-01": {
"1": "4",
"2": "8",
"3": "8",
"4": "8",
"5": "8",
"6": 0,
"7": 0,
"vacation": "30"
}
},
"api_key": "0d8b1baf9219fe568c0f0ea7c4244927e1c901da"
}

View File

@ -1,27 +0,0 @@
{
"username": "testuser",
"fullname": "Pia Paulina",
"password": "123456789",
"workhours": {
"2024-04-01": {
"1": "8",
"2": "8",
"3": "8",
"4": "4",
"5": "5",
"6": "4",
"7": "0",
"vacation": "35"
},
"2024-04-07": {
"1": "8",
"2": "7",
"3": "12",
"4": "0",
"5": "0",
"6": "0",
"7": "0",
"vacation": "28"
}
}
}

View File

@ -1 +0,0 @@
{}

View File

@ -1,13 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"23": "U",
"24": "U",
"27": "U",
"28": "U",
"29": "U",
"30": "U",
"31": "U"
}
}

View File

@ -1,7 +0,0 @@
{
"archived": 0,
"total_hours": 0,
"absence": {
"1": "U"
}
}

View File

@ -1,14 +0,0 @@
1744989835
1744989837
1744989913
1744989917
1744991287
1744991291
1744991475
1744991478
1744991773
1744991776
1744991910
1744991912
1745411021
1745411025

View File

@ -1,6 +0,0 @@
{
"archived": 1,
"total_hours": 0,
"absence": {},
"overtime": -406441
}

View File

@ -1,4 +0,0 @@
1747387168
1747387171
1747388261
1747388617

View File

@ -1,20 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"9": "U",
"10": "U",
"12": "U",
"13": "U",
"14": "U",
"15": "U",
"16": "U",
"17": "U",
"18": "U",
"26": "U",
"27": "U",
"28": "U",
"29": "U",
"30": "U"
}
}

View File

@ -1,21 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"1": "U",
"2": "U",
"3": "U",
"4": "U",
"5": "U",
"6": "U",
"7": "U",
"8": "U",
"9": "U",
"10": "U",
"11": "U",
"12": "U",
"13": "U",
"14": "U",
"15": "U"
}
}

View File

@ -1,10 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"18": "U",
"19": "U",
"20": "U",
"21": "U"
}
}

View File

@ -1,19 +0,0 @@
{
"archived": 0,
"overtime": 0,
"absence": {
"2": "U",
"3": "U",
"4": "U",
"5": "U",
"6": "U",
"7": "U",
"8": "U",
"9": "U",
"10": "U",
"11": "U",
"12": "U",
"13": "U",
"14": "U"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 KiB

View File

@ -1,18 +0,0 @@
{
"username": "testuser10",
"fullname": "Diego Dieci",
"password": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"workhours": {
"2024-04-01": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"vacation": "30"
}
},
"api_key": "807518cd5bd85c1e4855d340f9b77b23eac21b7f"
}

View File

@ -1,6 +0,0 @@
{
"0": [
"2025-06-09",
"2025-06-19"
]
}

View File

@ -1,18 +0,0 @@
{
"username": "testuser2",
"fullname": "testuser2",
"password": "37a8eec1ce19687d132fe29051dca629d164e2c4958ba141d5f4133a33f0688f",
"api_key": "84799b1cbb92514f047bc2186cb4b4aafb352d69",
"workhours": {
"2025-05-27": {
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"vacation": 0
}
}
}

View File

@ -1,4 +0,0 @@
{
"archived": 0,
"total_hours": 0
}

View File

@ -1,12 +0,0 @@
1744989835
1744989837
1744989913
1744989917
1744991287
1744991291
1744991475
1744991478
1744991773
1744991776
1744991910
1744991912

View File

@ -1,4 +0,0 @@
{
"archived": 0,
"total_hours": 0
}

View File

@ -1,6 +0,0 @@
1746385111
1746385118
1747388255
1747388619
1747391536
1747391567

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,18 +0,0 @@
{
"username": "testuser3",
"fullname": "Karl Klammer",
"password": "123456789",
"api_key": "0219f98ec471ea4e2ac6bd6c14b96051aae5209b",
"workhours": {
"2024-04-01": {
"1": "4",
"2": "4",
"3": "4",
"4": "8",
"5": "8",
"6": "0",
"7": "0",
"vacation": "30"
}
}
}