30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
# __init__.py
|
|
|
|
from pathlib import Path
|
|
|
|
# Version of the realpython-reader package
|
|
__project__ = "submissions"
|
|
__version__ = "202305.1b"
|
|
__author__ = {"name":"Landon Wark", "email":"Landon.Wark@phac-aspc.gc.ca"}
|
|
__copyright__ = "2022-2023, Government of Canada"
|
|
|
|
project_path = Path(__file__).parents[2].absolute()
|
|
|
|
class bcolors:
|
|
HEADER = '\033[95m'
|
|
OKBLUE = '\033[94m'
|
|
OKCYAN = '\033[96m'
|
|
OKGREEN = '\033[92m'
|
|
WARNING = '\033[93m'
|
|
FAIL = '\033[91m'
|
|
ENDC = '\033[0m'
|
|
BOLD = '\033[1m'
|
|
UNDERLINE = '\033[4m'
|
|
|
|
# Hello Landon, this is your past self here. I'm trying not to screw you over like I usually do, so I will
|
|
# set out the workflow I've imagined for creating new submission types.
|
|
# First of all, you will need to write new parsing methods in backend.excel.parser to pull information out of the submission form
|
|
# for the submission itself as well as for any samples you can pull out of that same sheet.
|
|
# Second, you will have to update the model in backend.db.models.submissions and provide a new polymorph to the BasicSubmission object.
|
|
# The BSO should hold the majority of the general info.
|
|
# You can also update any of the parsers to pull out any custom info you need, like enforcing RSL plate numbers, scraping PCR results, etc. |