fixed zip file
This commit is contained in:
@@ -29,6 +29,7 @@ from rowingdata import (
|
||||
from rowers.models import Team
|
||||
|
||||
import os
|
||||
import zipfile
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
import itertools
|
||||
@@ -573,7 +574,7 @@ def new_workout_from_file(r,f2,
|
||||
# from the NK zip file (issue #69 on bitbucket)
|
||||
f2 = z.extract(z.namelist()[0],path='media/')
|
||||
fileformat = fileformat[2]
|
||||
os.remove(f_to_be_deleted)
|
||||
os.remove(f_to_be_deleted)
|
||||
|
||||
# Some people try to upload Concept2 logbook summaries
|
||||
if fileformat == 'c2log':
|
||||
|
||||
BIN
rowers/testdata/zipfile.zip
vendored
Normal file
BIN
rowers/testdata/zipfile.zip
vendored
Normal file
Binary file not shown.
@@ -1146,6 +1146,7 @@ class ViewTest(TestCase):
|
||||
f_to_be_deleted = w.csvfilename
|
||||
os.remove(f_to_be_deleted+'.gz')
|
||||
|
||||
|
||||
# def test_upload_view_FIT_SpeedCoach2a(self):
|
||||
# self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user