Skip to content

Commit

Permalink
Fix plugin_manager and waveshare_relay bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-in-CA committed Dec 30, 2023
1 parent 19b2121 commit 13a504d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions plugin_manager/plugin_manager.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
# !/usr/bin/env python
# -*- coding: utf-8 -*-

# Python 2/3 compatibility imports
from __future__ import print_function
from six.moves import zip
from six.moves import range
try:
from urllib.request import urlopen, Request
except ImportError:
from six.moves.urllib.request import urlopen, Request

# standard library imports
import base64
import json
# import os
import pathlib
import re
import subprocess
import time
from urllib.request import urlopen

# local module imports
import gv # Get access to SIP's settings
Expand Down
2 changes: 1 addition & 1 deletion waveshare_relay_board/waveshare_relay_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class settings(ProtectedPage):
def GET(self):
with open(u"./data/waveshare_relay_board.json", u"r") as f: # Read the settings from file
params = json.load(f)
return template_render.relay_board(params)
return template_render.waveshare_relay_board(params)


class settings_json(ProtectedPage):
Expand Down

0 comments on commit 13a504d

Please sign in to comment.