@@ -43,17 +43,17 @@ async def do_run() -> None:
43
43
print ("NamedMap size is :" , await named_map .size ())
44
44
45
45
print ("Retrieve the Hobbits between the ages of 17 and 21 ..." )
46
- async for entry in named_map .entries (Filters .between ("age" , 17 , 21 )):
46
+ async for entry in await named_map .entries (Filters .between ("age" , 17 , 21 )):
47
47
print ("Key :" , entry .key , ", Value :" , entry .value )
48
48
49
49
print ("Retrieve the Hobbits between the ages of 17 and 30 and live in Hobbiton ..." )
50
50
query_filter : Filter = Filters .between ("age" , 17 , 30 ).And (Filters .equals ("home" , "Hobbiton" ))
51
- async for entry in named_map .entries (query_filter ):
51
+ async for entry in await named_map .entries (query_filter ):
52
52
print ("Key :" , entry .key , ", Value :" , entry .value )
53
53
54
54
print ("Retrieve the Hobbits between the ages of 17 and 25 who live in Hobbiton or Frogmorton" )
55
55
query_filter = Filters .between ("age" , 17 , 25 ).And (Filters .is_in ("home" , {"Hobbiton" , "Frogmorton" }))
56
- async for entry in named_map .entries (query_filter ):
56
+ async for entry in await named_map .entries (query_filter ):
57
57
print ("Key :" , entry .key , ", Value :" , entry .value )
58
58
59
59
finally :
0 commit comments