Fix online info
This commit is contained in:
parent
0fd004ca7d
commit
c49c8898eb
|
@ -11,7 +11,7 @@ def annotate_results(results_parsed):
|
||||||
"""
|
"""
|
||||||
# Figure out items with net (not discord)
|
# Figure out items with net (not discord)
|
||||||
nets = set()
|
nets = set()
|
||||||
for x in results_parsed:
|
for x in results_parsed["object_list"]:
|
||||||
if "net" in x:
|
if "net" in x:
|
||||||
nets.add(x["net"])
|
nets.add(x["net"])
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ def annotate_results(results_parsed):
|
||||||
set(
|
set(
|
||||||
[
|
[
|
||||||
x["nick"]
|
x["nick"]
|
||||||
for x in results_parsed
|
for x in results_parsed["object_list"]
|
||||||
if {"nick", "src", "net"}.issubset(x)
|
if {"nick", "src", "net"}.issubset(x)
|
||||||
and x["src"] == "irc"
|
and x["src"] == "irc"
|
||||||
and x["net"] == net
|
and x["net"] == net
|
||||||
|
@ -32,7 +32,7 @@ def annotate_results(results_parsed):
|
||||||
set(
|
set(
|
||||||
[
|
[
|
||||||
x["channel"]
|
x["channel"]
|
||||||
for x in results_parsed
|
for x in results_parsed["object_list"]
|
||||||
if {"channel", "src", "net"}.issubset(x)
|
if {"channel", "src", "net"}.issubset(x)
|
||||||
and x["src"] == "irc"
|
and x["src"] == "irc"
|
||||||
and x["net"] == net
|
and x["net"] == net
|
||||||
|
@ -44,7 +44,7 @@ def annotate_results(results_parsed):
|
||||||
num_users = annotate_num_users(net, channels)
|
num_users = annotate_num_users(net, channels)
|
||||||
# Annotate the number channels the user is on
|
# Annotate the number channels the user is on
|
||||||
num_chans = annotate_num_chans(net, nicks)
|
num_chans = annotate_num_chans(net, nicks)
|
||||||
for item in results_parsed:
|
for item in results_parsed["object_list"]:
|
||||||
if "net" in item:
|
if "net" in item:
|
||||||
if item["net"] == net:
|
if item["net"] == net:
|
||||||
if "nick" in item:
|
if "nick" in item:
|
||||||
|
|
|
@ -60,7 +60,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- tmp
|
- tmp
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "redis-cli -s /var/run/socks/redis.sock ping"
|
test: "redis-cli -s /var/run/socks/redis.sock ping"
|
||||||
interval: 2s
|
interval: 2s
|
||||||
|
|
Loading…
Reference in New Issue