Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmWebSA committed Jun 11, 2021
1 parent 74f147d commit a6d16c9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
35 changes: 35 additions & 0 deletions data/kontaktdaten1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"plz_impfzentren": [
"68163"
],
"codes": [
"XXXX-XXXX-XXXX"
],
"kontakt": {
"anrede": "Bitte Wählen",
"vorname": "xxxxxxxxxx",
"nachname": "xxxxxxxxxxx",
"strasse": "77777777777777",
"hausnummer": "7",
"plz": "77777",
"ort": "7",
"phone": "+49555",
"notificationChannel": "email",
"notificationReceiver": "asda@asd.de"
},
"zeitrahmen": {
"von_datum": "11.6.2021",
"von_uhrzeit": "0:1",
"bis_uhrzeit": "23:59",
"wochentage": [
"Fr",
"Mi",
"So",
"Di",
"Mo",
"Do",
"Sa"
],
"einhalten_bei": "beide"
}
}
8 changes: 4 additions & 4 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@ def __get_kontaktdaten(self, modus: Modus) -> dict:
Returns:
dict: Kontakdaten
"""
bDialogAborted = False
dialog_agebrochen = False
if not os.path.isfile(self.pfad_kontaktdaten):
bDialogAborted = not self.kontaktdaten_erstellen(modus)
dialog_agebrochen = not self.kontaktdaten_erstellen(modus)

kontaktdaten = kontak_tools.get_kontaktdaten(self.pfad_kontaktdaten)

# we need to check data if we got no dict or the dialog was aborted
if bDialogAborted is True and not kontaktdaten:
# prüfen ob der Dialog abgebrochen und keine Kontaktdaten vorhanden sind (Bsp. öffnen von Daten)
if dialog_agebrochen is True and not kontaktdaten:
return {}

kontak_tools.check_kontaktdaten(kontaktdaten, modus)
Expand Down

0 comments on commit a6d16c9

Please sign in to comment.