Skip to content

Commit

Permalink
allow to split from any date (1800)
Browse files Browse the repository at this point in the history
Fix should consider a dichotomic time split much more intelligent. This algorithm is suitable for HUGE document sets (one request for one year)
  • Loading branch information
Patent2net committed Jul 30, 2021
1 parent a9b6939 commit 6dcbb22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Patent2Net/scripts/run_spliter.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ def main():
to_be_found = get_data_to_be_found(directory)

if to_be_found == None:
print("Vous devez d'abord verifier si la requete doit être découpé")
print("Vous devez d'abord verifier si la requete doit être découpée")
return None

need_spliter = to_be_found["need_spliter"]
lstFicOk = to_be_found["lstFicOk"]

if need_spliter != True:
print("Cette requete n'a pas besoin d'etre découpé")
print("Cette requete n'a pas besoin d'être découpée")
return None

dateDeb = get_data_spliter_start_date(directory)

if dateDeb == None:
print("Vous devez préciser la date de début pour découper la requete")
return None
dateDeb=1800 #print("Vous devez préciser la date de début pour découper la requete")
# return None

targetDirectory = REQUEST_AUTO_FOLDER + directory
if not os.path.exists(targetDirectory):
Expand Down

0 comments on commit 6dcbb22

Please sign in to comment.