1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

Remove sleep and print

This commit is contained in:
plt
2012-07-03 16:39:28 +08:00
parent 3a0d175f36
commit fda1edfe1f
2 changed files with 2 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ class UploadProgressCachedHandler(FileUploadHandler):
self.progress_id = self.request.GET['X-Progress-ID']
elif 'X-Progress-ID' in self.request.META:
self.progress_id = self.request.META['X-Progress-ID']
print "handle_raw_input: ", self.progress_id
# print "handle_raw_input: ", self.progress_id
if self.progress_id:
self.cache_key = "%s_%s" % (self.request.user.username, self.progress_id )
# make cache expiring in 30 seconds
@@ -126,7 +126,6 @@ class UploadProgressCachedHandler(FileUploadHandler):
pass
def receive_data_chunk(self, raw_data, start):
time.sleep(1)
if self.cache_key:
data = cache.get(self.cache_key)
data['uploaded'] += self.chunk_size