Initial changes for multiple solutions per submission

This commit is contained in:
Collin Rapp
2021-02-14 20:14:46 -08:00
parent 32522e5638
commit 6ccee0569c
3 changed files with 308 additions and 61 deletions

View File

@@ -14,9 +14,9 @@ CONFIGPATH = os.path.join(DATADIR, 'pointsbot.toml')
# Path to the sample config file
# Unused for now
SAMPLEPATH = os.path.abspath(os.path.join(os.path.dirname(__file__),
'..',
'pointsbot.sample.toml'))
# SAMPLEPATH = os.path.abspath(os.path.join(os.path.dirname(__file__),
# '..',
# 'pointsbot.sample.toml'))
### Primary Functions ###
@@ -115,7 +115,6 @@ class Config:
def save(self):
obj = deepcopy(vars(self))
orig_levels, obj['levels'] = obj['levels'], []
# obj['levels'] = []
for level in orig_levels:
obj['levels'].append({
'name': level.name,