def get_info(content): if ('mod_hash' in content and 'username' in content): info = DB.get_info(username = content['username'], mod_hash = content['mod_hash']) return info else: return {'type':'error', 'error':'must login first'}