Skip to content

Commit 43e47de

Browse files
Test/trend (#219)
* fix(trend): change trend to be last 24 hrs just for testing purpose * fix(trend): change counter and add logging for debugging
1 parent 5722def commit 43e47de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/trend/trend.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ export class TrendService {
293293
const last_seen = await this.redis_service.zscore('candidates:active', hashtag);
294294
const last_seen_time = last_seen ? Number.parseInt(last_seen) : null;
295295
const recency_score = this.calculateRecencyScore(last_seen_time);
296+
console.log(
297+
`Hashtag: ${hashtag}, Volume: ${volume_score.toFixed(2)}, Acceleration: ${acceleration_score.toFixed(2)}, Recency: ${recency_score.toFixed(2)}`
298+
);
296299

297300
const final_score = this.calculateFinalScore(
298301
volume_score,

0 commit comments

Comments
 (0)