From aa1d24b6fd9481eab6452b4a2de6031e98525bcf Mon Sep 17 00:00:00 2001
From: "Vancea, Ioan (ivancea)" <ioan.vancea@physik.hu-berlin.de>
Date: Fri, 16 Dec 2016 15:32:48 +0100
Subject: [PATCH] Added a temporary fix for the case when there are more than
 100 calcs per material

---
 rest-api-service/app/api_v1_0/routes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rest-api-service/app/api_v1_0/routes.py b/rest-api-service/app/api_v1_0/routes.py
index 88f1dc6..e73d9cd 100644
--- a/rest-api-service/app/api_v1_0/routes.py
+++ b/rest-api-service/app/api_v1_0/routes.py
@@ -100,7 +100,7 @@ def get_cell(material_id, cell_id):
 # Calc
 @api.route('/materials/<int:material_id>/calculations', methods=['GET'])
 @json
-@paginate('calc', m_calc_schema, max_per_page=100)
+@paginate('calc', m_calc_schema, max_per_page=500)
 def get_calcs(material_id):
     # material = Material.query.get_or_404(material_id)
     # return material.calc
-- 
GitLab