damn_server.area.save¶
- damn_server.area.save(area, author)¶
Save the area to the database and return the area identifier.
- Parameters:
area (CreateArea) – Area to save, containing necessary information.
author (ConstrainedStrValue) – The author of the new area.
Save the area to the
current_areas
table in the database. Also, based on the area’s FeatureCollection, create the squares and the corresponding commits in thecurrent_squares
and thecurrent_commits
table respectivelly.