MCPcopy Index your code
hub / github.com/O365/python-o365 / get_order

Method get_order

O365/utils/utils.py:799–810  ·  view source on GitHub ↗

Returns the result order by clauses :rtype: str or None

(self)

Source from the content-addressed store, hash-verified

797 return None
798
799 def get_order(self):
800 """ Returns the result order by clauses
801
802 :rtype: str or None
803 """
804 # first get the filtered attributes in order as they must appear
805 # in the order_by first
806 if not self.has_order:
807 return None
808
809 return ','.join(['{} {}'.format(attribute, direction or '').strip()
810 for attribute, direction in self._order_by.items()])
811
812 def get_selects(self):
813 """ Returns the result select clause

Callers 2

__str__Method · 0.95
as_paramsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected