Skip to content
Snippets Groups Projects
Commit 827c75f0 authored by Jonas Leder's avatar Jonas Leder
Browse files

removed some problems with " in export

parent e00b2a78
No related branches found
No related tags found
No related merge requests found
...@@ -22,4 +22,4 @@ conn = sqlite3.connect('db/urls.db') ...@@ -22,4 +22,4 @@ conn = sqlite3.connect('db/urls.db')
cursor = conn.cursor() cursor = conn.cursor()
res = cursor.execute('SELECT LONG_URL, SHORT_URL FROM WEB_URL WHERE 1') #read all data from database res = cursor.execute('SELECT LONG_URL, SHORT_URL FROM WEB_URL WHERE 1') #read all data from database
for entries in res.fetchall(): for entries in res.fetchall():
print(str(entries[1]) + ";" + str(entries[0])) #format the data and print it to console. print(str(entries[1]).replace('"', "") + ";" + str(entries[0]).replace('"', "")) #format the data and print it to console.
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment