diff options
author | Jens Georg <mail@jensge.org> | 2019-08-18 12:45:25 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2019-08-18 12:46:11 +0200 |
commit | 32d6924cba1cf4e9b7935bc8672151d6f356cdc1 (patch) | |
tree | 893f6484b4f74feca28b556d8c83eb67805b9b0e /examples | |
parent | 14f8d9b7b9178a857a30bb577564bcbdeac3a838 (diff) | |
download | rygel-32d6924cba1cf4e9b7935bc8672151d6f356cdc1.tar.gz |
examples: Fix unblacklisting in mx-info
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/mx-info | 3 |
1 files changed, 2 insertions, 1 deletions
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: |