Commit Graph

92 Commits

Author SHA1 Message Date
6c6d140c2f Refactor UI imports and clean up unused code
- Removed unnecessary imports from various UI files to streamline the codebase.
- Deleted the unused documentation viewer implementation in `documentationview.py`.
- Cleaned up imports in `files.py` by removing `LOG_DIR` as it was not used.
- Removed the temporary script `temp.py` as it was no longer needed.
2025-11-24 12:39:44 +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
7e07bdea0c commit AI suggested performance enhancements 2025-10-07 14:42:40 +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
e061c1f5a9 rework threads and also use app_ids where applicable 2025-10-07 14:11:14 +02:00
8e9eff4f3a move semester dataclass into logic dir 2025-10-07 14:10:13 +02:00
11d5d67538 DB: add newedtion schema 2025-09-22 09:46:13 +02:00
7079b4d47f add insert, request, ordered functions for new edition books 2025-09-22 09:37:25 +02:00
1ee7901d49 add eta, items/s signals, calculate values 2025-09-08 10:36:18 +02:00
1f34442397 rework catalogue wrapper to split entries based on space div 2025-09-08 10:34:34 +02:00
a64fa9770f refactor searchBook to allow for regex matches 2025-09-03 12:32:05 +02:00
a3b68c2b77 Refactor initialization: streamline log and config directory creation; enhance module exports in backend and UI widgets 2025-09-03 10:42:12 +02:00
0ac5051aef Add Catalogue class for book searching and connection handling 2025-09-03 10:41:40 +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
b344d806e2 refactor: reorganize imports and enhance logging setup; improve book processing logic in NewEditionCheckerThread 2025-09-03 10:33:15 +02:00
0e3199e289 add warning log to fix crashing bug 2025-09-03 10:32:39 +02:00
5f15352401 feat: implement NewEditionCheckerThread and related utility functions for book data processing 2025-09-01 14:31:23 +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
42dc945ab6 change critical to debug for database path log 2025-07-03 07:22:26 +02:00
a6d9498b39 rework documentation launch, use generated files instead of pure mkdocs, add quiet handler for use with logging in terminal 2025-07-03 07:20:57 +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
86849b67f5 rework semester class using chatgpt - fixes offset bug, implements generate_missing function 2025-06-18 13:32:59 +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
b874656eba set log level to INFO for improved logging clarity 2025-06-03 13:17:13 +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
0c8ecb2054 Remove unused imports and clean up code structure across multiple files 2025-05-13 11:39:47 +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
d71de1bd1a add files from folder merger 2025-05-12 09:05:09 +02:00
468e8674ab update logging, update docuprint add new ui for generating documents 2025-05-09 11:57:18 +02:00
8c68655f9f add type checking, error handling, fix search issue. Closes #3 Closes #4 Fixes #3 Fixes #4 2025-04-28 15:36:29 +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
e6bbc469b1 update logging to be on a per file basis 2025-04-28 10:43:45 +02:00
5923bfd7ff add logger 2025-04-28 10:18:28 +02:00
8b83b8c305 add logger 2025-04-28 10:16:24 +02:00
eb0b7a1fec add testclass, rework logging 2025-04-28 10:15:22 +02:00
80b96865e7 add SemapDocument and Book dataclasses, improve word document parsing 2025-04-25 12:16:14 +02:00
6ff7a70d11 rework logging, fix calculation error 2025-04-07 07:53:57 +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
4d1fc94ffa create documentation thread 2025-02-06 15:35:08 +01:00
02d7b5a09f delete unnecessary files 2025-02-06 15:34:13 +01:00