fix
This commit is contained in:
parent
8460fa7fca
commit
62555671e8
|
@ -105,25 +105,25 @@ and mid>0
|
||||||
zone_moment_cnt, zone_moment_money,
|
zone_moment_cnt, zone_moment_money,
|
||||||
other_cnt, other_money,
|
other_cnt, other_money,
|
||||||
total_money, streamer_money, official_money,
|
total_money, streamer_money, official_money,
|
||||||
"%.2f%%" % (safe_div(official_money, total_money)),
|
"%.2f%%" % (safe_div(official_money, total_money) * 100.0),
|
||||||
"%.2f%%" % (safe_div(membership_money, total_money)),
|
"%.2f%%" % (safe_div(membership_money, total_money) * 100.0),
|
||||||
"%.2f%%" % (safe_div(zone_admission_money, total_money)),
|
"%.2f%%" % (safe_div(zone_admission_money, total_money) * 100.0),
|
||||||
"%.2f%%" % (safe_div(zone_superfan_money, total_money)),
|
"%.2f%%" % (safe_div(zone_superfan_money, total_money) * 100.0),
|
||||||
"%.2f%%" % (safe_div(zone_moment_money, total_money)),
|
"%.2f%%" % (safe_div(zone_moment_money, total_money) * 100.0),
|
||||||
"%.2f%%" % (safe_div(other_money, total_money))
|
"%.2f%%" % (safe_div(other_money, total_money) * 100.0)
|
||||||
]
|
]
|
||||||
csv_w.append([data])
|
csv_w.append([data])
|
||||||
print(data)
|
print(data)
|
||||||
|
|
||||||
|
|
||||||
# st_et_str_map = gen_st_et_str_map_v2(
|
st_et_str_map = gen_st_et_str_map_v2(
|
||||||
# "2024-04-30 00:00:00", "2024-05-06 00:00:00"
|
"2024-04-30 00:00:00", "2024-05-06 00:00:00"
|
||||||
# )
|
|
||||||
|
|
||||||
st_et_str_map = gen_st_et_str_map(
|
|
||||||
"2024-04-30 00:00:00", 1
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# st_et_str_map = gen_st_et_str_map(
|
||||||
|
# "2024-04-30 00:00:00", 1
|
||||||
|
# )
|
||||||
|
|
||||||
for st_str, et_str in st_et_str_map.items():
|
for st_str, et_str in st_et_str_map.items():
|
||||||
s = S(
|
s = S(
|
||||||
get_ts_by_str(st_str), get_ts_by_str(et_str)
|
get_ts_by_str(st_str), get_ts_by_str(et_str)
|
||||||
|
|
Loading…
Reference in New Issue