mirror of
https://github.com/WGDashboard/WGDashboard-PRW.git
synced 2026-08-04 06:52:58 +00:00
chore: try to make a working base
This commit is contained in:
+11
-4
@@ -2,13 +2,20 @@
|
||||
|
||||
import logging as log
|
||||
|
||||
import json
|
||||
|
||||
from modules.config.reader import reader
|
||||
from modules.database.database import database
|
||||
from modules.utilities.utilities import utilities as util
|
||||
|
||||
if __name__ == '__main__':
|
||||
log.basicConfig(level=log.DEBUG)
|
||||
|
||||
config_contents = reader.read_config()
|
||||
log.info(config_contents)
|
||||
input()
|
||||
config_contents = reader.refresh_config(config_contents)
|
||||
log.info(config_contents)
|
||||
|
||||
found, config_database = util.filter_config(config_contents, 'DATABASE')
|
||||
if not found:
|
||||
exit(1)
|
||||
|
||||
ok, engine, session = database.create_session(config_database)
|
||||
ok = database.verify_contents(engine)
|
||||
Reference in New Issue
Block a user