baseimage-tutorial-framework/lib/util.py
2018-01-10 16:49:23 +01:00

14 lines
301 B
Python

import json
def parse_anchor_from_message(message):
message_json = json.loads(message)
return message_json['anchor']
def create_source_code_response_data(filename, content, language):
return {
'filename': filename,
'content': content,
'language': language
}