@staticmethod
def calculate_flag(sfw: bool=True, nsfp: bool=False, nsfw: bool=False, nsfl:
    bool=False) ->int:
    """
        Used to calculate flags for the post requests

        sfw = 1
        nsfw = 2
        sfw + nsfw = 3
        nsfl = 4
        nsfw + nsfl = 6
        sfw + nsfw + nsfl = 7
        nsfp = 8
        sfw + nsfp = 9
        sfw + nsfp + nsfw = 11
        sfw + nsfp + nsfw + nsfl = 15

        Parameters
        ----------
        :param sfw: bool
        :param nsfp: bool
        :param nsfw: bool
        :param nsfl: bool
        :return: Calculated flag for requests
        """
    flag = 0
    flag += 1 if sfw else 0
    flag += 2 if nsfw else 0
    flag += 4 if nsfl else 0
    flag += 8 if nsfp and sfw else 0
    return flag
