mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +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:
|
||||
date_range.append(datetime.date.today().strftime("%Y%m%d"))
|
||||
|
||||
print(date_range)
|
||||
|
||||
nb_decoded = {}
|
||||
for decoder in all_decoder:
|
||||
nb_decoded[decoder] = 0
|
||||
|
||||
for date in date_range:
|
||||
for decoder in all_decoder:
|
||||
if typ is None:
|
||||
nb_decoded[decoder] = r_serv_metadata.get(decoder+'_decoded:'+date)
|
||||
nb_decod = r_serv_metadata.get(decoder+'_decoded:'+date)
|
||||
else:
|
||||
nb_decoded[decoder] = r_serv_metadata.zscore(decoder+'_type:'+typ, date)
|
||||
if nb_decoded[decoder] is None:
|
||||
nb_decoded[decoder] = 0
|
||||
nb_decod = r_serv_metadata.zscore(decoder+'_type:'+typ, date)
|
||||
|
||||
if nb_decod is not None:
|
||||
nb_decoded[decoder] = nb_decoded[decoder] + int(nb_decod)
|
||||
|
||||
to_json = []
|
||||
for decoder in all_decoder:
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
-webkit-transition: none;
|
||||
outline: none;
|
||||
display: block;
|
||||
padding: 4px 6px;
|
||||
line-height: normal;
|
||||
overflow: hidden;
|
||||
height: auto;
|
||||
|
|
Loading…
Reference in a new issue