Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
chopicalqui committed Aug 29, 2021
1 parent 47d977a commit 013017f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kis/configs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def env_database(self) -> str:
def production_database(self) -> str:
result = self.env_database
if not result:
self.get_config_str("production", "database")
result = self.get_config_str("production", "database")
return result

@property
Expand Down
5 changes: 3 additions & 2 deletions kis/database/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -3169,8 +3169,9 @@ def run(self) -> None:
This method runs the desired report
:return:
"""
if self._args.module in self._generators:
self._generators[self._args.module](self._args, self._session, self._workspaces).export()
module = self._args.module.replace("-", "")
if module in self._generators:
self._generators[module](self._args, self._session, self._workspaces).export()
elif self._args.module == "excel":
if os.path.exists(self._args.FILE):
os.unlink(self._args.FILE)
Expand Down

0 comments on commit 013017f

Please sign in to comment.