Projekt

Obecné

Profil

« Předchozí | Další » 

Revize af7609b5

Přidáno uživatelem Tomáš Ballák před více než 3 roky(ů)

Re #8193 - refactoring crawler

Zobrazit rozdíly:

modules/crawler/Utilities/helpers.py
4 4
UNKNOWN = "UNKNOWN!"
5 5

  
6 6

  
7
def should_skip(device) -> bool:
7
def should_skip(device: Dict[str, str]) -> bool:
8 8
    return device['x'] == SKIP or device['y'] == SKIP or device[
9 9
        'x'] == UNKNOWN or device['y'] == UNKNOWN
10 10

  
11 11

  
12
def detect_change(first: Dict[str, str], second: Dict[str, str], compareKeys: [str]) -> bool:
12
def detect_change(first: Dict[str, str], second: Dict[str, str],
13
                  compareKeys: [str]) -> bool:
13 14
    """Detects change between two dictonaries
14 15

  
15 16
    Args:

Také k dispozici: Unified diff