summaryrefslogtreecommitdiff
path: root/squaredeal/__init__.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-01-19 01:03:46 +0100
committeremkael <emkael@tlen.pl>2024-01-19 01:03:46 +0100
commitb7c0d0c8515b9563b19aa9bfd4dca8b24a7c6de1 (patch)
treecb640a213741f085d065fb907d8ae16bc0b09e71 /squaredeal/__init__.py
parent3009a357f4da2ba068e17ef6a923d972e1dbc4c9 (diff)
Some TODOs added
Diffstat (limited to 'squaredeal/__init__.py')
-rw-r--r--squaredeal/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/squaredeal/__init__.py b/squaredeal/__init__.py
index e44f780..feed499 100644
--- a/squaredeal/__init__.py
+++ b/squaredeal/__init__.py
@@ -21,6 +21,7 @@ class SquareDealPhase(object):
if len(parts) != 4:
raise SquareDealError('Malformed phase definition: %s' % (phasestr))
self.sessions = int(parts[0])
+ # TODO: parse the funky a-b,c-d,e-f and NxM syntax
self.boards = int(parts[1])
self.prefix = parts[2]
self.info = parts[3]
@@ -29,6 +30,7 @@ class SquareDealPhase(object):
return ':'.join([str(self.sessions), str(self.boards), self.prefix, self.info or ''])
def _output_file_name(self, session, reserve=False):
+ # TODO: that funky multiple hash syntax for leading zeroes
return self.prefix.replace('#', str(session)) + ('reserve' if reserve else '')
def generate(self, session, delayed_info, reserve=False):
@@ -168,6 +170,7 @@ class SquareDeal(object):
sqdfile.writelines(sqd_contents)
def generate(self, phase, session, reserve=False):
+ # TODO: parse the funky n-m syntax for phase and session
phases_to_generate = range(0, len(self.phases)) if phase is None else [phase-1]
for phase in phases_to_generate:
self.phases[phase].generate(session, self.delayed_value, reserve)