From da21f3ad77f9d506f57763af238910a006d19451 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 23 Sep 2022 17:12:18 +0200 Subject: [PATCH] Changed name to a more logical one --- pyrmv/raw/him_search.py | 4 ++-- pyrmv/utility/{bitmask.py => weekdays_bitmask.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename pyrmv/utility/{bitmask.py => weekdays_bitmask.py} (89%) diff --git a/pyrmv/raw/him_search.py b/pyrmv/raw/him_search.py index da6e868..c71beb8 100644 --- a/pyrmv/raw/him_search.py +++ b/pyrmv/raw/him_search.py @@ -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"]: diff --git a/pyrmv/utility/bitmask.py b/pyrmv/utility/weekdays_bitmask.py similarity index 89% rename from pyrmv/utility/bitmask.py rename to pyrmv/utility/weekdays_bitmask.py index d9937cf..c5456d3 100644 --- a/pyrmv/utility/bitmask.py +++ b/pyrmv/utility/weekdays_bitmask.py @@ -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: