Fix drilldown modal
This commit is contained in:
parent
816ed2665b
commit
8add25ac27
|
@ -177,8 +177,8 @@
|
|||
}
|
||||
|
||||
.panel-block {
|
||||
overflow-y:scroll;
|
||||
overflow-x:scroll;
|
||||
overflow-y:auto;
|
||||
overflow-x:auto;
|
||||
min-height: 90%;
|
||||
display: block;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<i class="fa-solid fa-hashtag" aria-hidden="true"></i>
|
||||
</span>
|
||||
{{ channel }}
|
||||
{% if nick in num_chans %}
|
||||
{% if channel in num_users %}
|
||||
<span class="tag">
|
||||
{{ num_users|index:channel }}
|
||||
</span>
|
||||
|
@ -62,7 +62,7 @@
|
|||
<i class="fa-solid fa-user" aria-hidden="true"></i>
|
||||
</span>
|
||||
{{ user }}
|
||||
{% if channel in num_users %}
|
||||
{% if user in num_chans %}
|
||||
<span class="tag">
|
||||
{{ num_chans|index:user }}
|
||||
</span>
|
||||
|
@ -78,7 +78,7 @@
|
|||
<i class="fa-solid fa-user" aria-hidden="true"></i>
|
||||
</span>
|
||||
{{ user }}
|
||||
{% if channel in num_users %}
|
||||
{% if user in num_chans %}
|
||||
<span class="tag">
|
||||
{{ num_chans|index:user }}
|
||||
</span>
|
||||
|
@ -94,7 +94,7 @@
|
|||
<i class="fa-solid fa-hashtag" aria-hidden="true"></i>
|
||||
</span>
|
||||
{{ channel }}
|
||||
{% if nick in num_chans %}
|
||||
{% if channel in num_users %}
|
||||
<span class="tag">
|
||||
{{ num_users|index:channel }}
|
||||
</span>
|
||||
|
|
|
@ -453,17 +453,23 @@ class ThresholdInfoModal(APIView):
|
|||
# hash_lookup(request.user, SAFE_PARAMS)
|
||||
|
||||
channels = get_chans(net, [nick])
|
||||
print("CHANNELS", channels)
|
||||
users = get_users(net, [nick])
|
||||
print("USERS", users)
|
||||
num_users = annotate_num_users(net, channels)
|
||||
print("NUM_USERS", num_users)
|
||||
num_chans = annotate_num_chans(net, users)
|
||||
print("NUM_CHANS", num_chans)
|
||||
if channels:
|
||||
inter_users = get_users(net, channels)
|
||||
else:
|
||||
inter_users = []
|
||||
print("INTER_USERS", inter_users)
|
||||
if users:
|
||||
inter_chans = get_chans(net, users)
|
||||
else:
|
||||
inter_chans = []
|
||||
print("INTER_CHANS", inter_chans)
|
||||
# if settings.HASHING:
|
||||
# hash_list(request.user, inter_chans)
|
||||
# hash_list(request.user, inter_users)
|
||||
|
@ -493,4 +499,5 @@ class ThresholdInfoModal(APIView):
|
|||
"num_chans": num_chans,
|
||||
"unique": unique,
|
||||
}
|
||||
print("CON", context)
|
||||
return render(request, self.template_name, context)
|
||||
|
|
Loading…
Reference in New Issue