forked from shaba/openuds
fixed sampling points
This commit is contained in:
parent
4c66401e4f
commit
fb70524cb3
@ -131,7 +131,7 @@ class UDSApi: # pylint: disable=too-few-public-methods
|
||||
headers=headers,
|
||||
verify=self._validateCert,
|
||||
timeout=TIMEOUT,
|
||||
proxies=NO_PROXY
|
||||
proxies=NO_PROXY # type: ignore
|
||||
if disableProxy
|
||||
else None, # if not proxies wanted, enforce it
|
||||
)
|
||||
|
@ -96,10 +96,6 @@ class StatsReportLogin(StatsReport):
|
||||
def getRangeData(self) -> typing.Tuple[str, typing.List, typing.List]:
|
||||
start = self.startDate.stamp()
|
||||
end = self.endDate.stamp()
|
||||
# if self.samplingPoints.num() < 8:
|
||||
# self.samplingPoints.value = (
|
||||
# self.endDate.date() - self.startDate.date()
|
||||
# ).days
|
||||
if self.samplingPoints.num() < 2:
|
||||
self.samplingPoints.value = 2
|
||||
if self.samplingPoints.num() > 128:
|
||||
|
Loading…
Reference in New Issue
Block a user