sbodash 1.32 KB
Newer Older
David Spencer's avatar
David Spencer committed
1
#!/usr/bin/python3 -B
David Spencer's avatar
David Spencer committed
2
#-----------------------------------------------------------------------
David Spencer's avatar
David Spencer committed
3
# SBo Dashboard
David Spencer's avatar
David Spencer committed
4 5 6 7
# sbodash
# Top level command
# No arguments, see 'sbodash.ini' for configuration
#
David Spencer's avatar
David Spencer committed
8 9
# David Spencer 2018-08-13
# See LICENCE for copyright information
David Spencer's avatar
David Spencer committed
10 11
# See README.md for external requirements
#-----------------------------------------------------------------------
David Spencer's avatar
David Spencer committed
12 13 14 15 16 17 18 19 20 21

import logging

import globals
import stats

#-----------------------------------------------------------------------

logging.info("Run started")

David Spencer's avatar
David Spencer committed
22
from slackbuilds import update_slackbuilds, read_slackbuilds_info
David Spencer's avatar
David Spencer committed
23
update_slackbuilds()
David Spencer's avatar
David Spencer committed
24
read_slackbuilds_info()
David Spencer's avatar
David Spencer committed
25 26 27 28 29

from maintainers import update_maintainers, render_maintainers
update_maintainers()
render_maintainers()

David Spencer's avatar
David Spencer committed
30
from problems import update_repology_problems, update_download_problems, update_security_problems, update_build_problems, render_problems
David Spencer's avatar
David Spencer committed
31 32 33 34 35 36
update_repology_problems()
update_download_problems()
update_security_problems()
update_build_problems()
render_problems()

David Spencer's avatar
David Spencer committed
37 38 39 40 41
from details import render_maintainer_detail, render_slackbuild_detail
render_maintainer_detail()
render_slackbuild_detail()

from support import render_support, render_indexes
David Spencer's avatar
David Spencer committed
42
render_support()
David Spencer's avatar
David Spencer committed
43
render_indexes()
David Spencer's avatar
David Spencer committed
44 45

stats.saveStatsHistory()
David Spencer's avatar
David Spencer committed
46 47 48 49

logging.info("Run finished")

#-----------------------------------------------------------------------