Skip to content

Commit ddbc142

Browse files
Boyuan DengBoyuan Deng
authored andcommitted
codebase cleanup
1 parent 2725219 commit ddbc142

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

examples/boyuan_component_get_history_test.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
class BoyuanComponent(Component):
55
def __init__(
66
self,
7-
name = "",
8-
owner = "",
9-
description = "",
10-
beforeTests = [],
11-
afterTests = [],
12-
tags = [],
7+
name="",
8+
owner="",
9+
description="",
10+
beforeTests=[],
11+
afterTests=[],
12+
tags=[],
1313
):
1414
super().__init__(name, owner, description, beforeTests, afterTests, tags)
1515

1616
# overwrite afterRun
1717
def afterRun(self):
18-
histories = self._history.get_runs_by_index(0,1)
18+
histories = self._history.get_runs_by_index(0, 1)
1919
history_length = len(self._history)
2020

2121

mltrace/db/store.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,7 @@ def get_component_runs_by_index(
562562
return history
563563

564564
def get_component_runs_count(self, component_name: str):
565-
return self.session.query(ComponentRun).count()
566-
565+
return self.session.query(ComponentRun).count()
567566

568567
def get_components(self, tag: str = "", owner: str = ""):
569568
"""Returns a list of all the components associated with the specified

0 commit comments

Comments
 (0)