Private
Public Access
1
0

fixed zip file

This commit is contained in:
Sander Roosendaal
2017-03-28 10:04:04 +02:00
parent b00f924c24
commit 294d18662b
3 changed files with 3 additions and 1 deletions

View File

@@ -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':