GridtNetwork / gridtlib

Core library for the gridt network
0 stars 0 forks source link

Implement movement name exists #32

Closed AntoninThioux closed 1 year ago

AntoninThioux commented 1 year ago

A broken schema on the backend server expects get_movement() to return none if there is no movement with a given name. The problem is that get_movement throws an error instead. There are two parts to this issue: Firstly, make get_movement() only take the id of the movement and make sure it throws an exception if it doesn't exist. Secondly, create a new function, movement_name_exists(), which can be used in the schema to check if a name is available.