userId was being fetched a total of 5 times if feedback.py was called without any parameters ie. if all the statistics were queried.
I have extracted out the fetching of userId to a separate function and have started passing userId to the various functions instead of them querying the userId individually.
This should save us some time while trying to query all the statistics for a particular user.
Fixes #8.
userId
was being fetched a total of 5 times iffeedback.py
was called without any parameters ie. if all the statistics were queried.I have extracted out the fetching of
userId
to a separate function and have started passinguserId
to the various functions instead of them querying theuserId
individually.This should save us some time while trying to query all the statistics for a particular user.