ch4bes / poolPal

Web interface for pool controls with Raspberry Pi
GNU General Public License v3.0
0 stars 0 forks source link

Seemingly redundant code #4

Closed ch4bes closed 6 years ago

ch4bes commented 6 years ago

In scheduler.py, the pin variable is assigned based on the function listed in the db:

https://github.com/ch4bes/poolPal/blob/72d0dc6f0020070dabf50f8f99d6a1a5630d68da/code/scheduler.py#L27-L32

This seems redundant, since these variables are already in the pins dictionary in main.py:

https://github.com/ch4bes/poolPal/blob/72d0dc6f0020070dabf50f8f99d6a1a5630d68da/code/main.py#L25-L29

The function field comes from schedulerform.py:

https://github.com/ch4bes/poolPal/blob/72d0dc6f0020070dabf50f8f99d6a1a5630d68da/code/schedulerform.py#L6-L7

ch4bes commented 6 years ago

Issue addressed here