Skip to content

Commit

Permalink
restrict N of apps on the homepage to only 6 (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
akochari authored Dec 12, 2024
1 parent 5c72147 commit 19f42c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions portal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ class HomeView(View):
def get(self, request, app_id=0):
published_apps_updated_on, request = get_public_apps(
request, app_id=app_id, order_by="updated_on", order_reverse=True
)[
:6
] # we display only 6 apps
)
published_apps_updated_on = published_apps_updated_on[:6] # we display only 6 apps
# TODO: add selection of N apps into the function so that it is optimized in the future with more apps in the db

news_objects = NewsObject.objects.all().order_by("-created_on")
link_all_news = False
Expand Down

0 comments on commit 19f42c1

Please sign in to comment.