diff options
Diffstat (limited to 'sinksh/syntax_modules')
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 3 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index b002438..a56740d 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -42,6 +42,9 @@ namespace SinkList | |||
42 | static QByteArray compressId(bool compress, const QByteArray &id) | 42 | static QByteArray compressId(bool compress, const QByteArray &id) |
43 | { | 43 | { |
44 | if (!compress) { | 44 | if (!compress) { |
45 | if (id.startsWith('{')) { | ||
46 | return id.mid(1, id.length() - 2); | ||
47 | } | ||
45 | return id; | 48 | return id; |
46 | } | 49 | } |
47 | auto compactId = id.mid(1, id.length() - 2).split('-'); | 50 | auto compactId = id.mid(1, id.length() - 2).split('-'); |
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index 8b48785..f165f58 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -49,7 +49,7 @@ bool sync(const QStringList &args, State &state) | |||
49 | Sink::Query query; | 49 | Sink::Query query; |
50 | if (!options.positionalArguments.isEmpty() && !SinkshUtils::isValidStoreType(options.positionalArguments.first())) { | 50 | if (!options.positionalArguments.isEmpty() && !SinkshUtils::isValidStoreType(options.positionalArguments.first())) { |
51 | //We have only specified a resource | 51 | //We have only specified a resource |
52 | query.resourceFilter(options.positionalArguments.first().toLatin1()); | 52 | query.resourceFilter(SinkshUtils::parseUid(options.positionalArguments.first().toLatin1())); |
53 | } else { | 53 | } else { |
54 | //We have specified a full filter | 54 | //We have specified a full filter |
55 | if (!SinkshUtils::applyFilter(query, options.positionalArguments)) { | 55 | if (!SinkshUtils::applyFilter(query, options.positionalArguments)) { |