kenken999 commited on
Commit
f416a92
1 Parent(s): 164aab4
controllers/gra_04_database/{PostGres.py → rides.py} RENAMED
@@ -72,6 +72,16 @@ def delete_ride(ride_id: int):
72
  cur.close()
73
  conn.close()
74
 
 
 
 
 
 
 
 
 
 
 
75
  #def crud_interface():
76
  with gr.Blocks() as gradio_interface:
77
  with gr.Row():
 
72
  cur.close()
73
  conn.close()
74
 
75
+ def test_set_lide(input="test",foldername="test"):
76
+ ride = Ride(
77
+ rideable_type="rideable_type",
78
+ start_station_name=input,
79
+ end_station_name=foldername,
80
+ )
81
+ create_ride(ride)
82
+ return [[r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]] for r in read_rides()]
83
+
84
+
85
  #def crud_interface():
86
  with gr.Blocks() as gradio_interface:
87
  with gr.Row():