Changed name to a more logical one
This commit is contained in:
parent
590eca20d8
commit
da21f3ad77
@ -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"]:
|
||||
|
@ -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:
|
Loading…
Reference in New Issue
Block a user