flip i/o if o<i

This commit is contained in:
j 2012-01-21 01:49:38 +05:30
parent 764a22aafb
commit ed08109b73

View file

@ -161,7 +161,7 @@ def import_layers(item, layers):
annotation.start = float(layer['time_in'])/1000 annotation.start = float(layer['time_in'])/1000
annotation.end = float(layer['time_out'])/1000 annotation.end = float(layer['time_out'])/1000
if annotation.end < annotation.start: if annotation.end < annotation.start:
annotation.end = annotation.start + 3 annotation.end, annotation.start = annotation.start, annotation.end
username = layer['creator'].strip() username = layer['creator'].strip()
annotation.user = User.objects.get(username=username) annotation.user = User.objects.get(username=username)
annotation.value = html_parser(layer['value']) annotation.value = html_parser(layer['value'])