1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

fix formatting

This commit is contained in:
Shlomi Fish 2018-09-02 02:42:09 +03:00
parent 75531481aa
commit 5de21adc3b

View file

@ -151,12 +151,20 @@ def all_games(sort_by='id'):
altnames = '<br>'.join(gi.altnames)
fn = os.path.join(rules_dir, rules_fn)
if 1 and os.path.exists(fn):
print('''<tr><td>%s</td><td>
<a href="%s" title="Rules for this game">%s</a>
</td><td>%s</td><td>%s</td></tr>
print('''<tr>
<td>%s</td>
<td> <a href="%s" title="Rules for this game">%s</a> </td>
<td>%s</td>
<td>%s</td>
</tr>
''' % (id, fn, name, altnames, gt))
else:
print('''<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>
print('''<tr>
<td>%s</td>
<td>%s</td>
<td>%s</td>
<td>%s</td>
</tr>
''' % (id, name, altnames, gt))
print('</tbody></table>')