ludgerh / cam-ai

AI for security cameras
GNU General Public License v3.0
8 stars 4 forks source link

Bug in evalution of condition strings #19

Closed ludgerh closed 1 year ago

ludgerh commented 1 year ago
cam_ai@CamAIRaspiAc:~ $ tail -f ~/cam-ai/data/logs/c_server.err
Traceback (most recent call last):
  File "/home/cam_ai/cam-ai/eventers/c_eventers.py", line 241, in display_events
    if resolve_rules(self.cond_dict[self.last_cond_ed], predictions):
  File "/home/cam_ai/cam-ai/eventers/c_event.py", line 94, in resolve_rules
    return(eval(cond_str))
  File "<string>", line 1
    (False
         ^
SyntaxError: unexpected EOF while parsing
ludgerh commented 1 year ago

Reproducable: Create one single condition and hit the right array. Then save...

ludgerh commented 1 year ago

Fixed with 0.8.9