From c90859e58b529442d8862971bf8e2d3d4b1dfbcc Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 14 Mar 2018 16:26:00 +0100 Subject: [PATCH] Fixed error when checking quota --- NEWS.md | 2 ++ .../cartodb_services/cartodb_services/metrics/config.py | 4 ++++ server/lib/python/cartodb_services/setup.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 389ed78..6ea9601 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,8 @@ March 14th, 2018 ================ +* Version `0.17.4` of the python library + * Fix bug with previous version when checking quotas * Version `0.17.3` of the python library * Fix bug with Mapbox routing not using the proper quota value diff --git a/server/lib/python/cartodb_services/cartodb_services/metrics/config.py b/server/lib/python/cartodb_services/cartodb_services/metrics/config.py index 9344af3..07f742c 100644 --- a/server/lib/python/cartodb_services/cartodb_services/metrics/config.py +++ b/server/lib/python/cartodb_services/cartodb_services/metrics/config.py @@ -196,6 +196,10 @@ class RoutingConfig(ServiceConfig): def routing_quota(self): return self._routing_quota + @property + def monthly_quota(self): + return self._routing_quota + @property def period_end_date(self): return self._period_end_date diff --git a/server/lib/python/cartodb_services/setup.py b/server/lib/python/cartodb_services/setup.py index a3c0682..844be14 100644 --- a/server/lib/python/cartodb_services/setup.py +++ b/server/lib/python/cartodb_services/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages setup( name='cartodb_services', - version='0.17.3', + version='0.17.4', description='CartoDB Services API Python Library',