im querying my mysql database for user coordinates and feeding the output to a function. i intend to get map view from this user_location.
here is part of the code:
def map_view():
u = conn.execute("select provider_point from providers where username = %s"% "'"+session["current_user"]+"'")
user = u.fetchone()
print(user)
#gives ('-1.1477195,37.0630088',)
#converting to []
start_coords = "["+(', '.join(user))+"]".replace("'","")
print(start_coords)
#gives which is what i want
[-1.1477195,37.0630088]
this gives me what i want but when i pass it to folium maps it recieves it as '[-1.1477195,37.0630088]' how do i get rid of the quotes(') ?