Commit Graph

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