[perf-web] Fix a a minor error in the last patch



commit a320c5f895f3c0a10ef4093eaff062880aa4b26d
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Jul 25 15:54:17 2014 +0200

    Fix a a minor error in the last patch
    
    The wrong variable was accessed causing uploads to fail.

 metrics/views.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/metrics/views.py b/metrics/views.py
index 57f7d4b..c211457 100644
--- a/metrics/views.py
+++ b/metrics/views.py
@@ -331,7 +331,7 @@ def process_report(data, machine_name):
     pull_time_str = child_string(data, 'pullTime')
     try:
         pull_time = datetime.strptime(pull_time_str, '%Y-%m-%d %H:%M:%S').replace(tzinfo=timezone.utc)
-        pull_time = pull_time + timedelta(seconds=partition.machine.time_adjust_sec)
+        pull_time = pull_time + timedelta(seconds=target.partition.machine.time_adjust_sec)
     except ValueError:
         raise ValidationError("Can't parse property 'pullTime'")
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]