Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 269664d

Browse files
authored
Merge pull request #54 from SafetyCulture/CSR-37
Csr 37
2 parents 4827618 + dbc11f4 commit 269664d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name = 'safetyculture-sdk-python',
4-
version = '3.3.1',
4+
version = '3.4.0',
55
description = 'iAuditor Python SDK and integration tools',
66
url = 'https://github.com/SafetyCulture/safetyculture-sdk-python',
77
author = 'SafetyCulture',

tools/exporter/csvExporter.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
'PreparedBy',
4343
'Location',
4444
'Personnel',
45-
'ClientSite'
45+
'ClientSite',
46+
'AuditSite',
47+
'AuditArea',
48+
'AuditRegion'
4649
]
4750

4851
# audit item empty response
@@ -258,6 +261,9 @@ def common_audit_data(self):
258261
audit_data_as_list.append(self.get_header_item(header_data, 'Location'))
259262
audit_data_as_list.append(self.get_header_item(header_data, 'Personnel'))
260263
audit_data_as_list.append(self.get_header_item(header_data, 'ClientSite'))
264+
audit_data_as_list.append(get_json_property(audit_data_property, 'site', 'name'))
265+
audit_data_as_list.append(get_json_property(audit_data_property, 'site', 'area', 'name'))
266+
audit_data_as_list.append(get_json_property(audit_data_property, 'site', 'region', 'name'))
261267
return audit_data_as_list
262268

263269
@staticmethod

0 commit comments

Comments
 (0)