From b2c112a66d015e33f6d9be9a8b068f004f5be6de Mon Sep 17 00:00:00 2001 From: dphamb <86427235+dphamb@users.noreply.github.com> Date: Tue, 13 Jul 2021 13:40:04 -0700 Subject: [PATCH] delete comment before print statement --- .../list-get-example-1/list-get-example-1.6.x.py | 5 +---- .../list-get-example-2/list-get-example-2.6.x.py | 3 +++ .../list-get-example-3/list-get-example-3.6.x.py | 3 +++ .../list-get-example-4/list-get-example-4.6.x.py | 3 +++ .../list-get-example-5/list-get-example-5.6.x.py | 3 +++ 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/rest/usage-records/list-get-example-1/list-get-example-1.6.x.py b/rest/usage-records/list-get-example-1/list-get-example-1.6.x.py index 8a924b88be..5edb12e609 100644 --- a/rest/usage-records/list-get-example-1/list-get-example-1.6.x.py +++ b/rest/usage-records/list-get-example-1/list-get-example-1.6.x.py @@ -12,8 +12,5 @@ # A list of record objects with the properties described above records = client.usage.records.last_month.list() - -# Print the JSON object for record in records: - print(record.start_date, record.end_date, record.category, record.count, - record.count_unit, record.price, record.price_unit) + print(record.count) diff --git a/rest/usage-records/list-get-example-2/list-get-example-2.6.x.py b/rest/usage-records/list-get-example-2/list-get-example-2.6.x.py index d0223a7078..bb968fbb02 100644 --- a/rest/usage-records/list-get-example-2/list-get-example-2.6.x.py +++ b/rest/usage-records/list-get-example-2/list-get-example-2.6.x.py @@ -11,3 +11,6 @@ # A list of record objects with the properties described above records = client.usage.records.today.list(category="calls") + +for record in records: + print(record.count) diff --git a/rest/usage-records/list-get-example-3/list-get-example-3.6.x.py b/rest/usage-records/list-get-example-3/list-get-example-3.6.x.py index 0fbd7399bd..5ea26acbee 100644 --- a/rest/usage-records/list-get-example-3/list-get-example-3.6.x.py +++ b/rest/usage-records/list-get-example-3/list-get-example-3.6.x.py @@ -13,3 +13,6 @@ records = client.usage.records.list( category="calls-inbound", start_date="2012-09-01", end_date="2012-09-30" ) + +for record in records: + print(record.count) diff --git a/rest/usage-records/list-get-example-4/list-get-example-4.6.x.py b/rest/usage-records/list-get-example-4/list-get-example-4.6.x.py index ef59e76ae4..457d03dd8c 100644 --- a/rest/usage-records/list-get-example-4/list-get-example-4.6.x.py +++ b/rest/usage-records/list-get-example-4/list-get-example-4.6.x.py @@ -13,3 +13,6 @@ records = client.usage.records.daily.list( category="calls-inbound", start_date="2012-09-01", end_date="2012-09-30" ) + +for record in records: + print(record.count) diff --git a/rest/usage-records/list-get-example-5/list-get-example-5.6.x.py b/rest/usage-records/list-get-example-5/list-get-example-5.6.x.py index 7e45d2f34d..391ac07983 100644 --- a/rest/usage-records/list-get-example-5/list-get-example-5.6.x.py +++ b/rest/usage-records/list-get-example-5/list-get-example-5.6.x.py @@ -11,3 +11,6 @@ # A list of record objects with the properties described above records = client.usage.records.list() + +for record in records: + print(record.count)