mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-10-31 01:57:54 +00:00 
			
		
		
		
	Merge "Minor refactor in disjunctions_from_json"
This commit is contained in:
		| @@ -513,11 +513,7 @@ def disjunctions_from_json(json_data): | |||||||
|         of requested disjunctions for this set of requests |         of requested disjunctions for this set of requests | ||||||
|     """ |     """ | ||||||
|     disjunctions_list = [] |     disjunctions_list = [] | ||||||
|     try: |     if 'synchronization' in json_data: | ||||||
|         temp_test = json_data['synchronization'] |  | ||||||
|     except KeyError: |  | ||||||
|         temp_test = [] |  | ||||||
|     if temp_test: |  | ||||||
|         for snc in json_data['synchronization']: |         for snc in json_data['synchronization']: | ||||||
|             params = {} |             params = {} | ||||||
|             params['disjunction_id'] = snc['synchronization-id'] |             params['disjunction_id'] = snc['synchronization-id'] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jan Kundrát
					Jan Kundrát