Commit e002d7855c9070cde649c87d50689cb9261569aa
1 parent
821570955a
Exists in
master
add get menu-items
Showing 10 changed files with 17 additions and 2 deletions Side-by-side Diff
- __pycache__/main.cpython-310.pyc
- __pycache__/routes.cpython-310.pyc
- components/k2test/__pycache__/__init__.cpython-310.pyc
- components/k2test/k2test/__pycache__/__init__.cpython-310.pyc
- components/k2test/k2test/__pycache__/views.cpython-310.pyc
- components/k2test/setup.py
- db/database.db
- k2/__pycache__/k2cfg.cpython-310.pyc
- k2/k2cfg.py
- main.py
__pycache__/main.cpython-310.pyc
No preview for this file type
__pycache__/routes.cpython-310.pyc
No preview for this file type
components/k2test/__pycache__/__init__.cpython-310.pyc
No preview for this file type
components/k2test/k2test/__pycache__/__init__.cpython-310.pyc
No preview for this file type
components/k2test/k2test/__pycache__/views.cpython-310.pyc
No preview for this file type
components/k2test/setup.py
| 1 | +from setuptools import setup, find_packages | |
| 2 | + | |
| 3 | +setup( | |
| 4 | + name='k2test', | |
| 5 | + version='1.0.0', | |
| 6 | + description='Description of my project', | |
| 7 | + author='Your Name', | |
| 8 | + author_email='yourname@example.com', | |
| 9 | + keywords="k2test, k2", | |
| 10 | + python_requires=">=3.7, <=3.11.2", | |
| 11 | + packages=['k2test'], | |
| 12 | + package_data={ # Optional | |
| 13 | + }, | |
| 14 | + install_requires=[""], | |
| 15 | +) |
db/database.db
No preview for this file type
k2/__pycache__/k2cfg.cpython-310.pyc
No preview for this file type
k2/k2cfg.py
| ... | ... | @@ -54,7 +54,7 @@ |
| 54 | 54 | with open('languages/babel_translation_directories.yml', 'w') as f: |
| 55 | 55 | yaml.dump(data, f) |
| 56 | 56 | @classmethod |
| 57 | - def search_menu_elenents(cls): | |
| 57 | + def get_menu_elenents(cls): | |
| 58 | 58 | with open('components/menu.yml', 'r') as f: |
| 59 | 59 | yaml_data = yaml.load(f, Loader=yaml.FullLoader) |
| 60 | 60 | cls.menu = yaml_data |