[rygel] examples: Fix unblacklisting in mx-info
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] examples: Fix unblacklisting in mx-info
- Date: Sun, 18 Aug 2019 10:46:22 +0000 (UTC)
commit 32d6924cba1cf4e9b7935bc8672151d6f356cdc1
Author: Jens Georg <mail jensge org>
Date: Sun Aug 18 12:45:25 2019 +0200
examples: Fix unblacklisting in mx-info
examples/mx-info | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/examples/mx-info b/examples/mx-info
index 30efc10a..9c245a8a 100755
--- a/examples/mx-info
+++ b/examples/mx-info
@@ -66,6 +66,7 @@ SELECT b.timestamp FROM blacklist b WHERE b.uri = :uri
"""
BLACKLIST_TEMPLATE = 'File %(uri)s was blacklisted on %(date)s'
+UNBLACKLIST_QUERY = 'DELETE FROM blacklist where uri = :uri'
def ensure_uri(string):
if not string.startswith ('file://'):
@@ -97,7 +98,7 @@ if not has_blacklist and args.unblacklist:
sys.exit (1)
if has_blacklist and args.unblacklist:
- for arg in args.uris:
+ for uri in args.uris:
c.execute (UNBLACKLIST_QUERY, { 'uri' : uri })
else:
for uri in args.uris:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]