Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
68653985
Commit
68653985
authored
Nov 09, 2013
by
Jean Michel Rouly
Browse files
Added get-links functionality to library.
parent
a472af55
Changes
1
Show whitespace changes
Inline
Side-by-side
wsgi/library.py
View file @
68653985
...
...
@@ -353,3 +353,13 @@ def get_bottom( logged_in=False ):
f
.
close
()
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
()
mdb
.
commit
()
mdb
.
close
()
return
result
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment