commit message from python script
This commit is contained in:
@@ -70,6 +70,25 @@ def lese_tabellen():
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user