commit message from python script

This commit is contained in:
2023-11-14 11:13:25 +01:00
parent 8b62cc0af0
commit caaf177826

View File

@@ -70,6 +70,25 @@ def lese_tabellen():
return cursor.fetchall() return cursor.fetchall()
def eingabe():
with sqlite3.connect(script_folder + "/startegie.db") as verbindung:
cursor = verbindung.cursor()
while True:
name = input("Name des Virus: ")
if not name:
break
ort = input("Ort: ")
vorfall = input("Vorfall: ")
sql = """Select * from viren WHERE name = '{name}';""".format(name=name)
cursor.execute(sql)
if cursor.fetchone():
speicher_aktion(name, ort, vorfall)
else:
print("Virus unbekannt !")
print("Eingabevorgang wurde beendet.")
def speicher_aktion():
pass