Temporary fix for empty event config JSON
This commit is contained in:
		
							parent
							
								
									6f1e8ae9b2
								
							
						
					
					
						commit
						026a0d28df
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -8,8 +8,8 @@ def notification(notification_row): | |||
|   """ Converts the given notification row into a notification tuple. """ | ||||
|   return Notification(uuid=notification_row.uuid, event_name=notification_row.event.name, | ||||
|                       method_name=notification_row.method.name, | ||||
|                       event_config_dict=json.loads(notification_row.event_config_json), | ||||
|                       method_config_dict=json.loads(notification_row.config_json), | ||||
|                       event_config_dict=json.loads(notification_row.event_config_json or {}), | ||||
|                       method_config_dict=json.loads(notification_row.config_json or {}), | ||||
|                       repository=Repository(notification_row.repository.namespace_user.username, | ||||
|                                             notification_row.repository.name)) | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue