mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2025-11-25 03:15:25 +08:00
refactor(import): update module import to reflect renamed file - Changed import from 'categorize_workflows' to 'create_categories' - Maintains existing functionality with correct module reference - Resolves ModuleNotFoundError when running import_workflows.py
## Description Updated the import statement in `import_workflows.py` to reference the renamed module `create_categories.py`, resolving a `ModuleNotFoundError` that occurred due to the missing reference to the old module name (`categorize_workflows`). ## Changes - **Updated Import**: Changed `from categorize_workflows import categorize_by_filename` to `from create_categories import categorize_by_filename` in `import_workflows.py`[3](@ref). ## Related Issue Closes #[Insert_Issue_Number_Here] (if applicable; otherwise, omit this section) ## Testing - [x] Tested locally to ensure the script runs without import errors. - [x] Verified that the `categorize_by_filename` function is accessible and functional. ## Impact This change ensures the import statement correctly references the existing module after its rename, maintaining functionality without introducing breaking changes[1](@ref).
This commit is contained in:
@@ -10,7 +10,7 @@ import sys
|
||||
from pathlib import Path
|
||||
from typing import List, Dict, Any
|
||||
|
||||
from categorize_workflows import categorize_by_filename
|
||||
from create_categories import categorize_by_filename
|
||||
|
||||
|
||||
def load_categories():
|
||||
@@ -201,4 +201,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user