Changes in / [18bfbcf:3471ccf]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/models/media.py

    r1eb6b294 re9ecf46  
    429429         
    430430    def to_dict(self): 
     431        if self.analyzer_id == 'duration': 
     432            value = self.value.split('.') 
     433            self.value = '.'.join([value[0], value[1][:2]]) 
    431434        return {'id': self.analyzer_id, 'name': self.name, 'value': self.value, 'unit': self.unit} 
    432435         
Note: See TracChangeset for help on using the changeset viewer.