mirror of https://github.com/dapr/docs.git
				
				
				
			Display state value instead of StateResponse object (#2046)
Signed-off-by: Jun Tian <tianjun.cpp@gmail.com> Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com> Signed-off-by: Antonio Robson de Paula <robson.p@sidi.org.br>
This commit is contained in:
		
							parent
							
								
									79213c142b
								
							
						
					
					
						commit
						eea015b833
					
				|  | @ -195,7 +195,7 @@ while True: | |||
|         #Using Dapr SDK to save and get state | ||||
|         client.save_state(DAPR_STORE_NAME, "order_1", str(orderId))  | ||||
|         result = client.get_state(DAPR_STORE_NAME, "order_1") | ||||
|         logging.info('Result after get: ' + str(result)) | ||||
|         logging.info('Result after get: ' + result.data.decode('utf-8')) | ||||
| ``` | ||||
| 
 | ||||
| Navigate to the directory containing the above code, then run the following command to launch a Dapr sidecar and run the application: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue