Update app.py
This commit is contained in:
2
app.py
2
app.py
@@ -296,7 +296,7 @@ def add_recent_link(url, target_ip):
|
|||||||
pipe.lpush(key, new_item)
|
pipe.lpush(key, new_item)
|
||||||
if filtered:
|
if filtered:
|
||||||
pipe.rpush(key, *filtered[:99])
|
pipe.rpush(key, *filtered[:99])
|
||||||
pipe.ltrim(key, 0, 9)
|
pipe.ltrim(key, 0, 99)
|
||||||
pipe.execute()
|
pipe.execute()
|
||||||
|
|
||||||
redis_client.incr("stats:recent_links_added")
|
redis_client.incr("stats:recent_links_added")
|
||||||
|
Reference in New Issue
Block a user