Skip to content

Commit a3241cd

Browse files
committed
fix candidate and referenda delimiters
1 parent 8e30f1a commit a3241cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/table_defaults.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def default_vf_table(self,source='_vf',file_location=None):
3131

3232
@memoize('DEFAULT_CANDIDATE_TABLE')
3333
def default_candidate_table(self,source='_ca',file_location=None):
34-
return self.specific_table((self.source_prefix or '') + source,file_location or self.candidate_file_location)
34+
return self.specific_table((self.source_prefix or '') + source,file_location or self.candidate_file_location,',')
3535

3636
@memoize('DEFAULT_OFFICE_HOLDER_TABLE')
3737
def default_office_holder_table(self,file_location=None):
@@ -42,16 +42,16 @@ def default_office_holder_table(self,file_location=None):
4242

4343
@memoize('DEFAULT_REFERENDA_TABLE')
4444
def default_referenda_table(self,file_location=None):
45-
return self.specific_table('referenda',file_location or self.referenda_file_location)
45+
return self.specific_table('referenda',file_location or self.referenda_file_location,',')
4646

4747
@memoize('DEFAULT_ELECTION_TABLE')
4848
def default_election_table(self,source='_elec',file_location=None):
4949
return self.specific_table((self.source_prefix or '') + source,file_location or self.election_file_location)
5050

51-
def specific_table(self,source,file_location):
51+
def specific_table(self,source,file_location,field_sep=voterfile_delimiter):
5252
return dict(self.DEFAULT_TABLE.items() + {
5353
'filename':file_location,
54-
'field_sep':voterfile_delimiter,
54+
'field_sep':field_sep,
5555
'udcs':dict(self.DEFAULT_TABLE['udcs'].items()+{'source':source}.items()),
5656
}.items())
5757

0 commit comments

Comments
 (0)