Skip to content

Commit

Permalink
if None not in
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper authored Jun 13, 2024
1 parent 370de7a commit 3341e7e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wis2box-management/wis2box/data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ def __init__(self, defs: dict) -> None:
self.output_data = {}
self.discovery_metadata = {}
self.gts = None
if defs.get('gts_ttaaii') and defs.get('gts_cccc'):
gts_ttaaii = defs.get('gts_ttaaii')
gts_cccc = defs.get('gts_cccc')
if None not in [gts_ttaaii, gts_cccc]:
self.gts = {
'ttaaii': defs.get('gts_ttaaii'),
'cccc': defs.get('gts_cccc')
'ttaaii': gts_ttaaii,
'cccc': gts_cccc
}

# if discovery_metadata:
Expand Down

0 comments on commit 3341e7e

Please sign in to comment.