Skip to content

Commit

Permalink
minor init change
Browse files Browse the repository at this point in the history
  • Loading branch information
P-T-I committed Jan 24, 2024
1 parent d8c2601 commit a0f43a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CveXplore/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.20.dev23
0.3.21
22 changes: 11 additions & 11 deletions CveXplore/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,18 @@ def __init__(self, **kwargs):
"api_path": "api",
}

setattr(
self.config,
"DATASOURCE_CONNECTION_DETAILS",
self.datasource_connection_details,
)
setattr(
self.config,
"DATASOURCE_CONNECTION_DETAILS",
self.datasource_connection_details,
)

self.datasource = DatabaseConnection(
database_type=self.datasource_type,
database_init_parameters=self.datasource_connection_details,
).database_connection
if self.datasource_type != "api":
self.database = MainUpdater(datasource=self.datasource)
self.datasource = DatabaseConnection(
database_type=self.datasource_type,
database_init_parameters=self.datasource_connection_details,
).database_connection
if self.datasource_type != "api":
self.database = MainUpdater(datasource=self.datasource)

self._database_mapping = database_mapping

Expand Down

0 comments on commit a0f43a0

Please sign in to comment.