Skip to content

Commit

Permalink
Fix homepage processor
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed May 23, 2024
1 parent a707c7c commit 11cb642
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions operators/presets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def operator(*args):
enumerate_rows(),
DF.set_primary_key(['id']),
DF.select_fields(['id', 'group', 'title', 'situation_id', 'response_id', 'score']),
DF.set_type('situation_id', type='string', transform=lambda v: v[0] if v else None),
DF.set_type('response_id', type='string', transform=lambda v: v[0] if v else None),
dump_to_es_and_delete(
indexes=dict(srm__homepage=[dict(resource_name='homepage')]),
),
Expand Down

0 comments on commit 11cb642

Please sign in to comment.