This repository was archived by the owner on May 17, 2024. It is now read-only.
update logic of args object in config.py #268
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The problem was that I was receiving this error:
I realized that the
argsobject was an empty dict ({}) because it was created by trying topopthe value of the"1"key from therun_argsdictionary, which is the first character in the string"12", which is being looped through. Therun_argsdictionary doesn't have a key of"1"(or"2"), which is why we get{}.I guessed what was supposed to be happening: as we loop through the string
"12", we're supposed to create new dictionaries,args, with keys ofdatabase1,table1, andthreads1(and the same for2); and then strip the1or2from the keys so that the rest of the code works.With these changes, and some logging which I hope will demonstrate clearly what's going on, it works like this:
I don't necessarily expect this code change (in my initial commit) to be the solution, but it has allowed me to successfully run diff between two tables in the same postgres db locally.