added input
This commit is contained in:
parent
ff90021f38
commit
d58be164f8
@ -55,7 +55,8 @@ def save_file(json:list[dict], filename:str) -> None:
|
|||||||
raise IndexError("Error saving file") from exc
|
raise IndexError("Error saving file") from exc
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
file = get_file(10)
|
size = int(input("Entries: "))
|
||||||
|
file = get_file(size)
|
||||||
|
|
||||||
save_file(file, "out.json")
|
save_file(file, "out.json")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user