Skip to content

Commit

Permalink
Make the structures immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
porduna committed Jan 15, 2019
1 parent 68eb0d3 commit 41d7b4e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions weblablib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,21 +1299,21 @@ def request_client_data(self):
"""
Information provided in the beginning of the interaction (on_start): client_data
"""
return self._request_client_data
return ImmutableDict(self._request_client_data or {})

@property
def start_date(self):
def request_server_data(self):
"""
Information provided in the beginning of the interaction (on_start): client_data
Information provided in the beginning of the interaction (on_start): server_data
"""
return self._start_date
return ImmutableDict(self._request_server_data or {})

@property
def request_server_data(self):
def start_date(self):
"""
Information provided in the beginning of the interaction (on_start): server_data
Information provided in the beginning of the interaction (on_start): client_data
"""
return self._request_server_data
return self._start_date

def add_action(self, session_id, action):
"""
Expand Down

0 comments on commit 41d7b4e

Please sign in to comment.