mirror of
https://github.com/Xevion/contest-assistant.git
synced 2025-12-09 10:06:51 -06:00
switch to pipfile, new tests
This commit is contained in:
@@ -66,7 +66,7 @@ class ContestCog(commands.Cog):
|
||||
await self.bot.db.new_period(new_period)
|
||||
# Handle submissions state
|
||||
elif period.current_state == 0:
|
||||
await self.bot.db.update_period(period)
|
||||
await self.bot.db.update(period)
|
||||
return
|
||||
# Handle voting state
|
||||
elif period.current_state == 1:
|
||||
|
||||
@@ -14,7 +14,8 @@ logger.setLevel(constants.LOGGING_LEVEL)
|
||||
|
||||
Guild = namedtuple('Guild', ['id', 'prefix', 'submission', 'period'])
|
||||
Submission = namedtuple('Submission', ['id', 'user', 'guild', 'timestamp'])
|
||||
Period = namedtuple('Period', ['id', 'guild', 'current_state', 'started_at', 'voting_at', 'finished_at', ''])
|
||||
Period = namedtuple('Period', ['id', 'guild', 'current_state', 'started_at', 'voting_at', 'finished_at'])
|
||||
tables = [Guild, Submission, Period]
|
||||
|
||||
|
||||
class ContestDatabase(object):
|
||||
|
||||
Reference in New Issue
Block a user