Skip to content

Commit

Permalink
HDX-10238 update texts for change_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ccataalin committed Oct 16, 2024
1 parent c06cc6e commit 0a08bda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions processing/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def get_change_summary(event):
ev_type = event.get('event_type')
resource_name = event.get('resource_name','A resource')
if ev_type == EVENT_TYPE_RESOURCE_CREATED:
return f'{resource_name} was created'
return f'The resource/file "{resource_name}" was created'
if ev_type == EVENT_TYPE_RESOURCE_DELETED:
return f'{resource_name} was deleted'
return f'The resource/file "{resource_name}" was deleted'
if ev_type == EVENT_TYPE_RESOURCE_DATA_CHANGED:
return f'{resource_name} was updated'
return f'The resource/file "{resource_name}" was updated'
if ev_type == EVENT_TYPE_SPREADSHEET_SHEET_CHANGED or ev_type == EVENT_TYPE_SPREADSHEET_SHEET_CREATED or ev_type == EVENT_TYPE_SPREADSHEET_SHEET_DELETED:
return f'Resource structure was changed for {resource_name}'
return f'The resource/file structure was changed for "{resource_name}"'
return None

def do_nothing_for_ever():
Expand Down

0 comments on commit 0a08bda

Please sign in to comment.