File size: 1,011 Bytes
2145052
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import yaml
from yaml.loader import SafeLoader

# from excels import load_excels
# from dataframes import merge_clients, merge_affaires, merge_intervenants_affaires
# from const import root_path 

# with open(f'{root_path}/config.yaml') as file:
#     config = yaml.load(file, Loader=SafeLoader)


# print(config['data'])
# data = load_excels(root_path, config['data'])
# merge_clients(data)
# merge_affaires(data)
# merge_intervenants_affaires(data)
# print(data)
# print(data['Clients'])
# print(data['Affaire'])

def find_substring_in_list(substring, string_list):
    found_strings = [string for string in string_list if string.find(substring) != -1]
    return found_strings

string_list = ['absence test', 'absence test 2', 'absence test 3', '0000- absence']
substring = 'zzz'
print(find_substring_in_list(substring, string_list))
# Example usage
# device_id = get_device_id()
# current_ip = get_current_ip()
# print("Current IP:", current_ip)
# print("Device ID:", device_id)

# film
# bail jojo
# garage