fix
This commit is contained in:
parent
c8f16d8f9c
commit
7810382082
4
main.py
4
main.py
@ -8,7 +8,7 @@ dodaj - dodaj osobę
|
||||
list - listuj osoby
|
||||
list pesele
|
||||
pesel - sprawdź pesel osoby
|
||||
|
||||
zapis - zapisanie danych do pliku
|
||||
""")
|
||||
from pesel import PeselStorage
|
||||
storage = PeselStorage()
|
||||
@ -30,4 +30,4 @@ while True:
|
||||
def list_pesele():
|
||||
print("\n".join([": ".join([x.name, str(x.pesel)]) for x in storage.set]))
|
||||
|
||||
{"dodaj":enter, "list":_list, "pesel":get_pesel, "list pesele":list_pesele}[input("$ ")]()
|
||||
{"dodaj":enter, "list":_list, "pesel":get_pesel, "list pesele":list_pesele, "zapis":lambda: storage.dump("dump.json")}[input("$ ")]()
|
Loading…
Reference in New Issue
Block a user