Commit Graph

28 Commits

Author SHA1 Message Date
Christopher Ahern
2758be8680 Fix/pylint cleanup (#8)
Some checks are pending
CI / build (3.10) (push) Waiting to run
CI / build (3.8) (push) Waiting to run
CI / build (3.9) (push) Waiting to run
* Fix pylint warnings across all 24 Python files in web_server

- Add module, class, and function docstrings (C0114, C0115, C0116)
- Fix import ordering: stdlib before third-party before local (C0411)
- Replace wildcard imports with explicit named imports (W0401)
- Remove trailing whitespace and add missing final newlines (C0303, C0304)
- Replace dict() with dict literals (R1735)
- Remove unused imports and variables (W0611, W0612)
- Narrow broad Exception catches to specific exceptions (W0718)
- Replace f-string logging with lazy % formatting (W1203)
- Fix variable naming: UPPER_CASE for constants, snake_case for locals (C0103)
- Add pylint disable comments for necessary global statements (W0603)
- Fix no-else-return, simplifiable-if-expression, singleton-comparison
- Fix bad indentation in stripe.py (W0311)
- Add encoding="utf-8" to open() calls (W1514)
- Add check=True to subprocess.run() calls (W1510)
- Register Celery task modules via conf.include

* Update `package-lock.json` add peer dependencies
2026-02-07 20:57:28 +00:00
Chris-1010
b027b57b2a FIX: Categories' viewers for recommendations on HomePage;
FIX: New messages sent into chat by streamer are correctly highlighted;
REFACTOR: Remove console log & comment;
2025-03-09 22:12:30 +00:00
Chris-1010
9c44dfe598 UPDATE: Display altered message in chat when sent by streamer;
FIX: Chat order;
FIX: `num_viewers` display on `HomePage`;
FIX: Remove ability for streamer to follow themselves;
2025-03-06 22:53:22 +00:00
Chris-1010
04d99928aa FEAT: End any ongoing stream before a user logs out;
UPDATE: Remove assignments to session after registering a new user;
UPDATE: Create directories for user upon logging in in case they do not exist yet;
2025-03-03 01:55:57 +00:00
white
7d08432a60 UPDATE: final cleanup of backend code 2025-03-02 16:01:22 +00:00
EvanLin3141
451994b755 FIX: Followed Categories 2025-03-01 23:18:26 +00:00
EvanLin3141
613d50605f BUG: /categories/recommended 2025-03-01 22:11:41 +00:00
JustIceO7
6999e1a0a1 UPDATE: Added more categories to database and updated categories page 2025-02-20 00:08:13 +00:00
Oscar
9bd1e249ed FEAT: Added offset to routes when searching for categories 2025-02-13 14:24:05 +00:00
JustIceO7
105fa48f82 FEAT: Changed recommendation_utils to be able to dynamically request the amount of streams and categories with default values 2025-02-08 15:50:46 +00:00
JustIceO7
e6b8ad9b9e MAJOR: Restructured backend Flask application moved all non-routes into utils, renamed routes to not prefix get, created middleware.py to replace utils.py within blueprints 2025-02-08 14:35:46 +00:00
white
ff44f5b379 UPDATE: removed recommendation_utils and migrated methods into streams.py 2025-02-07 14:57:29 +00:00
Chris-1010
45208a51be FEAT: CategoryPage updated to display streams;
General fixes and cleanup of unecessary logging;
Update to 404 (NotFound) Page;
2025-02-07 03:57:54 +00:00
JustIceO7
b6ccd18fac FEAT: Made categories return the total number of viewers watching the category 2025-02-06 13:43:52 +00:00
a8af24e256 UPDATE: Refactored backend routes to improve readability 2025-02-05 21:04:05 +00:00
Chris-1010
60c19b3052 UPDATE: Fix to stream/userpage routing, Added UserPage and Tidy to code;
Added ability to visit a user's profile page from their stream;
Cleaned up code formatting, primarily changing from single quotes to double quotes;
Removed unused SignupForm component;
2025-02-04 14:59:18 +00:00
JustIceO7
1036494b7d UPDATE: Added recommended categories as well as streamer data
BUGFIX: Fixed wrong datatypes
2025-01-31 03:52:25 +00:00
JustIceO7
908870f751 FEAT UPDATE: Updated Utils to use new database. Changed route arguments. Added unfollow feature 2025-01-31 02:00:31 +00:00
white
5d3479e726 UPDATE: Added more complete test queries, fixed recommendations queries 2025-01-30 11:24:52 +00:00
white
f981b69c94 PATCH: Fixed database not returning data in recommendations
UPDATE: Decreased polling time to 1 second for later use
2025-01-30 10:24:26 +00:00
Chris-1010
6586506c97 MAJOR Fix: Resolved API Request Delays;
Feat: Added a dev test account to users for expedited login;
Refactor: Improve socket connection handling and add logging for API request duration & update to ListRow key generation for improved uniqueness;
Feat: Made it so streams with no set thumbnail use their category's thumbnail;
Minor Fix: Corrections to db recommendation methods;
2025-01-30 03:53:33 +00:00
JustIceO7
dfdbe4a7d4 MAJOR: Reworked database to be easier to use and close automatically to prevent resource leaks 2025-01-29 17:47:29 +00:00
Chris-1010
c0a110c76d Patch: Fix to StreamerRoute to correctly send user to UserPage/VideoPage;
Update: Display Category Thumbnails
2025-01-29 14:53:22 +00:00
5b96ccb377 PATCH: Closed database connections in util to avoid data leaks 2025-01-29 12:47:35 +00:00
white
e2070be9f9 PATCH: fixed issues with authentication 2025-01-29 11:31:43 +00:00
JustIceO7
95827ccf95 UPDATE: Added util functions for handling streaming routes 2025-01-29 03:04:56 +00:00
ThisBirchWood
13d7351588 UPDATE: Began on removing streamers table, and replacing the corresponding code, NOT TESTED (if it's too messy to work with then rollback) 2025-01-28 11:01:06 +00:00
JustIceO7
ff9feaacec Created utils folder which holds funcs to be called within the flask routes, added pseudo code to streams.py and user.py which are untested, data still needs to be jsonified to be sent to React 2025-01-26 06:51:24 +00:00