We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ecc395 commit 3222697Copy full SHA for 3222697
pcweb/github.py
@@ -6,10 +6,18 @@
6
import reflex as rx
7
import contextlib
8
9
-REFLEX_STAR_COUNT = 0
10
GITHUB_API_URL = "https://api.github.com/repos/reflex-dev/reflex"
11
12
+def get_stars_on_build():
13
+ """Fetch the stars when app is built as default"""
14
+ data = httpx.get(GITHUB_API_URL).json()
15
+ return int(data["stargazers_count"])
16
+
17
18
+REFLEX_STAR_COUNT = get_stars_on_build()
19
20
21
async def fetch_count():
22
"""Fetch the stars count of the reflex repository."""
23
try:
0 commit comments