increase language limit #210

This commit is contained in:
rimu 2024-06-21 16:21:30 +08:00
parent f85491218c
commit 6461cf88cf

View file

@ -1063,7 +1063,7 @@ def languages_for_form():
) AS subquery ) AS subquery
GROUP BY language_id GROUP BY language_id
ORDER BY MAX(posted_at) DESC ORDER BY MAX(posted_at) DESC
LIMIT 4"""), LIMIT 10"""),
{'user_id': current_user.id}).scalars() {'user_id': current_user.id}).scalars()
for language in Language.query.filter(Language.id.in_(recently_used_post_languages)).all(): for language in Language.query.filter(Language.id.in_(recently_used_post_languages)).all():
result.append((language.id, language.name)) result.append((language.id, language.name))