Commit 68653985 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added get-links functionality to library.

parent a472af55
......@@ -353,3 +353,13 @@ def get_bottom( logged_in=False ):
return bottom
def get_links( username ):
mdb,cursor = connect_to_mysql()
sql = """SELECT * FROM `%s` WHERE `user`=%s;"""
cursor.execute( sql, (goconfig.sql_url_table, username) )
result = cursor.fetchall()
return result
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment