Compare commits
2 Commits
20230124-1
...
20230301-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e430117d40 | ||
|
|
5060490ac4 |
16
counter.py
Normal file
16
counter.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
|
||||
def count_chars_in_folder(folder_path):
|
||||
total_chars = 0
|
||||
for filename in os.listdir(folder_path):
|
||||
filepath = os.path.join(folder_path, filename)
|
||||
if os.path.isfile(filepath):
|
||||
with open(filepath, 'r') as file:
|
||||
content = file.read()
|
||||
total_chars += len(content)
|
||||
print(f"fichier {filepath} = { len(content)}")
|
||||
return total_chars
|
||||
|
||||
folder_path = '.' # mettre le chemin absolu vers le dossier ici
|
||||
total_chars = count_chars_in_folder(folder_path)
|
||||
print(f"Le nombre total de caractères dans les fichiers du dossier {folder_path} est : {total_chars}")
|
||||
@@ -1 +1 @@
|
||||
20230124-1611
|
||||
20230301-1856
|
||||
4
main.py
4
main.py
@@ -841,8 +841,8 @@ class ClercAttrib2Biz():
|
||||
self.logger.warning(f"Complément 22 patient: facture N°: {data.data['id']} / {data.Patient['fip_number']}")
|
||||
|
||||
|
||||
if data.Patient['insurance_policy_number'] == None:
|
||||
data.Patient['insurance_policy_number'] = f"{uuid.uuid4()}"[:15]
|
||||
if data.Patient['insurance_policy_number'] == None:#Génération d'un code UUID pour remplacer le numéro AVS pour les patients étranger ou AVS inconu
|
||||
data.Patient['insurance_policy_number'] = f"{uuid.uuid4()}"[:10]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
VERSION = "20230124-1611"
|
||||
VERSION = "20230301-1856"
|
||||
Reference in New Issue
Block a user