kenken999 commited on
Commit
84c27d0
1 Parent(s): 52b3069
Files changed (2) hide show
  1. models/ride.py +1 -1
  2. mysite/interpreter/process.py +1 -1
models/ride.py CHANGED
@@ -79,7 +79,7 @@ def delete_ride(ride_id: int):
79
  cur.close()
80
  conn.close()
81
 
82
- def test_set_lide(input="test",foldername="test"):
83
  ride = Ride(
84
  rideable_type="rideable_type",
85
  start_station_name=input,
 
79
  cur.close()
80
  conn.close()
81
 
82
+ def test_set_lide(input="test",url="test"):
83
  ride = Ride(
84
  rideable_type="rideable_type",
85
  start_station_name=input,
mysite/interpreter/process.py CHANGED
@@ -301,7 +301,7 @@ def process_file(fileobj, prompt, foldername,token=None):
301
  text=True,
302
  )
303
  stdout, stderr = proc.communicate(input="n\ny\ny\n")
304
-
305
  test_set_lide(prompt,url)
306
  return f"Processed url:{url}\nContent:\n{stdout}\n\nMake Command Output:\n{stdout}\n\nMake Command Error:\n{stderr}"
307
  except subprocess.CalledProcessError as e:
 
301
  text=True,
302
  )
303
  stdout, stderr = proc.communicate(input="n\ny\ny\n")
304
+ url = "test"
305
  test_set_lide(prompt,url)
306
  return f"Processed url:{url}\nContent:\n{stdout}\n\nMake Command Output:\n{stdout}\n\nMake Command Error:\n{stderr}"
307
  except subprocess.CalledProcessError as e: