Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Light-Beacon committed Nov 25, 2024
1 parent 0cd8aa2 commit f982acb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Project/modules/APIs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import json
from typing import TYPE_CHECKING
from homepagebuilder.interfaces import page_class_handles, require
from homepagebuilder.core.page import CodeBasedPage
import json
if TYPE_CHECKING:
from homepagebuilder.core.types import Context


def get_args(context):
if setter := context.setter:
Expand Down Expand Up @@ -79,8 +83,8 @@ def get_content_type(self, setter):

@page_class_handles('apis/versions/latest-card')
class LatestVersionCardAPI(CodeBasedPage):
def generate(self, context):
def generate(self, context:'Context'):
setter = context.setter
card = self.project.base_library.get_card('VersionLatestListCard', False)
card = setter.decorate(card)
return self.project.template_manager.build(card)
return context.builder.template_manager.build(card)

0 comments on commit f982acb

Please sign in to comment.