disinfoRG / FbScraper

MIT License
3 stars 2 forks source link

centralize db queries #18

Closed andreawwenyi closed 4 years ago

andreawwenyi commented 4 years ago

currently, db-related executions and queries are spread in 3 python script: db.py, db_helper.py, db_manager.py, it is hard to manage and understand what each one does. Therefore, it'd be better if we can put all db queries into one file or a single directory, like what we do in NewsScraping -- all sql command in the queries directory, and manage sql execution using pugsql.

dieface commented 4 years ago

should be resolved in this commit ec61d0cbf1fc0d89ce7a95528903beb09775e391