mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 01:27:10 +00:00
[svn] Fixed broken buttons on controlpanel, added CAVETAB2.CSV export and download buttons and made them work too.
Changed ordering on PersonExpeditions so that it is based on their expedition. That way, even if we don't have date info on when a user was on expo exactly, pages like personindex work correctly.
This commit is contained in:
@@ -42,8 +42,7 @@ def cavetabRow(cave):
|
||||
caveRow[headers.index(column)]=modelField.replace(u'\xd7','x').replace(u'\u201c','').replace(u'\u2013','').replace(u'\xbd','')
|
||||
return caveRow
|
||||
|
||||
def writeCaveTab(path):
|
||||
outfile=file(path,'w')
|
||||
def writeCaveTab(outfile):
|
||||
cavewriter=csv.writer(outfile,lineterminator='\r')
|
||||
cavewriter.writerow(headers)
|
||||
for cave in models.Cave.objects.all():
|
||||
|
||||
Reference in New Issue
Block a user