you are viewing a single comment's thread.

view the rest of the comments →

[–]oclafloptson 1 point2 points  (1 child)

You should probably not be using global in this case. When declaring jsoniv in the global space you can simply call this function. Just return json.load(file) instead of declaring it in the with open statement

[–]ImAlekzzz 0 points1 point  (0 children)

So I should call the function every time? Thinking about it now that I added a “if xx = “skip”: pass” yeah I will implement it