cleaned up code around json, *locn -> transitioned to top, right, bottom, left to finally fix ORM replacing [ with { <- FIXES BUG-108

This commit is contained in:
2022-12-23 16:18:27 +11:00
parent 81fea4f6f3
commit 2a1e2d7d5d
8 changed files with 12 additions and 31 deletions

View File

@@ -14,7 +14,6 @@ from path import Path, PathType
from job import JobExtra, NewJob
import os
import json
import time
from PIL import Image
import base64
@@ -68,14 +67,6 @@ class Person(PA,db.Model):
firstname = db.Column(db.String(48), unique=False, nullable=False)
refimg = db.relationship('Refimg', secondary=PersonRefimgLink.__table__, order_by=Refimg.id)
################################################################################
# Helper class that inherits a .dump() method to turn class Person into json / useful in jinja2
################################################################################
class PersonSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Person
ordered = True
################################################################################
# Helper class that defines a form for person, used to make html <form>, with field validation (via wtforms)
################################################################################