Skip to content

Commit

Permalink
Documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
P-T-I committed Apr 22, 2024
1 parent 96bd636 commit 06e8a77
Show file tree
Hide file tree
Showing 7 changed files with 487 additions and 86 deletions.
2 changes: 1 addition & 1 deletion CveXplore/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Configuration(object):
Class holding the configuration
"""

if json.loads(os.getenv("DOC_BUILD"))["DOC_BUILD"] == "YES":
if json.loads(os.getenv("DOC_BUILD", '{"DOC_BUILD": "NO"}'))["DOC_BUILD"] == "YES":
USER_HOME_DIR = "${HOME}/.cvexplore"
else:
USER_HOME_DIR = os.path.expanduser("~/.cvexplore")
Expand Down
7 changes: 4 additions & 3 deletions CveXplore/common/data_source_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from pymongo.collection import Collection

from CveXplore.database.connection.base.db_connection_base import DatabaseConnectionBase
from CveXplore.database.connection.database_connection import DatabaseConnection
from CveXplore.objects.cvexplore_object import CveXploreObject

Expand All @@ -28,7 +29,7 @@ def __init__(self, collection: str):
self._collection = collection

@property
def datasource_connection(self) -> DatabaseConnection.database_connection:
def datasource_connection(self) -> DatabaseConnectionBase:
"""
Property to access the datasource connection
Expand Down Expand Up @@ -94,8 +95,8 @@ def to_dict(self, *print_keys: str) -> dict:

return full_dict

def __eq__(self, other):
def __eq__(self, other: DatabaseConnection) -> bool:
return self.__dict__ == other.__dict__

def __ne__(self, other):
def __ne__(self, other: DatabaseConnection) -> bool:
return self.__dict__ != other.__dict__
Loading

0 comments on commit 06e8a77

Please sign in to comment.