Skip to content

Commit

Permalink
Se desactiva el servicio de ConfigCat
Browse files Browse the repository at this point in the history
  • Loading branch information
mouredev committed Feb 23, 2024
1 parent a6b1a08 commit ed32906
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions link_bio/link_bio/api/ConfigCatAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self) -> None:
if self.CONFIGCAT_SDK_KEY != None:
self.configcat = configcatclient.get(self.CONFIGCAT_SDK_KEY)

def schedule(self) -> dict:
response = self.configcat.get_value("live_schedule", "")
print(response)
# response_json = json.loads(str(response))
return dict()
# def schedule(self) -> dict:
# response = self.configcat.get_value("live_schedule", "")
# print(response)
# # response_json = json.loads(str(response))
# return dict()
4 changes: 2 additions & 2 deletions link_bio/link_bio/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ async def featured() -> list[Featured]:
return SUPABASE_API.featured()


async def schedule() -> dict:
return CONFIGCAT_API.schedule()
# async def schedule() -> dict:
# return CONFIGCAT_API.schedule()
4 changes: 2 additions & 2 deletions link_bio/link_bio/link_bio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import link_bio.styles.styles as styles
from link_bio.pages.index import index
from link_bio.pages.courses import courses
from link_bio.api.api import repo, live, featured, schedule
from link_bio.api.api import repo, live, featured # , schedule

app = rx.App(
stylesheets=styles.STYLESHEETS,
Expand All @@ -25,4 +25,4 @@
app.api.add_api_route("/repo", repo)
app.api.add_api_route("/live/{user}", live)
app.api.add_api_route("/featured", featured)
app.api.add_api_route("/schedule", schedule)
# app.api.add_api_route("/schedule", schedule)
6 changes: 3 additions & 3 deletions link_bio/link_bio/state/PageState.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import reflex as rx
import link_bio.utils as utils
from link_bio.api.api import live, featured, schedule
from link_bio.api.api import live, featured # , schedule
from link_bio.model.Featured import Featured
from link_bio.model.Live import Live

Expand All @@ -15,8 +15,8 @@ class PageState(rx.State):

async def check_live(self):
self.live_status = await live(USER)
if not self.live_status.live:
self.next_live = utils.next_date(await schedule())
# if not self.live_status.live:
# self.next_live = utils.next_date(await schedule())

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

0 comments on commit ed32906

Please sign in to comment.