mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-20 03:50:16 +02:00
lint: fix issue found by older version of pyflakes
This commit is contained in:
parent
5541cb83ac
commit
fa0dcf5449
@ -148,14 +148,13 @@ def check_ucm_tags(app):
|
|||||||
def check_char_limits(app):
|
def check_char_limits(app):
|
||||||
limits = config['char_limits']
|
limits = config['char_limits']
|
||||||
|
|
||||||
summ_chars = len(app.Summary)
|
if len(app.Summary) > limits['Summary']:
|
||||||
if summ_chars > limits['Summary']:
|
|
||||||
yield "Summary of length %s is over the %i char limit" % (
|
yield "Summary of length %s is over the %i char limit" % (
|
||||||
summ_chars, limits['Summary'])
|
len(app.Summary), limits['Summary'])
|
||||||
|
|
||||||
if len(app.Description) > limits['Description']:
|
if len(app.Description) > limits['Description']:
|
||||||
yield "Description of length %s is over the %i char limit" % (
|
yield "Description of length %s is over the %i char limit" % (
|
||||||
desc_charcount, limits['Description'])
|
len(app.Description), limits['Description'])
|
||||||
|
|
||||||
|
|
||||||
def check_old_links(app):
|
def check_old_links(app):
|
||||||
|
Loading…
Reference in New Issue
Block a user