36b485f90af941bc26d1ce8f344521c08dc85c80
[utils.git] / src / budget_sync / main.py
1 from bugzilla import Bugzilla
2 import logging
3 from budget_sync.util import all_bugs
4 from budget_sync.budget_graph import BudgetGraph
5
6
7 BUGZILLA_URL = "https://bugs.libre-soc.org"
8
9
10 def main():
11 logging.info("Using Bugzilla instance at %s", BUGZILLA_URL)
12 bz = Bugzilla(BUGZILLA_URL)
13 logging.debug("Connected to Bugzilla")
14 print(bz.getbug(269).__dict__)
15 print(bz.getbug(1).__dict__)
16 return
17 budget_graph = BudgetGraph(all_bugs(bz))
18 print(budget_graph)
19
20
21 if __name__ == "__main__":
22 main()