flip i/o if o<i
This commit is contained in:
parent
764a22aafb
commit
ed08109b73
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||||
|
|
Loading…
Reference in a new issue