gwu-libraries / TweetSets

Service for creating Twitter datasets for research and archiving.
MIT License
25 stars 2 forks source link

T49 local user stats #61

Closed dolsysmith closed 3 years ago

dolsysmith commented 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.

Test with python -m unittest.

lwrubel commented 3 years ago

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.