Commit Graph
95 Commits
Author SHA1 Message Date
imcompiling 4bb7a925e5 Add Submissions data class. 2023-03-29 21:07:39 -04:00
imcompiling de1eba025a Limit results from autofill functions.
Also define some types.
2023-03-29 19:19:04 -04:00
imcompiling 37b4d2d62e correct usage of format_score_string. Make format of view message better. 2023-03-11 15:12:36 -05:00
imcompiling ab721c1625 create format_score_string function. 2023-03-10 16:27:40 -05:00
alwayscompiling c67e9ae617 Use pymysql for sql connection. 2022-12-10 16:12:21 -05:00
alwayscompiling dace72f5cc Correct empty message id handling. 2022-12-08 13:28:13 -05:00
alwayscompiling f468a028d0 Changed send_highscore_message to take guild rather than channel. 2022-12-08 13:02:39 -05:00
alwayscompiling d04b8c5e32 Squashed commit of the following:
commit 3627419e12
Merge: 2db744d 3446ce9
Author: alwayscompiling <[email protected]>
Date:   Tue Dec 6 22:36:51 2022 -0500

    Merge branch '45-sql-connection-timing-out' into develop

commit 3446ce9ca2
Author: alwayscompiling <[email protected]>
Date:   Tue Dec 6 22:27:05 2022 -0500

    Change session usage to on use basis.

commit 2db744d170
Author: alwayscompiling <[email protected]>
Date:   Sun Dec 4 21:44:54 2022 -0500

    Add restart policy.

commit fa33be1b4a
Author: alwayscompiling <[email protected]>
Date:   Sun Dec 4 21:25:57 2022 -0500

    Renamed docker compose file.
2022-12-06 23:02:01 -05:00
alwayscompiling 4c8444d077 Move config file into utilities. 2022-12-04 11:00:22 -05:00
alwayscompiling f4ec272567 Update functions for username length being in group. 2022-12-04 10:54:54 -05:00
alwayscompiling 081e406d51 Allow user to update score. 2022-12-03 20:49:17 -05:00
alwayscompiling e3a937649f Fix string formatting for splitting categories into multiple rows. 2022-12-02 22:08:01 -05:00
alwayscompiling 8624285d09 Remove another subquery. Enforce username length. 2022-12-02 20:41:10 -05:00
alwayscompiling aea2e0beb3 Remove subqueries when sending to IN call. 2022-12-02 18:27:50 -05:00
alwayscompiling 98dbd30327 Only delete specified user. cat_name is already the string. 2022-12-02 17:49:11 -05:00
alwayscompiling 52305c0107 Clarify parameter name for users, correct id usage for autofills. 2022-12-02 17:02:44 -05:00
alwayscompiling 4e832a084f Corrected autofill function return structures. 2022-12-02 16:32:22 -05:00
alwayscompiling 2e3f298036 Correct score submission value. Parse times correctly. 2022-12-01 23:30:21 -05:00
alwayscompiling 02145ba244 Create new python file for handling sqlalchemy. Removes circular import. 2022-12-01 22:58:39 -05:00
alwayscompiling 58e616ea47 Put pandas group into separate variable to remove warning. 2022-12-01 22:42:43 -05:00
alwayscompiling 2ec7296c0f Bug fixes from testing post_highscore_groups. Command name change. 2022-12-01 20:34:12 -05:00
alwayscompiling d0f328dd2d Variable name changes for clarification and fixing runtime issues. 2022-12-01 20:21:36 -05:00
alwayscompiling b9cc3b46bb Add autofill to get all users in guild. 2022-12-01 17:42:29 -05:00
alwayscompiling 439ad539a8 Updated message management to use new database. 2022-12-01 17:07:50 -05:00
alwayscompiling 34e55b962d Change autofill functions to return dicts of name id pairs. 2022-12-01 16:39:32 -05:00
alwayscompiling 9531dca892 Update guild listener to use new database. Add default config function to utils. 2022-11-30 21:45:46 -05:00
alwayscompiling 18df783d86 Update utils to use new database. 2022-11-30 20:54:06 -05:00
alwayscompiling 1e336e290d Catching AttributeError in autofill functions when invalid variables are sent. 2022-11-24 17:45:40 -05:00
alwayscompiling 8a2108fc14 Create shell commands and autofill functions. Fix set initializer in utils.autofill_users. 2022-11-22 17:12:26 -05:00
alwayscompiling 03c7a9303a Small rewrite to consolidate autofill_user function. Sort imports in message_management.py. 2022-11-22 17:02:18 -05:00
alwayscompiling a0c5527bf6 Create autofill functions for users in category and in table. Add function in category class to return a list of all users. 2022-11-22 16:26:31 -05:00
alwayscompiling 06b46ef27c Create general autofill table and category util functions. Update table class to have get categories function. 2022-11-17 14:50:48 -05:00
alwayscompiling 2e324dc9c5 Use the new category pad length variable. 2022-11-15 15:52:58 -05:00
alwayscompiling ee9a23ca79 Renamed data folder to classes. 2022-08-06 14:59:58 -04:00
alwayscompiling d4db9b51f0 Moved table size to table class. Edited table constructor. 2022-08-04 10:33:34 -04:00
alwayscompiling 66ace947c6 Saving guild after modification. 2022-08-03 22:21:49 -04:00
alwayscompiling b65254c2cc Runtime error fixes. 2022-08-03 20:03:48 -04:00
alwayscompiling 027da38574 Update utils function args to use new data classes instead of various args. 2022-08-03 19:28:47 -04:00
alwayscompiling 646ee0274b Move highscores_data to new location. 2022-07-30 16:34:33 -04:00
alwayscompiling f33dc8ce37 Skeleton needs to have dict for category scores. 2022-07-29 16:48:25 -04:00
alwayscompiling 306f983c8e Had to change access to scores. Somewhat weird due to them being dicts and dicts being difficult to access by index. 2022-07-29 16:35:45 -04:00
alwayscompiling 9e9d616814 Change tuple to list. Its stored as a list anyways. 2022-07-29 16:16:16 -04:00
alwayscompiling 5a09beea31 Convert add_score to have scores as a dict. 2022-07-29 15:56:37 -04:00
alwayscompiling 565babd1d3 Correct submission listener usage of HighscoresData. 2022-07-28 11:14:38 -04:00
alwayscompiling f136181216 Message map has guild id as an int. Update submission view to use HighscoresData. 2022-07-28 11:01:40 -04:00
alwayscompiling 463ef48052 Move message map creation to highscores.py. Was a circular import. 2022-07-28 10:41:10 -04:00
alwayscompiling 64004329da Add HighscoresData to register command. Add channel setting functions. 2022-07-28 10:25:56 -04:00
alwayscompiling f497928054 Get table names from data. Update post scores to use HighscoresData class. 2022-07-28 10:17:46 -04:00
alwayscompiling 0911ebfa45 Updated guild listener to HighscoresData class. 2022-07-27 22:32:28 -04:00
alwayscompiling beedf946c9 Update delete scores to new HighscoresData class. 2022-07-27 22:27:27 -04:00