summaryrefslogtreecommitdiff
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
parent3009a357f4da2ba068e17ef6a923d972e1dbc4c9 (diff)
Some TODOs added
-rw-r--r--pysquaredeal.py1
-rw-r--r--squaredeal/__init__.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/pysquaredeal.py b/pysquaredeal.py
index a81e16f..1b74357 100644
--- a/pysquaredeal.py
+++ b/pysquaredeal.py
@@ -40,6 +40,7 @@ argparser_generate.add_argument('--reserve', action='store_true', help='generate
arguments = argparser.parse_args()
+# TODO: this should be an interface class, also rename SquareDeal to SQD or sth and this to SquareDeal
if arguments.command == 'create':
sd = SquareDeal()
sd.name = arguments.event_name
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)