Commit Graph

59 Commits

Author SHA1 Message Date
bcb96213ee Refactor code structure for improved readability and maintainability 2025-12-10 13:47:34 +01:00
05289ef244 chore(codebase): import fixes, restructuring 2025-12-01 14:24:24 +01:00
f63bcc8446 feat: implement WebADIS authentication and add medianumber retrieval functionality 2025-10-21 15:26:20 +02:00
0764a6b06a feat: add migrations to create database and add / change features down the line 2025-10-21 10:42:52 +02:00
0406fe4f6f Refactor and enhance type hints across multiple modules
- Updated the `from_tuple` method in `Prof` class to specify return type.
- Added type hints for various methods in `LehmannsClient`, `OpenAI`, `WebRequest`, and `ZoteroController` classes to improve code clarity and type safety.
- Modified `pdf_to_csv` function to return a string instead of a DataFrame.
- Enhanced error handling and type hints in `wordparser` and `xmlparser` modules.
- Removed unused UI file `Ui_medianadder.ts`.
- Improved the layout and structure of the `semesterapparat_ui` to enhance user experience.
- Updated file picker to support `.doc` files in addition to `.docx`.
- Added unique item handling in `Ui` class to prevent duplicates in apparat list.
- General code cleanup and consistency improvements across various files.
2025-10-21 09:09:54 +02:00
560d8285b5 Feat: add delete edition dialog with fuzzy search 2025-10-10 09:10:06 +02:00
3cc6e793d2 more AI optimizations, reworked logger 2025-10-09 12:35:15 +02:00
06965db26a minor and major reworks: rename swb to SRU, add a test for pdf parsing
major: rework mail to send mail as plaintext instead of html, preventing the bleed-in of html text
2025-10-07 14:15:10 +02:00
7079b4d47f add insert, request, ordered functions for new edition books 2025-09-22 09:37:25 +02:00
a64fa9770f refactor searchBook to allow for regex matches 2025-09-03 12:32:05 +02:00
bf419ec3bf Implement startup check and table creation in Database class; add methods to retrieve books and manage apparat deletion 2025-09-03 10:41:26 +02:00
7da2b3f65d feat: add getProfMailById method to retrieve professor's email by ID
refactor: reorganize import statements and clean up commented code
2025-09-01 14:31:02 +02:00
290395d38d add error checking for non-existent users trying to log in 2025-07-03 09:22:43 +02:00
c06ff40fd6 fix issue with database path falling back to faulty path
update logic in welcome wizard, add checks for qapplication instance
2025-06-24 13:46:08 +02:00
7eb55c21d0 migrate from PyQt6 to PySide6, remove unneeded dependencies 2025-06-17 16:21:56 +02:00
3fbb8bbd52 add openai model to config, rework logging to use appdirs logging dir 2025-06-03 15:28:14 +02:00
abe17d8c57 fix path decoding 2025-06-03 13:16:03 +02:00
0c53778f99 Refactor database message handling to support multiple messages and enhance type hints across various classes 2025-05-14 14:34:40 +02:00
f7c499ea6e Refactor logging setup across multiple modules to use loguru with consistent configuration
- Updated logging initialization in MessageCalendar, admin_edit_prof, elsa_main, graph, iconLine, searchPage, and richtext modules to use loguru.
- Changed log rotation and retention settings for log files to improve log management.
- Replaced logger.debug/info calls with log.debug/info for consistency.
- Fixed a typo in the searchPage UI and updated related references in the UI files.
- Removed unused imports and cleaned up code for better readability.
2025-05-13 15:49:52 +02:00
99b9f50784 rework database to use json string instead of dataclass dump. Prevents failed decodings, makes contents searchable, if needed 2025-05-13 11:37:25 +02:00
8f90247e98 Refactor UI and remove unused tests
- Deleted the generated UI file `untitled_ui.py` as it is no longer needed.
- Updated `search_statistic_page.ui` to enhance table properties, including grid style and sort indicators.
- Modified `search_statistic_page_ui.py` to reflect changes in the UI file and improve table header settings.
- Improved cleanup logic in `richtext.py` to ensure files are only deleted if they exist.
- Adjusted spacing in document generation for better formatting.
- Removed obsolete test files: `database_test.py`, `many_webrequest_test.py`, `test_database.py`, and `webrequest_test.py` to clean up the test suite.
2025-05-12 15:26:58 +02:00
468e8674ab update logging, update docuprint add new ui for generating documents 2025-05-09 11:57:18 +02:00
424411b077 add type checking, update deletion function in searchpage, add function to import apparat data from document 2025-04-28 15:31:35 +02:00
8b83b8c305 add logger 2025-04-28 10:16:24 +02:00
80b96865e7 add SemapDocument and Book dataclasses, improve word document parsing 2025-04-25 12:16:14 +02:00
ac32b86b17 fix bug in extend_loan function 2025-04-07 07:53:36 +02:00
f6f9f89354 refactor: clean up unused imports and improve code organization 2025-03-26 10:21:11 +01:00
08cd18f3f1 rebase codebase, delete trunk, move threads to backend 2025-01-14 16:20:08 +01:00
2acaea588b more changes 2025-01-14 09:44:32 +01:00
997d618ff1 fix broken files after faulty update 2025-01-14 08:51:58 +01:00
eda556b5ea rework logging, add more dataclasses, reworked config 2024-12-17 10:02:56 +01:00
f84c030eea feat: add documentation for ELSA and extend functionality, include new icons and update semester logic 2024-12-10 11:24:04 +01:00
6a2ca5e719 chore: revert to use base settings class instead of partial settings 2024-11-27 14:48:47 +01:00
WorldTeacher
f3eed7486d feat: create config class to replace use of config file in application 2024-10-29 16:07:30 +01:00
WorldTeacher
ff8e6a1e58 add elsa prof functions for seperate profs 2024-10-10 14:38:25 +02:00
WorldTeacher
2746b917eb rework icons, codechanges, bugfixes, typofixes 2024-10-09 08:47:48 +02:00
WorldTeacher
cd74214c17 rework prof data using dataclass, change database code, fix bugs 2024-09-23 15:45:42 +02:00
WorldTeacher
14627cb824 fix error where same prof can't be used twice for apparats 2024-09-20 08:28:35 +02:00
WorldTeacher
3794f35942 database feature
add function to determine the script, function and line that called the
database, embed data into log to make fixes easier
2024-07-03 14:41:09 +02:00
WorldTeacher
7e0de3f032 db bug fix 2024-07-01 15:46:15 +02:00
WorldTeacher
6fa3e18f22 updates 2024-06-28 10:14:07 +02:00
WorldTeacher
5e53c1a61b rework elsa media database function 2024-06-27 13:17:41 +02:00
WorldTeacher
8590517399 database elsa changes 2024-06-26 16:33:31 +02:00
WorldTeacher
1aef1b3e3a fixes + updates
add ascii-lowercase symbols that can be at the end of a query
add inspect module to name database logger based on calling class
2024-06-18 14:11:31 +02:00
WorldTeacher
fd692b8c99 updates 2024-06-11 13:28:23 +02:00
WorldTeacher
3668abc334 add elsa functions 2024-05-24 10:09:02 +02:00
WorldTeacher
0de3cb3487 small bugfix based on changed structure 2024-05-21 13:20:45 +02:00
WorldTeacher
ef5f862a2b formatting 2024-05-16 15:31:06 +02:00
WorldTeacher
f0a7f72f59 remove hardcoded db 2024-05-07 14:20:50 +02:00
WorldTeacher
67d782e1b3 proper formatting 2024-02-22 21:31:54 +01:00