Changed name to a more logical one

This commit is contained in:
Profitroll 2022-09-23 17:12:18 +02:00
parent 590eca20d8
commit da21f3ad77
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ from xmltodict import parse as xmlparse
from datetime import datetime
from pyrmv.utility.find_exception import find_exception
from pyrmv.utility.bitmask import weekdays_to_bitmask
from pyrmv.utility.weekdays_bitmask import weekdays_bitmask
try:
from typing import Literal
@ -115,7 +115,7 @@ def him_search(accessId: str,
elif str(var) == "weekdays":
if val != None:
if isinstance(val, OrderedDict):
payload[str(var)] = weekdays_to_bitmask(val)
payload[str(var)] = weekdays_bitmask(val)
else:
payload[str(var)] = val
elif str(var) not in ["json", "headers", "payload"]:

View File

@ -1,7 +1,7 @@
from typing import OrderedDict
def weekdays_to_bitmask(data: OrderedDict[str, bool]) -> str:
def weekdays_bitmask(data: OrderedDict[str, bool]) -> str:
"""Convert ordered dict with weekdays to a bitmask.
### Args: