AOSSIE-Org / AOSSIE-Org/EduAid

[GOOD FIRST ISSUE]: main.py too large and hard to maintain

Đang mở
#603 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
good first issue
Ngôn ngữ chính
JavaScript
Star
171
Fork
425
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Context

The `main.py` file has grown to ~800 lines with multiple responsibilities.

### Problems
- Difficult to navigate and maintain
- Multiple unrelated classes in a single file
- Hard to test and extend

### Affected Files
- backend/Generator/main.py

### What Needs to Be Done

- Split large `main.py` into focused modules:
- question_generators.py
- answer_predictor.py
- utilities.py
- advanced_qa.py
- Updated `server.py` imports to use new structure
- Preserved all existing logic and functionality

### Resources

- [Contribution Guide - Start Here!](https://github.com/AOSSIE-Org/TODO/blob/main/CONTRIBUTING.md)
- [Discord Channel](https://discord.gg/hjUhu33uAn)

### Getting Started

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have read the [Contribution Guide](https://github.com/AOSSIE-Org/Template-Repo/blob/main/CONTRIBUTING.md)
- [x] I understand this issue is assigned on a first-come, first-served basis

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.