From 65201cd705f80acd149d6ad9cbde18fe6c951427 Mon Sep 17 00:00:00 2001 From: stijndcl Date: Sun, 18 Sep 2022 01:21:51 +0200 Subject: [PATCH] Rename script to have alphabetical name ordering --- database/scripts/{debug_add_courses.py => db00_example.py} | 2 +- run_db_scripts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename database/scripts/{debug_add_courses.py => db00_example.py} (92%) diff --git a/database/scripts/debug_add_courses.py b/database/scripts/db00_example.py similarity index 92% rename from database/scripts/debug_add_courses.py rename to database/scripts/db00_example.py index 55d560c..6970829 100644 --- a/database/scripts/debug_add_courses.py +++ b/database/scripts/db00_example.py @@ -7,7 +7,7 @@ __all__ = ["main"] async def main(): - """Add debug Ufora courses""" + """Example script: add a Ufora course""" session: AsyncSession async with DBSession() as session: modsim = UforaCourse( diff --git a/run_db_scripts.py b/run_db_scripts.py index 12eb230..91f4af2 100644 --- a/run_db_scripts.py +++ b/run_db_scripts.py @@ -7,7 +7,7 @@ import asyncio import sys from typing import Callable -from database.scripts.debug_add_courses import main as debug_add_courses +from database.scripts.db00_example import main as debug_add_courses script_mapping: dict[str, Callable] = {"debug_add_courses.py": debug_add_courses}