2
0
Fork 0

Corrected ratio management for video tag (x2).

This commit is contained in:
Thomas Touhey 2018-07-29 22:16:39 +02:00
parent 5e9790b613
commit 8459e04f29
No known key found for this signature in database
GPG Key ID: 2ECEB0517AD947FB
1 changed files with 3 additions and 4 deletions

View File

@ -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{}{}"{}>' \