Skip to content

Commit

Permalink
Made it an OrderedDict
Browse files Browse the repository at this point in the history
  • Loading branch information
suhrawardi committed Apr 7, 2021
1 parent c8f308b commit 3a4553b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions odata/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def execute_get(self, url, params=None):
self.log.info(u'Closed GET response for {0}'.format(url))

def execute_post(self, url, data, params=None):
self.log.info(u'DATA: {0}'.format(data))
try:
response = None
headers = {
Expand Down
1 change: 1 addition & 0 deletions odata/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def _insert_new(self, entity):

es = entity.__odata__
insert_data = es.data_for_insert()
self.log.info(u'DATA FOR INSERT: {0}'.format(data))
saved_data = self.connection.execute_post(url, insert_data)
es.reset()
es.connection = self.connection
Expand Down
2 changes: 1 addition & 1 deletion odata/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, entity):
self.entity = entity
self.dirty = []
self.nav_cache = {}
self.data = {}
self.data = OrderedDict()
self.connection = None
# does this object exist serverside
self.persisted = False
Expand Down

0 comments on commit 3a4553b

Please sign in to comment.