Skip to content

Commit d899c21

Browse files
committed
adding ".xml" to filename
1 parent a386a74 commit d899c21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xform_builder/views.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ def clean_xls_file(self):
3737
path = save_in_temp_dir(xls)
3838
survey = create_survey_from_path(path)
3939
try:
40-
file_name = survey.id_string
4140
xform_str = survey.to_xml()
42-
self.file_name = file_name
41+
self.file_name = "%s.xml" % survey.id_string
4342
self.xform_str = xform_str
4443
except ODKValidateError, error:
4544
raise forms.ValidationError(u"Your XLS was valid but the form did not pass ODK Validate: %s" % repr(error))

0 commit comments

Comments
 (0)