Patch, fixing legacy fs modules migration

pull/1/head
hikariatama 2022-05-12 15:37:05 +00:00
parent 0a17cefbab
commit cee6783191
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ class Modules:
]
for mod in os.listdir(LOADED_MODULES_DIR):
if not re.match(r"[a-zA-Zа-яА-Я0-9_]+_[0-9]+\.py", mod):
if not re.match(r"[a-zA-Zа-яА-Я0-9_]+_[0-9]+\.py", mod) and mod.endswith(".py"):
new_name = mod.rsplit(".py")[0] + f"_{client._tg_id}.py"
os.rename(
os.path.join(LOADED_MODULES_DIR, mod),