Bug fix: Increases API results limit
Originally I thought the API wouldn't have a limit as for the number
of rows returned, but it does have a default limit of 1 000 rows.[1]
Therefore, this commit increases this limit to 50 000, which should be
enough.
[1]: https://dev.socrata.com/docs/queries/limit.html
Change-Id: Idbe5a18bce77708bc1f161989a5ce05c10082de4
diff --git a/cron/generateData.php b/cron/generateData.php
index fbc3adb..489b702 100644
--- a/cron/generateData.php
+++ b/cron/generateData.php
@@ -58,7 +58,8 @@
resultatcoviddescripcio = 'Positiu PCR' AND
regiosanitariadescripcio <> 'No classificat'
GROUP BY regiosanitariadescripcio, data
-ORDER BY data ASC, regiosanitariadescripcio");
+ORDER BY data ASC, regiosanitariadescripcio
+LIMIT 50000");
// Fem un array que tindrà com a elements un array per cada regió amb el
// contingut de totes les files d'aquella regió