Closed dolsysmith closed 3 years ago
Refactor of stats.py to use complex SQL query in lieu of multiple simple queries in order to produce correct stats for source datasets.
stats.py
Test with python -m unittest.
python -m unittest
Looks good, numbers are accurate, now. Tested the scenario for off-campus users by removing the VPN IP range from the IP_RANGES variable in .env. All the tests pass. Go ahead and squash and merge.
Refactor of
stats.py
to use complex SQL query in lieu of multiple simple queries in order to produce correct stats for source datasets.Test with
python -m unittest
.