added input

This commit is contained in:
Boyan 2024-06-04 16:26:08 +02:00
parent ff90021f38
commit d58be164f8
Signed by: boyan_k
GPG Key ID: 620E9CC7A57EAAA5

View File

@ -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")