mirror of
https://github.com/Xevion/contest-assistant.git
synced 2025-12-06 05:14:41 -06:00
Expanded database testing
- Tested Submission.count descriptor - Tested Submission.clear_other_votes - Expanded Submission.advance testing to include exceptions, Submission .active, Submission.completed and Submission.voting - Changed db model __repr__ implementations to use f-strings - Fixed Submission.update force kwarg not implemented. - Small formatting changes, new TODO, noinspection on protected access - Votes setter now removes duplicate keys (maintains order) - Removed 'aiosqlite' from Pipfile general package requirements
This commit is contained in:
@@ -13,6 +13,7 @@ logger.setLevel(constants.LOGGING_LEVEL)
|
||||
|
||||
|
||||
# TODO: Add command error handling to all commands
|
||||
# TODO: Modify channel subject based on state
|
||||
|
||||
class ContestCommandsCog(commands.Cog, name='Contest'):
|
||||
"""
|
||||
@@ -39,6 +40,7 @@ class ContestCommandsCog(commands.Cog, name='Contest'):
|
||||
|
||||
# This prevents any cogs with an overwritten cog_command_error being handled here.
|
||||
cog = ctx.cog
|
||||
# noinspection PyProtectedMember
|
||||
if cog and cog._get_overridden_method(cog.cog_command_error) is not None:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user