2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-09 13:56:19 +00:00

webPage links preview previews done

This commit is contained in:
John Preston
2015-04-07 01:15:29 +03:00
parent 11dd70cb1a
commit 9ede565a00
25 changed files with 1093 additions and 630 deletions

View File

@@ -210,7 +210,10 @@ with open('scheme.tl') as f:
size = [];
for k in prmsList:
v = prms[k];
size.append('v' + k + '.innerLength()');
if (k in conditions.keys()):
size.append('(has_' + k + '() ? v' + k + '.innerLength() : 0)');
else:
size.append('v' + k + '.innerLength()');
if (not len(size)):
size.append('0');
funcsText += '\t\treturn ' + ' + '.join(size) + ';\n';