Пример #1
0
 def handle(self, *args, **options):
     if options['activity']:
         activity = Activity.objects.get(iati_identifier=options['activity'])
         reindex_activity(activity)
     elif options['source']:
         reindex_activity_by_source(options['source'])
     else:
         reindex_all_activities()
 def handle(self, *args, **options):
     if options['activity']:
         activity = Activity.objects.get(
             iati_identifier=options['activity'])
         reindex_activity(activity)
     elif options['source']:
         reindex_activity_by_source(options['source'])
     else:
         reindex_all_activities()
Пример #3
0
def update_activity_search_index(activity):
    """
    Update the Postgres FTS indexes
    """
    activity_search_indexes.reindex_activity(activity)