bernhard@17: #!/usr/bin/env python3 bernhard@17: """Connect to roundup-tracker and save status to db for example demo1. bernhard@17: bernhard@17: Run periodically as often as you want data points to be saved. bernhard@17: demo1 only tracks issues with a priority. bernhard@17: """ bernhard@17: from collect_issues import save_stats_in_db bernhard@17: import roundup_content_data as rcd bernhard@17: bernhard@17: BASE_URL_DEMO = "http://localhost:8917/demo/" bernhard@17: SEARCH_URL_DEMO = "issue?@action=export_csv&@columns=title,priority&@filter=status&@pagesize=50&@startwith=0&status=-1,1,2,3,4,5,6,7" bernhard@17: bernhard@17: LOGIN_PARAMETERS_DEMO = ( bernhard@17: ("__login_name", "demo"), bernhard@17: ("__login_password", "demo"), bernhard@17: ("@action", "Login"), bernhard@17: ) bernhard@17: bernhard@17: save_stats_in_db(LOGIN_PARAMETERS_DEMO, BASE_URL_DEMO, "./demo1.py", bernhard@17: rcd.COLUMNS, rcd.CREATE_DB, rcd.INSERT_NEW, SEARCH_URL_DEMO)