From 7e7aafa33161fe180d7fc052f820606c04e56dc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Valentin=20Grou=C3=A8s?= <valentin.groues@uni.lu>
Date: Fri, 19 May 2017 10:27:45 +0200
Subject: [PATCH] fix issue with appointment list pagination - #120

---
 smash/web/api_views/appointment.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smash/web/api_views/appointment.py b/smash/web/api_views/appointment.py
index a31bb9f1..091c5801 100644
--- a/smash/web/api_views/appointment.py
+++ b/smash/web/api_views/appointment.py
@@ -59,7 +59,7 @@ def appointments(request, type):
 
         appointments = sliced_subjects
 
-        count_filtered = sliced_subjects.count()
+        count_filtered = all_appointments.count()
 
         data = []
         for appointment in appointments:
-- 
GitLab