Browse Source

Multiple teststepclass bug resolved

Akash Singh 3 years ago
parent
commit
11ba0c53dc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      StatisticServer/routes.py

+ 2 - 2
StatisticServer/routes.py

@@ -65,7 +65,7 @@ def stats_download(): # Will convert database data in csv and response csv file
                                               ).filter(ActivityStatistics.TestRunUUID == test_stat.TestRunUUID).all()
             test_json = test_stat.to_json()
             for key in testrun_headers:
-                data.append(str(test_json[key]))
+                data.append(f'"{str(test_json[key])}"')
             for activity_stat in activity_stats:
                 activity_json = activity_stat.to_json()
                 for key in activity_json:
@@ -76,7 +76,7 @@ def stats_download(): # Will convert database data in csv and response csv file
                 if key not in activities:
                     data.append(str(0))
                 else:
-                    data.append(str(activities[key]))
+                    data.append(f'"{str(activities[key])}"')
             if _ == 0:
                 headers = []
                 for key in testrun_headers: