Changeset 715671f in OpenWorkouts-current for ow/views/bulk.py


Ignore:
Timestamp:
Oct 13, 2019, 4:40:50 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
93b23a6
Parents:
fcf0ef3
Message:

(#77) Bulk workouts upload:

  • Added methods to extract files from compressed bulk files, then load workouts from those files.
  • Added a task to process/load workouts from "not loaded" bulk files
  • Added full tests coverage
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/views/bulk.py

    rfcf0ef3 r715671f  
    1 from pyramid.httpexceptions import HTTPFound, HTTPNotFound
     1from pyramid.httpexceptions import HTTPFound
    22from pyramid.view import view_config
    3 from pyramid.response import Response
    43from pyramid_simpleform import Form
    54from pyramid_simpleform.renderers import FormRenderer
     
    2827    # our blob storage validator.
    2928    # dirty fix until formencode fixes its api.is_empty method
    30     if isinstance(request.POST.get('tracking_file', None), bytes):
    31         request.POST['tracking_file'] = ''
     29    if isinstance(request.POST.get('compressed_file', None), bytes):
     30        request.POST['compressed_file'] = ''
    3231
    3332    form = Form(request, schema=BulkFileSchema())
     
    5453
    5554
    56 
    5755@view_config(
    5856    context=User,
Note: See TracChangeset for help on using the changeset viewer.