secmi / data /test.py
tgey's picture
APP test
2145052
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