Closed kgoo124 closed 4 years ago
To access this list of queries in the Nimbus Validator, we have to call response.data.data
since the response returns an object looking like this
{
data: {
data: [] // list of phrases
}
}
Is there any way to just return the list of phrases and avoid the data.data
call?
Also, once merged can we get the actual server address to use in Nimbus Validator?
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities (and 0 Security Hotspots to review)
4 Code Smells
No Coverage information
0.0% Duplication
What's New?
Able to get unvalidated QA pairs from the db which will be used in Nimbus Validator Created a route and SQL Alchemy function to parse and format the data returned by the query
Here is the current response of the API call:
GET /data/get_phrase/1 GET /data/get_phrase/4
Fixes #177
Type of change (pick-one)
How Has This Been Tested?
Checklist (check-all-before-merge)
formatting help:
- [x]
means "checked' and- [ ]
means "unchecked"[ ] I documented my code according to the Google Python Style Guide
[ ] I ran
./build_docs.sh
and the docs look fine[ ] I ran
./type_check.sh
and got no errors[ ] I ran
./format.sh
because it automatically cleans my code for me 😄[ ] I ran
./lint.sh
to check for what "format" missed[ ] I added my tests to the
/tests
directory[ ] I ran
./run_tests.sh
and all the tests pass