From 827c75f051996ec00d6fba5ecf68135fb0bb7d0d Mon Sep 17 00:00:00 2001 From: jonasled <jonas@jonasled.de> Date: Fri, 18 Oct 2019 10:10:53 +0200 Subject: [PATCH] removed some problems with " in export --- export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export.py b/export.py index 45e7569..1ccc8ef 100644 --- a/export.py +++ b/export.py @@ -22,4 +22,4 @@ conn = sqlite3.connect('db/urls.db') cursor = conn.cursor() res = cursor.execute('SELECT LONG_URL, SHORT_URL FROM WEB_URL WHERE 1') #read all data from database for entries in res.fetchall(): - print(str(entries[1]) + ";" + str(entries[0])) #format the data and print it to console. \ No newline at end of file + print(str(entries[1]).replace('"', "") + ";" + str(entries[0]).replace('"', "")) #format the data and print it to console. \ No newline at end of file -- GitLab