Changeset e9ecf46


Ignore:
Timestamp:
Nov 26, 2011 4:03:07 PM (3 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, test, video
Children:
d4c2dd3, 344438f, b497a41
Parents:
311730f
git-author:
yomguy <yomguy@…> (26/11/2011 16:03:07)
git-committer:
yomguy <yomguy@…> (26/11/2011 16:03:07)
Message:

analysis: cut duration to milliseconds

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.