Skip to content

Commit 8e3f9e5

Browse files
committed
change statistics table keys
1 parent 47789ea commit 8e3f9e5

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/client/src/pages/Admin.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,9 @@ class Admin extends Component {
175175
: _.isEmpty(this.state.statistics) !== true &&
176176
<TableContainer component={Paper} className="statisticsData">
177177
<Table aria-label="simple table" className={classes.table}>
178-
<TableHead>
179-
<TableRow>
180-
<TableCell>Sources Matched</TableCell>
181-
<TableCell align="left">Number of Matches</TableCell>
182-
</TableRow>
183-
</TableHead>
184178
<TableBody>
185-
{this.state.statistics.map((row) => (
186-
<TableRow key={row[0]}>
179+
{this.state.statistics.map((row, index) => (
180+
<TableRow key={index}>
187181
<TableCell align="left" component="th" scope="row">
188182
{row[0]}
189183
</TableCell>

src/server/api/admin_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def get_statistics():
105105

106106
# Need to iterate over the results proxy
107107
results = {
108-
"matches count": [dict(row) for row in matches_count_query_result][0]["count"],
109-
"total contacts count": [dict(row) for row in total_count_query_result][0]["count"]
108+
"Distinct Matching Groups Count": [dict(row) for row in matches_count_query_result][0]["count"],
109+
"Total Contacts Count": [dict(row) for row in total_count_query_result][0]["count"]
110110
}
111111

112112
return results

0 commit comments

Comments
 (0)