Commit Graph

56 Commits

Author SHA1 Message Date
2898917b64 Remove print statements 2024-05-29 19:30:07 -04:00
9ec0044458 Use UTC for tokens_valid_from in user config 2024-05-29 13:21:50 -10:00
0a572fba92 Refactor API keys "super user" to "full access" 2024-03-17 12:50:11 -04:00
3d4153f941 Add lockout user for forgot password
Hide lockout user from users list
2024-01-16 15:36:14 -05:00
6c1e1b4737 Add Arcadia Notifications to Front end 2023-09-01 14:48:20 -04:00
89307cecd5 Fix get server users 2023-03-09 11:06:55 -05:00
491415c7fa Re-black codebase with new standard 2023-02-15 18:01:21 -05:00
05f08773a3 Add themes to users DB 2022-09-26 21:23:16 -04:00
82c0452f55 Add pfp caching for users 2022-09-12 15:34:47 -04:00
b1769ba9a4 Remove manager parameter from add_raw_pass 2022-08-27 11:25:55 -04:00
245d64ca45 Refactor managed roles to users controller/model 2022-08-20 12:56:38 -04:00
c1d16522d0 Add manager field to users 2022-08-19 13:09:59 -04:00
f4660fb36c Make fresh install more efficient 2022-08-07 11:30:00 -04:00
a498ef8986 Check if username exists 2022-07-05 19:49:51 -04:00
e73dd682c8 Fix no-else-* QA warnings 2022-06-14 15:40:57 +03:00
0ffe6801d8 Fix user email bug on import3 2022-06-13 12:47:42 -04:00
166272e12c Replace .count() != 0 with .exists() 2022-05-25 14:24:34 +03:00
0d62223982 Merge branch 'dev' into bugfix/api-v2-bugfixes 2022-05-23 20:20:49 +03:00
02f5318f76 Merge branch 'dev' into merge/pretzel-lukas-cleanup-nosquash 2022-05-20 22:04:41 +03:00
1b059b24df Update get_*_column functions
Use getattr instead of model_to_dict in single columns. We might want to
change the functions later on so peewee's ForeignKeyField primary key
shorthand like model.server_id instead of model.server.server_id
will work.

This will very likely increase performance of the get_*_column functions
due to not having to call the model_to_dict function from Peewee's
helper library.
2022-05-20 13:15:50 +03:00
fbf820fd38 Make some model removals way more efficient 2022-05-16 01:18:08 +03:00
65ba65a67d Make model *_exists functions way more efficient 2022-05-16 01:12:03 +03:00
0115421243 Make queries narrower 2022-05-16 01:02:17 +03:00
27d310e2de Declutter set()s 2022-05-16 00:55:22 +03:00
bf59e2de6c Add and fix API v2 and db
* Add basic role routes
* Add API v2 404 handler
* Add API v2 home handler pointing to the wiki
* Add tons more todos
* Add get_*_columns and get_*_column functions for many db models
* Modify and add tons of model and controller functions
2022-05-08 00:07:55 +03:00
53459d83dc Merge branch 'feature/api-v2' into merge/api-v2 2022-05-05 03:32:09 +03:00
1aa0d65cf7 Merge branch feature/external-frontend to feature/api-v2 without the frontend 2022-04-14 15:33:53 +03:00
92c8fc04f3 Refactor to standardize class/variable naming 2022-04-14 03:10:25 +01:00
42ca4bb973 Refactored the yes to not pass objects in import
Merge Conflicts ᴙ Us
2022-04-11 00:23:55 -05:00
19d2c9ec1c Revert "Merge branch 'bug/DB_Lock' into 'dev'"
This reverts merge request !241
2022-04-10 22:00:44 +00:00
3826cb3486 Change all databases to queue 2022-04-10 16:33:54 -04:00
c7394ab77e Add ability for users to disable hints 2022-04-02 21:25:26 -04:00
23ecef6826 Revert Singleton testing operators on db querys
These are not compatible with peewee querys, see MR !233 for details
2022-04-02 17:54:30 +01:00
e6b1eef4c2 Remove more unnecessary singleton lint exemptions
If testing truthy/falsy we should be using is
2022-04-02 02:58:31 +01:00
09bba7fdb0 Further fix files to conform with Black pylintrc
Mostly just breaking up strings and comments into new lines
Some strings dont require 'f' but keeping in for readability
with the rest of the concatinated string
2022-03-23 06:16:22 +00:00
2a512d7273 Fix files to conform with new Black pylintrc
Mostly just breaking up strings and comments into new lines
Some strings dont require 'f' but keeping in for readability
with the rest of the concatinated string
2022-03-23 06:06:13 +00:00
e06fe8a52a Black codebase
Apply black formatting to codebase
2022-03-23 02:50:12 +00:00
bf6d0d0368 Appease the linter 2022-03-20 12:01:14 -05:00
4af62cbaca Added basic Import functions 2022-03-18 23:59:10 -04:00
7c822b715a Add functions for importing 3.x users, require passwords when adding users 2022-03-18 20:46:56 -05:00
d4a1efba78 Appease the linter 2022-03-13 09:26:38 -04:00
3a8174cc22 Add status bar for support log archive 2022-03-13 08:29:26 -04:00
b306d1f313 Tidy imports & dep auto-installer 2022-03-08 04:40:44 +00:00
71769d9d23 Appease the linter 2022-02-26 21:11:33 -05:00
09335fc3d9 Add ability to reorder servers based on user 2022-02-26 18:00:54 -05:00
e0ce1d118c Create pylintrc, code review pipeline & correct codebase errors
Fix uploads,
Only send server stats to user page when they have access to servers
2022-01-26 01:45:30 +00:00
b4bf125a0d Notifications are only visible to valid server users 2022-01-20 13:37:45 -05:00
93857f90db JWT login and multi API keys! 2022-01-15 02:23:50 +02:00
8424fc3149 Put support logs into a thread. 2022-01-13 20:42:53 -05:00
7dd24b6b15 Improved File Loading, Fixed Port checking 2022-01-08 23:03:45 +00:00