From f318f76994111e17bb7d87846d4233f830bf590a Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 29 Apr 2019 17:18:02 +0200 Subject: [PATCH] Add missing function --- src/util/helper.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/helper.py b/src/util/helper.py index 77d3aa03..21ca86cf 100644 --- a/src/util/helper.py +++ b/src/util/helper.py @@ -72,6 +72,13 @@ def getFreeSpace(): return free_space +def sqlquote(value): + if type(value) is int: + return str(value) + else: + return "'%s'" % value.replace("'", "''") + + def shellquote(*args): if len(args) == 1: return '"%s"' % args[0].replace('"', "")