Skip to content

Commit

Permalink
Adiciona indexação dos itens de brasil.gov.agenda.
Browse files Browse the repository at this point in the history
Dessa forma, itens passam a aparecer no portlet definido por collective.portlet.calendar. Ver #82 (comment) para mais detalhes.
  • Loading branch information
idgserpro authored Jun 12, 2018
1 parent 5390292 commit b8035f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/brasil/gov/agenda/upgrades/v4004/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ def fix_subjects_on_agendas(setup_tool):
logger.info('{0} items will be analyzed'.format(len(results)))
n = 0
for obj in get_valid_objects(results):
if obj.subjects is not None:
continue
if obj.subjects is None:
obj.subjects = ()

obj.subjects = ()
catalog.catalog_object(obj)
n += 1
if n % 1000 == 0 and not test:
transaction.commit()
Expand Down

0 comments on commit b8035f5

Please sign in to comment.