MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / get_average_num

Method get_average_num

class/databaseModel/base.py:100–111  ·  view source on GitHub ↗

@批量删除获取平均值

(self, slist)

Source from the content-addressed store, hash-verified

98 return project_obj
99
100 def get_average_num(self, slist):
101 """
102 @批量删除获取平均值
103 """
104 count = len(slist)
105 limit_size = 1 * 1024 * 1024
106 if count <= 0: return limit_size
107
108 if len(slist) > 1:
109 slist = sorted(slist)
110 limit_size = int((slist[0] + slist[-1]) / 2 * 0.85)
111 return limit_size
112
113 def get_database_size(self, ids, is_pid=False):
114 """

Callers 1

check_base_del_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected