Clear existing data_chunks when downloading again--web service.

This commit is contained in:
Jim Miller
2014-09-08 16:13:52 -05:00
parent 61ba4da640
commit 9e0a3d7afa
+4
View File
@@ -532,6 +532,10 @@ class FanfictionDownloaderTask(UserConfigServer):
def c(data):
return data
# delete existing chunks first
for c in download.data_chunks:
c.delete()
index=0
while( len(data) > 0 ):
DownloadData(download=download,