def setup_ip_addr(self): """ Download and populate the IP to country database with static downloaded file. """ ip = DownloadIP('ip_loc/test_files/IpToCountry.csv.zip') ip.run()
def daily_cron(): ip = DownloadIP() ip.run() user_monitor = MonitorUsers([COUNTRY_FLAG, TOR_FLAG]) user_monitor.run()