Skip to content

Commit

Permalink
Redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mouredev committed Feb 9, 2024
1 parent 6fefdc0 commit 785f7b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions link_bio/link_bio/api/api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import link_bio.constants as const
from .TwitchAPI import TwitchAPI
from .SupabaseAPI import SupabaseAPI
# from .SupabaseAPI import SupabaseAPI

TWITCH_API = TwitchAPI()
SUPABASE_API = SupabaseAPI()
# SUPABASE_API = SupabaseAPI()


async def repo() -> str:
Expand All @@ -14,5 +14,5 @@ async def live(user: str) -> dict:
return TWITCH_API.live(user)


async def featured() -> list:
return SUPABASE_API.featured()
# async def featured() -> list:
# return SUPABASE_API.featured()
2 changes: 1 addition & 1 deletion link_bio/link_bio/pages/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
description=utils.index_description,
image=utils.preview,
meta=utils.index_meta,
on_load=[PageState.check_live, PageState.featured_links]
on_load=[PageState.check_live]
)
def index() -> rx.Component:
return rx.box(
Expand Down
6 changes: 3 additions & 3 deletions link_bio/link_bio/state/PageState.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reflex as rx
from link_bio.api.api import live, featured
from link_bio.api.api import live

USER = "mouredev"

Expand All @@ -15,5 +15,5 @@ async def check_live(self):
self.is_live = live_data["live"]
self.live_title = live_data["title"]

async def featured_links(self):
self.featured_info = await featured()
# async def featured_links(self):
# self.featured_info = await featured()

0 comments on commit 785f7b7

Please sign in to comment.