This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit ffe7ec0dca0be96f865216a65e9e8cd4a6887e22
Author: Marcus Christie <[email protected]>
AuthorDate: Wed Jul 10 14:57:53 2019 -0400

    AIRAVATA-3102 Convert times to integer before Thrift api calls
---
 django_airavata/apps/api/views.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/django_airavata/apps/api/views.py 
b/django_airavata/apps/api/views.py
index b784582..7df5d9d 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -1478,11 +1478,13 @@ class ExperimentStatisticsView(APIView):
         else:
             from_time = (datetime.utcnow() -
                          timedelta(days=7)).timestamp() * 1000
+        from_time = int(from_time)
         if 'toTime' in request.GET:
             to_time = view_utils.convert_utc_iso8601_to_date(
                 request.GET['toTime']).timestamp() * 1000
         else:
             to_time = datetime.utcnow().timestamp() * 1000
+        to_time = int(to_time)
         username = request.GET.get('userName', None)
         application_name = request.GET.get('applicationName', None)
         resource_hostname = request.GET.get('resourceHostName', None)

Reply via email to