Commit Graph

  • 9f1349d6a0
    Move gob Register functions to pokerogue-server.go maru 2024-04-17 21:11:53 -0400
  • dbcc0d04e6
    Add new exit handler maru 2024-04-17 19:31:12 -0400
  • 5916c9e5e5
    Use UTC for cron maru 2024-04-17 19:03:25 -0400
  • 9477889390
    Use better cron package maru 2024-04-16 21:01:24 -0400
  • 420a4d17b3 Fix version check for outdated client Flashfyre 2024-04-16 09:21:23 -0400
  • d232773ecd Add game version check to save (WiP) Flashfyre 2024-04-15 10:10:22 -0400
  • 25abf4914b
    Use TokenSize const in api common.go maru 2024-04-15 03:24:45 -0400
  • 39199dc1b1
    Move consts in account package to common.go maru 2024-04-15 03:18:40 -0400
  • f395dc145b
    Code consistency maru 2024-04-15 03:15:10 -0400
  • 98ecbbb529
    Rename 'recordNewRun' to 'recordNewDaily' maru 2024-04-14 20:15:25 -0400
  • c3a3746639
    Clean up daily package maru 2024-04-14 20:13:45 -0400
  • 1f0f38d38e
    Move endpoint categories into their own packages maru 2024-04-14 20:03:53 -0400
  • 522ce9f4fa
    Update GitHub link maru 2024-04-14 19:25:36 -0400
  • 10606ebb13
    Consistency in handleSavedataClear maru 2024-04-14 19:08:47 -0400
  • 2d5f777efd
    Move argon2 functions to its own file maru 2024-04-14 19:05:04 -0400
  • c41784f4c8 Update save data schema to support starter data Flashfyre 2024-04-13 18:48:16 -0400
  • 6a0a130b1d Nil check battle and classic session count Matthew Olker 2024-04-11 18:40:37 -0400
  • a4014feea8 Track player vouchers Flashfyre 2024-04-11 10:13:35 -0400
  • ba7ab22d4d Fix voucher compensation logic Flashfyre 2024-04-11 10:01:26 -0400
  • 72151d9c01
    Fix new save reader/writer functions maru 2024-04-11 00:15:07 -0400
  • 9a0d4a2698
    Defer close calls in save data reader functions maru 2024-04-10 15:39:53 -0400
  • 1b5da99cda
    Make save reading/writing more efficient maru 2024-04-10 07:25:39 -0400
  • af5f9798ae
    Fix comment indentation in generic.go maru 2024-04-10 02:54:12 -0400
  • 5893350784
    Pass struct to handleAccountLogin and handleAccountRegister maru 2024-04-10 02:49:41 -0400
  • 422a850354
    Move httpError func to generic.go maru 2024-04-10 02:41:58 -0400
  • 01c037a7a2
    Use JSON encoders instead of Marshal maru 2024-04-10 00:00:47 -0400
  • 992864b785 Add voucher compensation logic Flashfyre 2024-04-09 22:22:00 -0400
  • 0f8fc0085e
    Change certain struct field names back to what they were maru 2024-04-09 01:28:56 -0400
  • 85055d2921
    Fix variable re-use bug maru 2024-04-08 21:34:42 -0400
  • d97e07b522
    Fix condition to read save data from request body maru 2024-04-08 20:50:47 -0400
  • 977a05049e
    Add missing return maru 2024-04-08 20:47:23 -0400
  • 5778675171
    Major refactor of API maru 2024-04-08 20:44:36 -0400
  • 0edfeab3ca
    Various styling changes maru 2024-04-08 18:15:09 -0400
  • 80a2c637d2
    Indentation consistency near calls to rand.Read maru 2024-04-08 17:49:50 -0400
  • 93bb792964
    Don't include http error code in log maru 2024-04-07 17:29:21 -0400
  • 0eed542b2e
    Add http error logging maru 2024-04-07 17:22:34 -0400
  • dcb1c76370 Add endpoints for stats Flashfyre 2024-04-06 18:15:47 -0400
  • 99d3490172 Update account stats on system save Flashfyre 2024-04-06 17:43:11 -0400
  • b66e0fd690 update init.sql #1 meepen 2024-04-04 10:59:35 -0400
  • 99ea09f493 add docker-compose for easier local development meepen 2024-04-04 10:47:55 -0400
  • d12a008259
    Various changes maru 2024-04-01 22:54:55 -0400
  • 253e462536 Cache player count instead of querying per user Flashfyre 2024-04-01 21:42:48 -0400
  • fa972bab37 Don't include banned users on rankings Flashfyre 2024-04-01 21:08:00 -0400
  • 8ad0f396ea Add seed check to daily run update condition Flashfyre 2024-03-24 20:06:04 -0400
  • eb671f2cb7 Update account activity on rankings load Flashfyre 2024-03-24 19:00:04 -0400
  • 7d23859dea Add player count handler Flashfyre 2024-03-23 21:34:18 -0400
  • 2495c1ee9a Fix incorrect page count for weekly rankings Flashfyre 2024-03-23 16:33:26 -0400
  • 53ccdc5921 Add weekly rankings and ranking pagination support Flashfyre 2024-03-23 16:26:00 -0400
  • 48c533cb78 Fix higher score being overwritten by worse daily runs Flashfyre 2024-03-22 21:42:27 -0400
  • 4419ead54c Delete session on loss Flashfyre 2024-03-22 10:18:53 -0400
  • a0f8ab658f Fix daily run scheduler not working Flashfyre 2024-03-19 22:05:37 -0400
  • be04408336 Update random daily seed logic Flashfyre 2024-03-18 19:55:02 -0400
  • 2cb7be52eb Change daily seed generation and update schema for recording failed daily runs Flashfyre 2024-03-17 20:48:49 -0400
  • 4710617f23 Add limit and pagination to rankings query Flashfyre 2024-03-17 13:36:32 -0400
  • ff98047caa Add daily run rankings Flashfyre 2024-03-17 13:18:51 -0400
  • 71889f7daa Add score to session save data Flashfyre 2024-03-17 11:34:11 -0400
  • 5214c4aff4 Add mode to seed completion Flashfyre 2024-03-17 00:21:04 -0400
  • 2e964b007d Add daily runs and seed completions Flashfyre 2024-03-16 21:51:13 -0400
  • 23eb0bbbe8 Log last activity date Flashfyre 2024-03-15 16:38:32 -0400
  • 967cbeecdd Fix bad filename Flashfyre 2024-03-15 15:38:03 -0400
  • 12137bc3b7 Add session save slots Flashfyre 2024-03-14 21:44:39 -0400
  • 2938dbc19d Add support for egg moves data Flashfyre 2024-02-25 12:45:29 -0500
  • 7d962ae838
    Bump Go version maru 2024-02-21 15:33:38 -0500
  • 06ade19e2c Add starter move data to system save data spec Flashfyre 2024-02-21 00:38:25 -0500
  • 9e38ccccbc Add system data integrity check Flashfyre 2024-02-14 17:12:10 -0500
  • 448eeeee4a Add player gender field and session history data defs Flashfyre 2024-02-05 23:24:37 -0500
  • f7ffb481a7 Add session play time to model Flashfyre 2024-01-11 20:28:01 -0500
  • b1355e96dd Add game stats to system data Flashfyre 2024-01-11 12:26:43 -0500
  • 83e354a9ef Add nature to dex entry Flashfyre 2024-01-05 21:25:13 -0500
  • b64007a5f2 Fix minor issues with session data handling Flashfyre 2023-12-31 17:39:11 -0500
  • c1098bb415
    Fix hasGameSession maru 2023-12-31 16:57:44 -0500
  • c1ada7f862
    Add hasGameSession to account info response maru 2023-12-31 16:42:59 -0500
  • 61d5dd6852
    Fix filesystem error handling maru 2023-12-31 16:27:21 -0500
  • 7319f13b44
    Fix typo maru 2023-12-31 16:20:45 -0500
  • a19280d02c
    Add cloud save data maru 2023-12-31 16:12:20 -0500
  • e05f6f752b Add last logged in date to accounts table Flashfyre 2023-12-30 22:05:56 -0500
  • 6a7aafbff4
    Update endpoint comments maru 2023-12-29 15:15:16 -0500
  • be62fc939a
    Add token length check to account info handler maru 2023-12-29 15:12:57 -0500
  • b1e67634df
    Fix generated token size maru 2023-12-29 15:01:04 -0500
  • 575167f0f9
    Simplify error return in GetUsernameFromToken maru 2023-12-29 14:38:12 -0500
  • d533eeee5f
    Add more CORS headers maru 2023-12-29 14:34:58 -0500
  • 955359c3b1
    Use Set instead of Add for CORS header maru 2023-12-29 14:33:11 -0500
  • 1dee0cbc3a
    Add debug mode bool maru 2023-12-29 14:30:47 -0500
  • cd2118dfec
    Use localhost for dbaddr default maru 2023-12-28 22:18:57 -0500
  • e8fc5aad13
    Edit comment for addr flag maru 2023-12-28 22:16:47 -0500
  • b64ae0bf47
    Rename address flag to addr maru 2023-12-28 22:11:16 -0500
  • 40c2b50f91
    Rename network flag to proto maru 2023-12-28 22:08:50 -0500
  • 9ef76f1064 Fix account session insert query typo Flashfyre 2023-12-28 21:37:04 -0500
  • 9d9a24fb96 Merge branch 'master' of https://github.com/Flashfyre/pokerogue-server Flashfyre 2023-12-28 21:32:11 -0500
  • 688b435bd1 Rename key column to hash Flashfyre 2023-12-28 21:32:03 -0500
  • 9a8b816b1b
    More verbose error response in register endpoint maru 2023-12-28 21:22:07 -0500
  • ee0326da0e
    Fix minimum username length maru 2023-12-28 21:20:46 -0500
  • 020c4d05bf
    Fix calls to isValidUsername maru 2023-12-28 21:17:09 -0500
  • b4be49bf80 Fix query keyword conflict by using alias Flashfyre 2023-12-28 21:13:21 -0500
  • f5d9cc6760
    Workaround for column name maru 2023-12-28 21:09:15 -0500
  • 8337f8021d
    Add extra error in account info handler maru 2023-12-28 20:11:54 -0500
  • 0e6b2bbf5c
    Fix query in GetUsernameFromToken maru 2023-12-28 20:09:50 -0500
  • 9ccfbd7acb
    Change default database name maru 2023-12-28 20:08:58 -0500
  • 445bc42e6f
    Drop /api prefix from endpoints maru 2023-12-28 20:08:11 -0500
  • f215a31e92
    Use chmod on socket file maru 2023-12-28 20:06:06 -0500