From 38aa4f64758cc772fdae8036851e5887d866ce47 Mon Sep 17 00:00:00 2001
From: CrispyBaconz <c.j.bouma@students.uu.nl>
Date: Fri, 7 May 2021 13:23:36 +0200
Subject: [PATCH] Made tests work for quant queries

Yay!
---
 internal/usecases/convertquery/aql.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/internal/usecases/convertquery/aql.go b/internal/usecases/convertquery/aql.go
index eab3c24..2478a9f 100644
--- a/internal/usecases/convertquery/aql.go
+++ b/internal/usecases/convertquery/aql.go
@@ -20,7 +20,7 @@ func (s *Service) ConvertQuery(jsonMsg *[]byte) (*string, *string, error) {
 		fmt.Println(err)
 		return nil, nil, err
 	}
-	fmt.Println("We made it past the initial error checking")
+	//fmt.Println("We made it past the initial error checking")
 
 	// Check to make sure all indexes exist
 	// How many entities are there
@@ -346,7 +346,7 @@ func createRelationLetWithFromEntity(relation *entity.QueryRelationStruct, name
 	// Dont use a limit on quantifing queries
 	footer := ""
 	if limit != -1 {
-		footer += fmt.Sprintf("\tLIMIT %v", limit)
+		footer += fmt.Sprintf("\tLIMIT %v \n", limit)
 	}
 	footer += "RETURN DISTINCT p )\n"
 
@@ -374,7 +374,7 @@ func createRelationLetWithOnlyToEntity(relation *entity.QueryRelationStruct, nam
 	// Dont use a limit on quantifing queries
 	footer := ""
 	if limit != -1 {
-		footer += fmt.Sprintf("\tLIMIT %v", limit)
+		footer += fmt.Sprintf("\tLIMIT %v \n", limit)
 	}
 	footer += "RETURN DISTINCT p )\n"
 
-- 
GitLab