This commit is contained in:
lwl0608 2024-05-07 20:01:08 +08:00
parent 8460fa7fca
commit 62555671e8
1 changed files with 12 additions and 12 deletions

View File

@ -105,25 +105,25 @@ and mid>0
zone_moment_cnt, zone_moment_money,
other_cnt, other_money,
total_money, streamer_money, official_money,
"%.2f%%" % (safe_div(official_money, total_money)),
"%.2f%%" % (safe_div(membership_money, total_money)),
"%.2f%%" % (safe_div(zone_admission_money, total_money)),
"%.2f%%" % (safe_div(zone_superfan_money, total_money)),
"%.2f%%" % (safe_div(zone_moment_money, total_money)),
"%.2f%%" % (safe_div(other_money, total_money))
"%.2f%%" % (safe_div(official_money, total_money) * 100.0),
"%.2f%%" % (safe_div(membership_money, total_money) * 100.0),
"%.2f%%" % (safe_div(zone_admission_money, total_money) * 100.0),
"%.2f%%" % (safe_div(zone_superfan_money, total_money) * 100.0),
"%.2f%%" % (safe_div(zone_moment_money, total_money) * 100.0),
"%.2f%%" % (safe_div(other_money, total_money) * 100.0)
]
csv_w.append([data])
print(data)
# st_et_str_map = gen_st_et_str_map_v2(
# "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_v2(
"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
# )
for st_str, et_str in st_et_str_map.items():
s = S(
get_ts_by_str(st_str), get_ts_by_str(et_str)