From 050c6e13aed92dc2e6deb2567eb3fc21ac1eb7ed Mon Sep 17 00:00:00 2001 From: Hussain Omer Date: Fri, 20 Dec 2024 21:58:59 -0500 Subject: [PATCH] Fixes #176: Analytics Dashboard --- .github/workflows/getUserCount.js | 3 +-- README.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/getUserCount.js b/.github/workflows/getUserCount.js index fffd55f..7415cff 100644 --- a/.github/workflows/getUserCount.js +++ b/.github/workflows/getUserCount.js @@ -38,8 +38,7 @@ async function getUserCount() { // Read file let readme = await fs.readFile(readmePath, 'utf8'); - // Update regex and replacement - const statsRegex = /!\[.*?\]\(https:\/\/img\.shields\.io\/badge\/.*?\)(?:\s*!\[.*?\]\(https:\/\/img\.shields\.io\/badge\/.*?\))?/; + const statsRegex = /!\[Current Authorized Users\].*?\) !\[Total User XP\].*?\)/; const newBadges = `![Current Authorized Users](https://img.shields.io/badge/Current%20Authorized%20Users-${userCount}-blue?logo=mongodb&logoColor=white) ` + `![Total User XP](https://img.shields.io/badge/Total%20User%20XP-${totalXP.toLocaleString()}-red?logo=zap&logoColor=white)`; diff --git a/README.md b/README.md index 476842d..9935ede 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # QuestLog -![Current Authorized Users](https://img.shields.io/badge/Current%20Authorized%20Users-204-blue?logo=mongodb&logoColor=white) ![Total User XP](https://img.shields.io/badge/Total%20User%20XP-309,896-red?logo=zap&logoColor=white) +![Current Authorized Users](https://img.shields.io/badge/Current%20Authorized%20Users-204-blue?logo=mongodb&logoColor=white) ![Total User XP](https://img.shields.io/badge/Total%20User%20XP-309,896-red?logo=zap&logoColor=white) ![Vercel Deploy](https://deploy-badge.vercel.app/vercel/smart-listapp) QuestLog is a AI-powered gamified productivity platform that turns your tasks and projects into achievement-driven experiences. Built with React and MongoDB, it enhances work management through XP points, levels, and badges while integrating seamlessly with different app integrations!