convert OPT from a dict to a class

This commit is contained in:
2021-08-29 20:13:26 +10:00
parent f9bd558727
commit 10fcda0d7c
7 changed files with 347 additions and 177 deletions

View File

@@ -5,6 +5,15 @@ import io
import base64
from PIL import Image, ImageOps
class PA:
def __repr__(self):
str=f"<{self.__class__.__name__}("
for k, v in self.__dict__.items():
str += f"{k}={v!r}, "
str=str.rstrip(", ") + ")>"
return str
hostname = socket.gethostname()
PROD_HOST="pa_web"