Skip to content

Commit

Permalink
fix incorrect cypher generation for scene queries
Browse files Browse the repository at this point in the history
  • Loading branch information
AO-StreetArt committed Jan 26, 2019
1 parent fe0269d commit 5666b29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proc/query/include/base_query_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,15 @@ class BaseQueryHelper {
query_str.append(", ");
}
query_str.append("region: {inp_region}");
is_query_started = true;
}
// Either query for private scenes by user, or public ones only
if (!(scn->get_user().empty() || scn->is_public())) {
if (is_query_started) {
query_str.append(", ");
}
query_str.append("user: {inp_user}");
is_query_started = true;
} else if (scn->is_public()) {
if (is_query_started) {
query_str.append(", ");
Expand Down

0 comments on commit 5666b29

Please sign in to comment.