From 66b8546a8e243dbcd02e579d547f568267b03b0b Mon Sep 17 00:00:00 2001 From: mseng10 Date: Mon, 8 Jul 2024 18:22:31 -0500 Subject: [PATCH 1/3] BUG: Fix pylint --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index af20602..a5a60a2 100644 --- a/server/app.py +++ b/server/app.py @@ -234,10 +234,10 @@ def create_system(): db.commit() # Potentially create lights that were created alongside the system - potentially_new_lights = new_system_json["light"] + potentially_new_light = new_system_json["light"] if potentially_new_lights 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) From 54468889e45c750f45e0198c1a02d7e7ca2be281 Mon Sep 17 00:00:00 2001 From: mseng10 Date: Mon, 8 Jul 2024 18:24:11 -0500 Subject: [PATCH 2/3] BUG: Fix pylint --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index a5a60a2..215df00 100644 --- a/server/app.py +++ b/server/app.py @@ -235,7 +235,7 @@ def create_system(): # Potentially create lights that were created alongside the system potentially_new_light = new_system_json["light"] - if potentially_new_lights is not None: + if potentially_new_light is not None: logger.info("Attempting to create embedded lights from system request") potentially_new_light["system_id"] = new_system.id count = potentially_new_light["count"] if potentially_new_light["count"] else 1 From b43a36f2ae8b63377dbfe702c5071b1ac9a55638 Mon Sep 17 00:00:00 2001 From: mseng10 Date: Thu, 11 Jul 2024 22:40:45 -0500 Subject: [PATCH 3/3] MISC: Remove unused file --- server/README.md | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 server/README.md diff --git a/server/README.md b/server/README.md deleted file mode 100644 index 6913844..0000000 --- a/server/README.md +++ /dev/null @@ -1,3 +0,0 @@ -[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) - -Welcome! This is a dedicated repository to how I'll manage the many plants I care for on a day to day basis.