Skip to content

Commit

Permalink
frontend: don't index unlisted and temporary projects
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Apr 22, 2024
1 parent 19389b3 commit b6c6003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/coprs_frontend/commands/update_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def update_indexes():
writer.schema = CoprWhoosheer.schema

app.logger.info("Building cache")
coprs = coprs_logic.CoprsLogic.get_all().all()
coprs = coprs_logic.CoprsLogic.get_multiple(
include_unlisted_on_hp=False).all()
for i, copr in enumerate(coprs):
if i%1000 == 0:
app.logger.info("Building cache [%s/%s] - %s",
Expand Down

0 comments on commit b6c6003

Please sign in to comment.