fixed sampling points

This commit is contained in:
Adolfo Gómez García 2022-06-07 21:03:49 +02:00
parent 4c66401e4f
commit fb70524cb3
2 changed files with 1 additions and 5 deletions

View File

@ -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
)

View File

@ -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: