Skip to content

Commit

Permalink
Merge branch 'main' into navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mseng10 committed Jul 12, 2024
2 parents 87829df + b43a36f commit a354552
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions server/README.md

This file was deleted.

6 changes: 3 additions & 3 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ def create_system():
db.commit()

# Potentially create lights that were created alongside the system
potentially_new_lights = new_system_json["light"]
if potentially_new_lights is not None:
potentially_new_light = new_system_json["light"]
if potentially_new_light is not None:
logger.info("Attempting to create embedded lights from system request")
potentially_new_lights["system_id"] = system.id
potentially_new_light["system_id"] = new_system.id
count = potentially_new_light["count"] if potentially_new_light["count"] else 1
new_lights = [create_light_from_json(potentially_new_light) for i in range(count)]
db.add(new_lights)
Expand Down

0 comments on commit a354552

Please sign in to comment.