chg: [farsight] make PEP happy

pull/496/head
Alexandre Dulaunoy 2021-04-14 14:45:55 +02:00
parent 296d2d63c9
commit 577d0de500
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 0 deletions

View File

@ -171,10 +171,12 @@ def parse_input(attribute, config):
to_query = lookup_ip if 'ip-' in attribute_type else lookup_name
return to_query, (lookup_args, attribute['value'], flex)
def parse_timestamp(str_date):
datetime_date = datetime.strptime(str_date, '%Y-%m-%dT%H:%M:%S.%f%z')
return str(int(datetime_date.timestamp()))
def add_flex_queries(flex):
if not flex:
return False