mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
Replace loop in web.py with generator expression
Co-Authored-By: Glandos <bugs-github@antipoul.fr>
This commit is contained in:
parent
e7848e39c6
commit
5cc8b5a68c
1 changed files with 1 additions and 5 deletions
|
@ -750,11 +750,7 @@ def history():
|
|||
"""Query for the version entries associated with this project."""
|
||||
history = get_history(g.project, human_readable_names=True)
|
||||
|
||||
any_ip_addresses = False
|
||||
for event in history:
|
||||
if event["ip"]:
|
||||
any_ip_addresses = True
|
||||
break
|
||||
any_ip_addresses = any(event["ip"] for event in history)
|
||||
|
||||
return render_template(
|
||||
"history.html",
|
||||
|
|
Loading…
Reference in a new issue