Corrected ratio management for video tag (x2).
This commit is contained in:
parent
5e9790b613
commit
8459e04f29
|
@ -96,10 +96,9 @@ class VideoTag(_BlockTag):
|
|||
ratio = None
|
||||
else:
|
||||
ratio *= 100
|
||||
try:
|
||||
ratio = int(ratio)
|
||||
except:
|
||||
pass
|
||||
iratio = int(ratio)
|
||||
if ratio == iratio:
|
||||
ratio = iratio
|
||||
ratio = str(ratio)
|
||||
|
||||
code = '<div class="video-wrapper{}{}"{}>' \
|
||||
|
|
Loading…
Reference in New Issue