Skip to content

Commit

Permalink
moved schemachecker to database module
Browse files Browse the repository at this point in the history
  • Loading branch information
P-T-I committed Oct 10, 2023
1 parent a3cdbc2 commit 29818ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CveXplore/database/maintenance/main_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ def __init__(self, datasource):
{"name": "schema", "updater": SchemaChecker},
]

self.schema_checker = SchemaChecker()

self.logger = logging.getLogger("MainUpdater")

def validate_schema(self):
return self.schema_checker.validate_schema()

def update(self, update_source: str | list = None):
"""
Method used for updating the database
Expand Down
2 changes: 1 addition & 1 deletion CveXplore/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def get_db_content_stats(self):
else:
return "Database info could not be retrieved"

return "Using api endpoint: {}".format(self.datasource.url)
return "Using api endpoint: {}".format(self.datasource.baseurl)

@property
def version(self):
Expand Down

0 comments on commit 29818ed

Please sign in to comment.