(20251122) Reverted formatting and added a semaphore.

This commit is contained in:
2025-11-22 14:57:40 +05:30
parent cbc151570b
commit 071f86e552
4 changed files with 71 additions and 59 deletions
+7 -14
View File
@@ -59,6 +59,9 @@ from backend.shared import constants
# To make REST API calls:
import httpx
# For asynchronous activities:
import asyncio
# For debugging:
from icecream import IceCreamDebugger
@@ -211,21 +214,11 @@ async def app_startup(**kwargs):
# ┃┃┃┓┏┏
# ┛ ┗┗┛┗
# 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"
# )
# )
# Semaphores:
current_app.chrome_semaphore = asyncio.Semaphore(1)
# Helpers:
muster_roll.init()
# muster_roll.load(
#
# )
# ┏┓┓
# ┃ ┃┏┓┏┓┏┓┓┏┏┓