Commit Graph

271 Commits

Author SHA1 Message Date
Spotlight
69293c6bf5
Upgrade Flask-Limiter
The issue involving `key_func` was it not being specified. Additionally, we currently only support the in-memory backend - this will need to be rectified at a future point, but serves our purposes at the moment.
2025-04-04 06:06:32 -05:00
Spotlight
0cf83c37aa
Further cleanup on server/ flattening
This is a continuation of 1fa2402d0a.
2025-04-04 05:53:31 -05:00
Spotlight
1fa2402d0a
Migrate client into 3DS-RPC/3DS-RPC-Desktop
Minimal changes have been to flatten the `server/` subdirectory to the root of the repository. More testing will be required.
2025-04-03 22:06:10 -05:00
Spotlight
b0a6d43c44
backend: Delay after syncing friends 2025-01-29 05:39:05 -06:00
Spotlight
e33db2d7a6
backend: Replace add_friend_by_principal_id with sync_friend 2025-01-29 04:56:02 -06:00
Spotlight
9851c74c26
backend: Attempt at reformatting main loop
This reduces complexity in some areas, but heightens it in others.
2025-01-29 04:24:34 -06:00
Spotlight
48d3d212ff
backend: Separate main loop into separate function
This removes several layers of indentation, increasing readability.
2025-01-29 02:46:37 -06:00
Deltaion Lee
34eb8868cb TaS -> ToS 2025-01-28 19:20:39 -06:00
Til
ac29e3808d change to 2025 2025-01-21 21:04:50 -06:00
Spotlight
247655fe57
Migrate frontend to modern stack
This (hopefully) makes changes to the frontend somewhat easier.
2024-12-10 02:15:28 -06:00
Spotlight
0f18e9f843
Fix session retirement 2024-10-15 19:03:49 -05:00
Spotlight
be2231e174
rpc: Retire Discord sessions with expired tokens 2024-10-02 22:58:49 -05:00
Spotlight
28a9d7eca4
rpc: Temporarily disable deletions 2024-10-02 22:27:55 -05:00
Spotlight
a785e64352
rpc: Don't send timestamps
These seem broken :(
2024-10-02 22:24:49 -05:00
Spotlight
23573a2332
rpc: General fix-ups 2024-10-02 22:13:11 -05:00
Spotlight
29e832ac29
rpc: Specify start timestamp
This resolves #41. It additionally tidies up quite a lot.
2024-10-02 21:48:22 -05:00
Spotlight
4b5b184e88
site: Initialize RPC session token to null 2024-10-02 21:28:26 -05:00
Spotlight
15079b56d7
rpc: Remove redundant update
`last_accessed` is not otherwise set, so we can remove it.
2024-10-02 21:17:18 -05:00
Spotlight
f4aca03a60
rpc: Have class functions be voids 2024-10-02 20:45:32 -05:00
Spotlight
5755a272de
rpc: Do not repeat within additional while loop
We additionally add a delay at the end of the loop to prevent accidental spam.
2024-10-02 20:44:41 -05:00
Spotlight
45c52a9cbf
rpc: Restructure logging
Console was spammed. Oops :(
2024-10-02 20:10:38 -05:00
Spotlight
3420af3a74
rpc: Only reset sessions when a session is ongoing
This otherwise wastes our time.
2024-10-02 20:08:11 -05:00
Spotlight
7421bf3f80
rpc: Restructure APIClient
This has APIClient revolve around a single `DiscordTable` at a time.

It additionally has inactive users isolated via a direct database query, hopefully permitting us to skip processing them more quickly.
2024-10-02 19:23:35 -05:00
Spotlight
2cd14d4e49
rpc: Rename Discord to APIClient
`Discord` itself is not a very descriptive name, and can be confused with the outer `DiscordTable` table (whose name is internally `discord`). :(
2024-10-02 18:29:43 -05:00
Spotlight
cf30aff113
Rename columns to match model
This additionally introduces a unique constraint over `site_session_token` which was somehow missing from databases previously.
2024-09-24 13:17:51 -05:00
Spotlight
06745ec069
Re-create index over network column 2024-09-24 13:17:27 -05:00
Spotlight
cb5e001613
Use correct property name
Oops 😅
2024-09-24 08:58:40 -05:00
Spotlight
51b3de2307
Add SQLite3-specific migrations 2024-09-24 00:58:18 -05:00
Spotlight
509024d33d
fixup! Revise initial migration
Several discrepancies existed between the production database, a development database, and the defined SQLAlchemy models.
2024-09-24 00:06:31 -05:00
Spotlight
c30ae776a2
Revise initial migration 2024-09-23 23:57:53 -05:00
Spotlight
fa7d0cef52
Ensure BigInteger for several types 2024-09-23 23:35:36 -05:00
Spotlight
12f16dbf36
Add initial database migration
This primarily adds an index over `network` in `friends` alongside several type issues. It applies primarily towards SQLite3.
2024-09-23 23:06:20 -05:00
Spotlight
e54133792c
Ensure table metadata is passed to Alembic 2024-09-23 22:58:57 -05:00
Spotlight
6c7d738893
Initialize Flask-Migrate 2024-09-23 22:10:57 -05:00
Spotlight
989cc348d0
Ignore several IDEs 2024-09-23 22:10:27 -05:00
Spotlight
b18e3650e8
Further PEP 8 tidying of server
Continuation of 9514740fc9.
2024-09-23 12:02:14 -05:00
Spotlight
4c1d0db359
Redefine friend_code as string
The constant back-and-forth of friend codes between strings and integers should be cleaned up in the future.
2024-09-23 02:55:47 -05:00
Spotlight
9514740fc9
General PEP 8 tidying of server 2024-09-23 02:55:22 -05:00
Spotlight
51a6e108fb
Properly update last_accessed time 2024-09-23 02:44:09 -05:00
Spotlight
45aa4c2e74
Remove aliased API routes
These appear to go unused. Let's not support them in order to prevent cluttering the codebase.
2024-09-23 02:18:30 -05:00
Spotlight
2f3233044d
fixup! Restructure get_presence function
Exception handling in 3c43d0a4f3 was not fully tested locally.
2024-09-23 02:11:01 -05:00
Spotlight
3c43d0a4f3
Restructure get_presence function
Our shared `get_presence` function is also used while rendering page templates, so API-specific checks were migrated into the API-specific routes calling.
2024-09-23 02:07:00 -05:00
Spotlight
bfe9f47e8d
Adjust sqlite3 to new config table schema 2024-09-23 01:30:24 -05:00
Spotlight
1edbfa40f2
Add Pretendo friend code 2024-09-23 00:27:39 -05:00
Spotlight
fcaf108862
Specify Python 3.12 for server
We rely on several newer Python features, and aim to support 3.12 or later. This assists programs such as `pyenv` to use the correct version.
2024-09-19 09:38:11 -05:00
Logan
06e2b05a6c
Implement rudimentary multi-console support 2024-09-08 00:27:39 -05:00
Spotlight
ca11632340
Tidy up backend variable names 2024-09-06 22:33:04 -05:00
Spotlight
0caae7c837
Migrate api/love.py towards PEP 8 2024-09-06 22:32:59 -05:00
Spotlight
5d3a07b4c5
Rename column variables to be unambiguous 2024-09-03 19:41:37 -05:00
Spotlight
fc327b71a3
Use proper session variable to reset presence 2024-09-03 19:26:10 -05:00