INNER CODE UNIT · Python

GroupConcat

infobyte/emploleaks · emploleaks.py:189

class GroupConcat:
    def __init__(self):
        self.values = set()
    
    def step(self, value):
        if value is not None:
            self.values.add(value)
    
    def finalize(self):
        return ','.join(sorted(self.values))

class EmploLeaksCLI(cmd2.Cmd):
    """EmploLeaks CLI"""

    emojis = {
        'cross': "\U0000274c",
        "check": "\U00002714",
        "arrow_up": "\U00002b06",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…