Skip to content

Commit

Permalink
host stats remove card
Browse files Browse the repository at this point in the history
  • Loading branch information
daveajones committed Feb 23, 2023
1 parent 40e5050 commit 5e9c787
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions ui/src/pages/Stats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ export default class Card extends React.Component<IProps> {
}
}

async getNewFeedStats() {
let response = await fetch('/api/newfeedstats', {
credentials: 'same-origin',
method: 'GET',
})
return await response.json()
}
// async getNewFeedStats() {
// let response = await fetch('/api/newfeedstats', {
// credentials: 'same-origin',
// method: 'GET',
// })
// return await response.json()
// }

async getStats() {
let response = await fetch('/api/stats', {
Expand All @@ -86,20 +86,6 @@ export default class Card extends React.Component<IProps> {
last60={overallStats.feedCount60days}
last90={overallStats.feedCount90days}
/>
<div className="info-section">&nbsp;</div>
<NewFeedStatsCard
total={stats.totalCount}
top1name={stats.top1name}
top1count={stats.top1count}
top2name={stats.top2name}
top2count={stats.top2count}
top3name={stats.top3name}
top3count={stats.top3count}
top4name={stats.top4name}
top4count={stats.top4count}
top5name={stats.top5name}
top5count={stats.top5count}
/>
</div>
)
}
Expand Down

0 comments on commit 5e9c787

Please sign in to comment.