mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [UI-Hash] pie chart json
This commit is contained in:
parent
009f87ee10
commit
deaebaa4fd
2 changed files with 10 additions and 5 deletions
|
@ -380,15 +380,21 @@ def decoder_type_json():
|
||||||
if not date_range:
|
if not date_range:
|
||||||
date_range.append(datetime.date.today().strftime("%Y%m%d"))
|
date_range.append(datetime.date.today().strftime("%Y%m%d"))
|
||||||
|
|
||||||
|
print(date_range)
|
||||||
|
|
||||||
nb_decoded = {}
|
nb_decoded = {}
|
||||||
|
for decoder in all_decoder:
|
||||||
|
nb_decoded[decoder] = 0
|
||||||
|
|
||||||
for date in date_range:
|
for date in date_range:
|
||||||
for decoder in all_decoder:
|
for decoder in all_decoder:
|
||||||
if typ is None:
|
if typ is None:
|
||||||
nb_decoded[decoder] = r_serv_metadata.get(decoder+'_decoded:'+date)
|
nb_decod = r_serv_metadata.get(decoder+'_decoded:'+date)
|
||||||
else:
|
else:
|
||||||
nb_decoded[decoder] = r_serv_metadata.zscore(decoder+'_type:'+typ, date)
|
nb_decod = r_serv_metadata.zscore(decoder+'_type:'+typ, date)
|
||||||
if nb_decoded[decoder] is None:
|
|
||||||
nb_decoded[decoder] = 0
|
if nb_decod is not None:
|
||||||
|
nb_decoded[decoder] = nb_decoded[decoder] + int(nb_decod)
|
||||||
|
|
||||||
to_json = []
|
to_json = []
|
||||||
for decoder in all_decoder:
|
for decoder in all_decoder:
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
-webkit-transition: none;
|
-webkit-transition: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 4px 6px;
|
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
Loading…
Reference in a new issue