From 303f207cdb9cce069a06192f766bc1fb32bb95da Mon Sep 17 00:00:00 2001
From: TheJoeCoder <joe@radialbog9.uk>
Date: Tue, 24 Sep 2024 12:09:59 +0100
Subject: [PATCH] Fix logic error

---
 main.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.py b/main.py
index a5681d9..1959d4f 100644
--- a/main.py
+++ b/main.py
@@ -1,6 +1,7 @@
 import threading
 import time
 import queue
+import base64
 
 import pygame
 from flask import request, Flask, Response, Request
@@ -93,7 +94,7 @@ def wr_set_widget():
             "error": "No widget provided"
         }, 400)
 
-    if widget_name not in PROP_AVAILABLE_PATTERNS:
+    if widget_name not in PROP_AVAILABLE_WIDGETS:
         return json_response({
             "error": f"Widget {widget_name} is not available"
         }, 400)
-- 
GitLab