mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-04 12:30:07 +08:00
MAINT: Add formatting for printing of answer key DataIndex.
Output format of the range compatible with Excel, so that it can be copy and pasted back into the spread sheet for easier corroboration.
This commit is contained in:
1 parent
b89886297f
commit
faee91876f
1 file changed
+8
@@ -133,6 +133,14 @@ class DataIndex(object):
|
||||
def row_end_index(self):
|
||||
return self.row_end - 1
|
||||
|
||||
def __str__(self):
|
||||
return "'{sheet_name}'!{col}{row_start}:{col}{row_end}".format(
|
||||
sheet_name=self.sheet_name,
|
||||
col=self.col,
|
||||
row_start=self.row_start,
|
||||
row_end=self.row_end
|
||||
)
|
||||
|
||||
|
||||
class AnswerKey(object):
|
||||
|
||||
|
||||
Reference in new issue
Block a user