



import pymongo

import status_600.stage.climate as instrument_climate
import status_600.stage.moon.connect as moon_connect

'''
	
'''
def perform (fields):
	moon_connection = moon_connect.start ()
	scene_1 = moon_connection ["scenes"] ["scene-1"]

	move = "scene 1: add splendor"
	existing_document = scene_1.find_one ({
		"move": move
	})
	if existing_document:
		return {
			"status": "fail",
			"note": "That move has already occurred."
		}

	'''
		validate that has enough splendor
	'''
	move_number = str (scene_1.count_documents ({}) + 1)
	scene_1.insert_one ({
		"move": move,
		"move #": move_number,
		
		"amount": "1e8",
		"flavor": "ECC_448_2:3043300506032B6571033A00E701F06C74F2990640FBBB062B7E1D0D33C2EA2724F9FDD908CACF0F200270907A8400BD26B287335570F34FCA7B0ECD07B0D9622D5CE82A80",
		
		
	})


	return {
		"status": "pass"
	}
	
	
	
	
#