Skip to content

Commit

Permalink
report by groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolis Rusenas committed Aug 18, 2015
1 parent ca99fdc commit dc0ee23
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions utilities/sfclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ def get_billability_report(self, report_id):
employee_dict=employee_key_dict)
return final_report

@gen.coroutine
def get_billability_groupings_report(self, report_id):
data = yield self.get_report(report_id)
# getting useful date range dictionary
date_range_dict = get_time_range(data)
# getting final report
groups = get_groups(data)

final_report = create_sub_totals_report(raw_report=data,
time_dict=date_range_dict,
group_dict=groups)
return final_report

def get_groups(report):
if 'groupingsDown' in report:
result_dict = {}
Expand Down

0 comments on commit dc0ee23

Please sign in to comment.