File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -299,7 +299,6 @@ async def get_things(
299299 user : viewer_dependency ,
300300 session : session_dependency ,
301301 # thing_id: int = None,
302- thing_type : str = None ,
303302 within : str = None ,
304303 query : str = None ,
305304 sort : str = None ,
@@ -320,7 +319,6 @@ async def get_things(
320319 session ,
321320 sort ,
322321 within = within ,
323- thing_type = thing_type ,
324322 )
325323
326324
Original file line number Diff line number Diff line change 3737 Thing ,
3838 LocationThingAssociation ,
3939 Sensor ,
40- LexiconTerm ,
4140 Group ,
4241 GroupThingAssociation ,
4342)
4443from db .engine import session_ctx
4544
4645with session_ctx () as session :
47- if session .query (LexiconTerm ).count () == 0 :
48- erase_and_rebuild_db (session )
46+ # if session.query(LexiconTerm).count() == 0:
47+ erase_and_rebuild_db (session )
4948
50- init_lexicon ()
51- init_parameter ()
49+ init_lexicon ()
50+ init_parameter ()
5251
5352
5453def add_location (lid ):
Original file line number Diff line number Diff line change 1919
2020@when ('the user requests things with type "water well"' )
2121def step_impl (context ):
22- context .response = context .client .get ("/thing" , params = { "thing_type" : " water well"} )
22+ context .response = context .client .get ("/thing/ water- well" )
2323
2424
2525@then ("the response should include at least one thing" )
@@ -37,7 +37,7 @@ def step_impl(context):
3737
3838@when ('the user requests things with type "spring"' )
3939def step_impl (context ):
40- context .response = context .client .get ("/thing" , params = { "thing_type" : " spring"} )
40+ context .response = context .client .get ("/thing/ spring" )
4141
4242
4343@then ('the response should only include things of type "spring"' )
You can’t perform that action at this time.
0 commit comments