(20251119) Added caching to the muster roll data.
This commit is contained in:
+19
-1
@@ -47,6 +47,7 @@ from quart_cors import cors
|
||||
|
||||
# My utils:
|
||||
from utils_v2.date_time import date_time
|
||||
from utils_v2.system import files
|
||||
from utils_v2.api.async_quart import (
|
||||
set_api_version,
|
||||
log_request_to_mongo,
|
||||
@@ -65,6 +66,9 @@ from icecream import IceCreamDebugger
|
||||
from backend.api.blueprints.reports.in_out_report import in_out_report_bp
|
||||
from backend.api.blueprints.reports.muster_roll import muster_roll_report_bp
|
||||
|
||||
# The helpers:
|
||||
from backend.api.helpers import muster_roll
|
||||
|
||||
|
||||
# *****************************************************************************************************************
|
||||
# ***** ****
|
||||
@@ -207,7 +211,21 @@ async def app_startup(**kwargs):
|
||||
# ┃┃┃┓┏┏
|
||||
# ┛ ┗┗┛┗
|
||||
|
||||
pass
|
||||
# cosec_creds = files.read_file(
|
||||
# file_path = os.path.join(
|
||||
# files.get_parent_directory(
|
||||
# path = files.get_file_directory(include_filename = False),
|
||||
# depth = 2
|
||||
# ),
|
||||
# "creds",
|
||||
# "cosec",
|
||||
# "cosec_velankani.json"
|
||||
# )
|
||||
# )
|
||||
muster_roll.init()
|
||||
# muster_roll.load(
|
||||
#
|
||||
# )
|
||||
|
||||
# ┏┓┓
|
||||
# ┃ ┃┏┓┏┓┏┓┓┏┏┓
|
||||
|
||||
Reference in New Issue
Block a user