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