python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 2547113 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3325830) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3325830) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075176 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3325830'] with mtr_portfolio_ids : ['25075176'] and first list_photo_ids : [] new path : /proc/2547113/ Name: python3 Umask: 0002 State: R (running) Tgid: 2547113 Ngid: 0 Pid: 2547113 PPid: 2547109 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2547113 NSpid: 2547113 NSpgid: 2546215 NSsid: 2546215 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99536 kB VmRSS: 99536 kB RssAnon: 59816 kB RssFile: 39720 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 186 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2547113', 'Ngid': '0', 'Pid': '2547113', 'PPid': '2547109', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2547113', 'NSpid': '2547113', 'NSpgid': '2546215', 'NSsid': '2546215', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99536 kB', 'VmRSS': '99536 kB', 'RssAnon': '59816 kB', 'RssFile': '39720 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '186'} ('datou_batch_current', '2547113', '1106896', '0', '1106896', '865648', '99536', b'', 'marlene', '3325830') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25075176) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (3325830 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25075176) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372716939, 'portfolio_id': 25075176}, {'photo_id': 1372630271, 'portfolio_id': 25075176}, {'photo_id': 1372630267, 'portfolio_id': 25075176}, {'photo_id': 1372630263, 'portfolio_id': 25075176}, {'photo_id': 1372630258, 'portfolio_id': 25075176}, {'photo_id': 1372630253, 'portfolio_id': 25075176}, {'photo_id': 1372630249, 'portfolio_id': 25075176}, {'photo_id': 1372630219, 'portfolio_id': 25075176}, {'photo_id': 1372630215, 'portfolio_id': 25075176}, {'photo_id': 1372630211, 'portfolio_id': 25075176}, {'photo_id': 1372630207, 'portfolio_id': 25075176}, {'photo_id': 1372630202, 'portfolio_id': 25075176}, {'photo_id': 1372630199, 'portfolio_id': 25075176}, {'photo_id': 1372630176, 'portfolio_id': 25075176}, {'photo_id': 1372630172, 'portfolio_id': 25075176}, {'photo_id': 1372630168, 'portfolio_id': 25075176}, {'photo_id': 1372630164, 'portfolio_id': 25075176}, {'photo_id': 1372630160, 'portfolio_id': 25075176}, {'photo_id': 1372630156, 'portfolio_id': 25075176}, {'photo_id': 1372630143, 'portfolio_id': 25075176}, {'photo_id': 1372630142, 'portfolio_id': 25075176}, {'photo_id': 1372630140, 'portfolio_id': 25075176}, {'photo_id': 1372630138, 'portfolio_id': 25075176}, {'photo_id': 1372630136, 'portfolio_id': 25075176}, {'photo_id': 1372630134, 'portfolio_id': 25075176}, {'photo_id': 1372630131, 'portfolio_id': 25075176}] map_portfolio_id_photo_id: {25075176: [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.033386945724487305 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 23 10:20:26 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25075176) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 25075176 get user id for portfolio 25075176 get sub ptf for main ptf 25075176, type 3726 and hashtags ['autre_refus', 'environnement', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'flou', 'Carton_gris', 'papier', 'cartonnette', 'mal_croppe', 'Carton_brun', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25075176 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Teint_Dans_La_Masse','metal','plastique','flou','Carton_gris','papier','cartonnette','mal_croppe','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25075176 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Teint_Dans_La_Masse','metal','plastique','flou','Carton_gris','papier','cartonnette','mal_croppe','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25075176, 'sub_port_id': 25075293, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903812, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'Carton_brun': {'main_port_id': 25075176, 'sub_port_id': 25075294, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903813, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'mal_croppe': {'main_port_id': 25075176, 'sub_port_id': 25075295, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903814, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'cartonnette': {'main_port_id': 25075176, 'sub_port_id': 25075296, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903815, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25075176, 'sub_port_id': 25075297, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903816, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'metal': {'main_port_id': 25075176, 'sub_port_id': 25075298, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903817, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'flou': {'main_port_id': 25075176, 'sub_port_id': 25075299, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903818, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'autre_refus': {'main_port_id': 25075176, 'sub_port_id': 25075300, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903819, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'kraft': {'main_port_id': 25075176, 'sub_port_id': 25075301, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903820, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'plastique': {'main_port_id': 25075176, 'sub_port_id': 25075302, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903821, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'environnement': {'main_port_id': 25075176, 'sub_port_id': 25075303, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903822, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}, 'papier': {'main_port_id': 25075176, 'sub_port_id': 25075304, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903823, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 55), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075293 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075293) result : ((1373153009,), (1373153327,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075294 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075294) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075295 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075295) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075296 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075296) result : ((1373153012,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075297 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075297) result : ((1373153000,), (1373153001,), (1373153002,), (1373153003,), (1373153004,), (1373153005,), (1373153006,), (1373153320,), (1373153321,), (1373153322,), (1373153323,), (1373153325,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075298 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075298) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075299 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075299) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075300 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075300) result : ((1373153007,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075301 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075301) result : ((1373153329,), (1373153330,), (1373153331,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075302 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075302) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075303 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25075304 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25075176 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25075176) result : ((1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25075176 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Teint_Dans_La_Masse','metal','plastique','flou','Carton_gris','papier','cartonnette','mal_croppe','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25075176 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Teint_Dans_La_Masse','metal','plastique','flou','Carton_gris','papier','cartonnette','mal_croppe','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25075176, 'sub_port_id': 25075305, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903824, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'Carton_brun': {'main_port_id': 25075176, 'sub_port_id': 25075306, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903825, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'mal_croppe': {'main_port_id': 25075176, 'sub_port_id': 25075307, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903826, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'cartonnette': {'main_port_id': 25075176, 'sub_port_id': 25075308, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903827, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25075176, 'sub_port_id': 25075309, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903828, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'metal': {'main_port_id': 25075176, 'sub_port_id': 25075310, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903829, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'flou': {'main_port_id': 25075176, 'sub_port_id': 25075311, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903830, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'autre_refus': {'main_port_id': 25075176, 'sub_port_id': 25075312, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903831, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'kraft': {'main_port_id': 25075176, 'sub_port_id': 25075313, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903832, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'plastique': {'main_port_id': 25075176, 'sub_port_id': 25075314, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903833, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'environnement': {'main_port_id': 25075176, 'sub_port_id': 25075315, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903834, 'last_updated_at': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 19, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}, 'papier': {'main_port_id': 25075176, 'sub_port_id': 25075316, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16903835, 'last_updated_at': datetime.datetime(2025, 7, 22, 12, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 12, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 19, 1, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075305,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075306,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25075316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25075304 lien utilise dans velours : https://www.fotonower.com/velours/25075305,25075306,25075307,25075308,25075309,25075310,25075311,25075312,25075313,25075314,25075315,25075316?tags=Carton_gris,Carton_brun,mal_croppe,cartonnette,Teint_Dans_La_Masse,metal,flou,autre_refus,kraft,plastique,environnement,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25075176]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] map_info['map_portfolio_photo'] : {25075176: [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131]} final : False mtd_id 4302 list_pids : [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] Looping around the photos to save general results len do output : 1 /25075176. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372716939', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630271', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630267', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630263', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630258', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630253', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630249', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630219', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630215', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630211', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630207', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630202', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630199', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630176', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630172', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630168', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630164', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630160', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630156', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630143', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630142', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630140', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630138', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630136', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630134', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630131', None, None, None, None, None, '3325830') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25075176', "{'Carton_gris': 25075293, 'Carton_brun': 25075294, 'mal_croppe': 25075295, 'cartonnette': 25075296, 'Teint_Dans_La_Masse': 25075297, 'metal': 25075298, 'flou': 25075299, 'autre_refus': 25075300, 'kraft': 25075301, 'plastique': 25075302, 'environnement': 25075303, 'papier': 25075304}", None, None, None, None, '3325830'), ('4302', '25075176', '1372716939', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630271', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630267', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630263', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630258', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630253', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630249', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630219', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630215', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630211', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630207', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630202', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630199', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630176', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630172', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630168', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630164', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630160', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630156', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630143', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630142', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630140', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630138', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630136', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630134', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630131', None, None, None, None, None, '3325830')] time used for this insertion : 0.054268836975097656 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6125340461730957 time spend to save output : 0.054711103439331055 total time spend for step 1 : 1.6672451496124268 step2:final Wed Jul 23 10:20:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25075176) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 25075176 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372716939,1372630131,1372630143,1372630142,1372630140,1372630138,1372630136,1372630134,1372630176,1372630172,1372630168,1372630164,1372630160,1372630156,1372630219,1372630215,1372630211,1372630207,1372630202,1372630199,1372630271,1372630267,1372630263,1372630258,1372630253,1372630249); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25075176]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} new output for save of step final : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] map_info['map_portfolio_photo'] : {25075176: [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131]} final : False mtd_id 4302 list_pids : [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] Looping around the photos to save general results len do output : 26 /1372716939.Didn't retrieve data . /1372630271.Didn't retrieve data . /1372630267.Didn't retrieve data . /1372630263.Didn't retrieve data . /1372630258.Didn't retrieve data . /1372630253.Didn't retrieve data . /1372630249.Didn't retrieve data . /1372630219.Didn't retrieve data . /1372630215.Didn't retrieve data . /1372630211.Didn't retrieve data . /1372630207.Didn't retrieve data . /1372630202.Didn't retrieve data . /1372630199.Didn't retrieve data . /1372630176.Didn't retrieve data . /1372630172.Didn't retrieve data . /1372630168.Didn't retrieve data . /1372630164.Didn't retrieve data . /1372630160.Didn't retrieve data . /1372630156.Didn't retrieve data . /1372630143.Didn't retrieve data . /1372630142.Didn't retrieve data . /1372630140.Didn't retrieve data . /1372630138.Didn't retrieve data . /1372630136.Didn't retrieve data . /1372630134.Didn't retrieve data . /1372630131.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372716939', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630271', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630267', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630263', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630258', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630253', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630249', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630219', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630215', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630211', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630207', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630202', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630199', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630176', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630172', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630168', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630164', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630160', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630156', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630143', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630142', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630140', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630138', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630136', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630134', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630131', None, None, None, None, None, '3325830') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25075176', '1372716939', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630271', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630267', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630263', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630258', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630253', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630249', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630219', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630215', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630211', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630207', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630202', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630199', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630176', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630172', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630168', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630164', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630160', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630156', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630143', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630142', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630140', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630138', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630136', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630134', '0.0438399979022835', None, None, None, None, '3325830'), ('4302', '25075176', '1372630131', '0.0438399979022835', None, None, None, None, '3325830')] time used for this insertion : 0.026260852813720703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07321286201477051 time spend to save output : 0.02709221839904785 total time spend for step 2 : 0.10030508041381836 step3:velours_tree Wed Jul 23 10:20:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25075176: [{'Carton_gris': 25075293, 'Carton_brun': 25075294, 'mal_croppe': 25075295, 'cartonnette': 25075296, 'Teint_Dans_La_Masse': 25075297, 'metal': 25075298, 'flou': 25075299, 'autre_refus': 25075300, 'kraft': 25075301, 'plastique': 25075302, 'environnement': 25075303, 'papier': 25075304}]} input_args_next_step : {25075176: ()} output_args : {25075176: [{'Carton_gris': 25075293, 'Carton_brun': 25075294, 'mal_croppe': 25075295, 'cartonnette': 25075296, 'Teint_Dans_La_Masse': 25075297, 'metal': 25075298, 'flou': 25075299, 'autre_refus': 25075300, 'kraft': 25075301, 'plastique': 25075302, 'environnement': 25075303, 'papier': 25075304}]} args : 25075176 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 25075293, 'Carton_brun': 25075294, 'mal_croppe': 25075295, 'cartonnette': 25075296, 'Teint_Dans_La_Masse': 25075297, 'metal': 25075298, 'flou': 25075299, 'autre_refus': 25075300, 'kraft': 25075301, 'plastique': 25075302, 'environnement': 25075303, 'papier': 25075304},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25075176) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25075176]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.34094715118408203 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.3410029411315918 step4:send_mail_cod Wed Jul 23 10:20:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} input_args_next_step : {1372716939: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372716939 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630271 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630267 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630263 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630258 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630253 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630249 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630219 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630215 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630211 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630207 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630202 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630199 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630176 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630172 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630168 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630164 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630160 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630156 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630143 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630142 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630140 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630138 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630136 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630134 depend.output_id : 0 input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ()} output_args : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',)} args : 1372630131 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25075176: [{'Carton_gris': 25075293, 'Carton_brun': 25075294, 'mal_croppe': 25075295, 'cartonnette': 25075296, 'Teint_Dans_La_Masse': 25075297, 'metal': 25075298, 'flou': 25075299, 'autre_refus': 25075300, 'kraft': 25075301, 'plastique': 25075302, 'environnement': 25075303, 'papier': 25075304}]} input_args_next_step : {1372716939: ('0.0438399979022835',), 1372630271: ('0.0438399979022835',), 1372630267: ('0.0438399979022835',), 1372630263: ('0.0438399979022835',), 1372630258: ('0.0438399979022835',), 1372630253: ('0.0438399979022835',), 1372630249: ('0.0438399979022835',), 1372630219: ('0.0438399979022835',), 1372630215: ('0.0438399979022835',), 1372630211: ('0.0438399979022835',), 1372630207: ('0.0438399979022835',), 1372630202: ('0.0438399979022835',), 1372630199: ('0.0438399979022835',), 1372630176: ('0.0438399979022835',), 1372630172: ('0.0438399979022835',), 1372630168: ('0.0438399979022835',), 1372630164: ('0.0438399979022835',), 1372630160: ('0.0438399979022835',), 1372630156: ('0.0438399979022835',), 1372630143: ('0.0438399979022835',), 1372630142: ('0.0438399979022835',), 1372630140: ('0.0438399979022835',), 1372630138: ('0.0438399979022835',), 1372630136: ('0.0438399979022835',), 1372630134: ('0.0438399979022835',), 1372630131: ('0.0438399979022835',), 25075176: ()} output_args : {25075176: [{'Carton_gris': 25075293, 'Carton_brun': 25075294, 'mal_croppe': 25075295, 'cartonnette': 25075296, 'Teint_Dans_La_Masse': 25075297, 'metal': 25075298, 'flou': 25075299, 'autre_refus': 25075300, 'kraft': 25075301, 'plastique': 25075302, 'environnement': 25075303, 'papier': 25075304}]} args : 25075176 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :27, first value : ('0.0438399979022835',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25075176) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1372716939,1372630271,1372630267,1372630263,1372630258,1372630253,1372630249,1372630219,1372630215,1372630211,1372630207,1372630202,1372630199,1372630176,1372630172,1372630168,1372630164,1372630160,1372630156,1372630143,1372630142,1372630140,1372630138,1372630136,1372630134,1372630131) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372630131 begin to download photo : 1372630143 begin to download photo : 1372630176 begin to download photo : 1372630219 begin to download photo : 1372630271 download finish for photo 1372630143 begin to download photo : 1372630156 download finish for photo 1372630176 begin to download photo : 1372630199 download finish for photo 1372630131 begin to download photo : 1372630134 download finish for photo 1372630219 begin to download photo : 1372630249 download finish for photo 1372630271 begin to download photo : 1372716939 download finish for photo 1372630199 begin to download photo : 1372630202 download finish for photo 1372630156 begin to download photo : 1372630160 download finish for photo 1372630249 begin to download photo : 1372630253 download finish for photo 1372716939 download finish for photo 1372630134 begin to download photo : 1372630136 download finish for photo 1372630202 begin to download photo : 1372630207 download finish for photo 1372630253 begin to download photo : 1372630258 download finish for photo 1372630160 begin to download photo : 1372630164 download finish for photo 1372630136 begin to download photo : 1372630138 download finish for photo 1372630207 begin to download photo : 1372630211 download finish for photo 1372630164 begin to download photo : 1372630168 download finish for photo 1372630258 begin to download photo : 1372630263 download finish for photo 1372630138 begin to download photo : 1372630140 download finish for photo 1372630211 begin to download photo : 1372630215 download finish for photo 1372630168 begin to download photo : 1372630172 download finish for photo 1372630263 begin to download photo : 1372630267 download finish for photo 1372630215 download finish for photo 1372630140 begin to download photo : 1372630142 download finish for photo 1372630267 download finish for photo 1372630172 download finish for photo 1372630142 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette250752951753258829/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P25075176_23-07-2025_10_20_29.pdf 25075295 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075295 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250752951753258829 25075296 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373153012: '1753180686_1412626_1372630143_ab2da85d30b95f70aafcd302e0d298d5_rle_crop_3889787551_0.png'} change filename to text .imagette250752961753258829/ imagette250752961753258829/1753180686_1412626_1372630143_ab2da85d30b95f70aafcd302e0d298d5_rle_crop_3889787551_0.png.png imagette250752981753258829/ imagette250752991753258829/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/18e7e4c6829b31f87eeb1d94773e439b_90487035.png imagette250752961753258829 25075298 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250752981753258829 25075299 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250752991753258829 25075300 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373153007: '1753180686_1412626_1372630199_f8b4fccea63eba7cd88ddf466fa96ff9_rle_crop_3889787496_0.png'} change filename to text .imagette250753001753258829/ imagette250753001753258829/1753180686_1412626_1372630199_f8b4fccea63eba7cd88ddf466fa96ff9_rle_crop_3889787496_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/0082e0d328d7f3a4775260ae1c3542fa_38180806.png imagette250753001753258829 25075301 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373153329: '1753181166_1434973_1372630138_a6b6f5f32950b9a52ff7b2bd42f936d6_rle_crop_3889789602_0.png', 1373153330: '1753181166_1434973_1372630136_80c0e2d7af406ba8827aa0411585936b_rle_crop_3889789617_0.png', 1373153331: '1753181166_1434973_1372630134_c5408b4a9adfc7077fd428ff87be9270_rle_crop_3889789628_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a337da01cdecd3f7c4a63633f73c5488_38169105.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/3a7d7f230c9f42230f9af45f4810e239_35497904.png change filename to text .imagette250753011753258829/ imagette250753011753258829/1753181166_1434973_1372630136_80c0e2d7af406ba8827aa0411585936b_rle_crop_3889789617_0.png.png imagette250753011753258829/1753181166_1434973_1372630134_c5408b4a9adfc7077fd428ff87be9270_rle_crop_3889789628_0.png.png imagette250753011753258829/1753181166_1434973_1372630138_a6b6f5f32950b9a52ff7b2bd42f936d6_rle_crop_3889789602_0.png.png imagette250753021753258830/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/8e063d83357fc650fa1e5f216b499f0d_40510089.png imagette250753011753258829 25075302 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250753021753258830 25075293 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373153009: '1753180686_1412626_1372630202_ee41f4e67431e33573f0e8dab8a87555_rle_crop_3889787485_0.png', 1373153327: '1753181166_1434973_1372630138_a6b6f5f32950b9a52ff7b2bd42f936d6_rle_crop_3889789595_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/567cffcbd017c0156a717e71c3deb5f2_46952542.png change filename to text .imagette250752931753258830/ imagette250752931753258830/1753181166_1434973_1372630138_a6b6f5f32950b9a52ff7b2bd42f936d6_rle_crop_3889789595_0.png.png imagette250752931753258830/1753180686_1412626_1372630202_ee41f4e67431e33573f0e8dab8a87555_rle_crop_3889787485_0.png.png imagette250752941753258830/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/cf31034268192c42cf2f873297c1bf5c_1901742.png imagette250752931753258830 25075294 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075294 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250752941753258830 25075297 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373153000: '1753180686_1412626_1372716939_51cf6c6c72a2861f46777dca15cfe2a5_rle_crop_3889787382_0.png', 1373153001: '1753180686_1412626_1372716939_51cf6c6c72a2861f46777dca15cfe2a5_rle_crop_3889787383_0.png', 1373153002: '1753180686_1412626_1372630271_f340e85db3a876aef967d685c0020640_rle_crop_3889787395_0.png', 1373153003: '1753180686_1412626_1372630271_f340e85db3a876aef967d685c0020640_rle_crop_3889787396_0.png', 1373153004: '1753180686_1412626_1372630253_eaee80a9fb69a945e23d662ac4c24430_rle_crop_3889787438_0.png', 1373153005: '1753180686_1412626_1372630199_f8b4fccea63eba7cd88ddf466fa96ff9_rle_crop_3889787498_0.png', 1373153006: '1753180686_1412626_1372630168_4fb4f149d57034457456889c82016dd8_rle_crop_3889787532_0.png', 1373153320: '1753181166_1434973_1372630142_847db43a3d32927c68d2e073c87abfed_rle_crop_3889789567_0.png', 1373153321: '1753181166_1434973_1372630142_847db43a3d32927c68d2e073c87abfed_rle_crop_3889789568_0.png', 1373153322: '1753181166_1434973_1372630138_a6b6f5f32950b9a52ff7b2bd42f936d6_rle_crop_3889789599_0.png', 1373153323: '1753181166_1434973_1372630136_80c0e2d7af406ba8827aa0411585936b_rle_crop_3889789618_0.png', 1373153325: '1753181166_1434973_1372630131_bd2149645c6bffc4fac7283135059f00_rle_crop_3889789643_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a60efa7c4612aede32c8ab4827e60707_62291247.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/f1a669cba03f9732999d5361e7a98452_85293192.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a4341cf1d1f41b5dbb515349a09adab0_26827037.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a88ca0ada88d594a30227e2886488d43_63029232.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/de877bb9e64b219eadf948aaaded8cb3_91082020.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/8b9387c572d788d453c57fd68f93d272_15781674.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/147d0840dba1e0b09c92a9c84428ade6_31446472.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/c8ba9f547a52f5a5a755e4b9064322da_68692489.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/42563ed27fb2ddfb8476003eea1d8ca8_37154335.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/2250dd16a1b3b57c78a37935eaf1aaf2_60200728.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/3bc2e5c69b7bcaa24fb689295346b040_21851050.png change filename to text .imagette250752971753258830/ imagette250752971753258830/1753181166_1434973_1372630131_bd2149645c6bffc4fac7283135059f00_rle_crop_3889789643_0.png.png imagette250752971753258830/1753180686_1412626_1372716939_51cf6c6c72a2861f46777dca15cfe2a5_rle_crop_3889787383_0.png.png imagette250752971753258830/1753181166_1434973_1372630142_847db43a3d32927c68d2e073c87abfed_rle_crop_3889789567_0.png.png imagette250752971753258830/1753181166_1434973_1372630136_80c0e2d7af406ba8827aa0411585936b_rle_crop_3889789618_0.png.png imagette250752971753258830/1753180686_1412626_1372716939_51cf6c6c72a2861f46777dca15cfe2a5_rle_crop_3889787382_0.png.png imagette250752971753258830/1753181166_1434973_1372630138_a6b6f5f32950b9a52ff7b2bd42f936d6_rle_crop_3889789599_0.png.png imagette250752971753258830/1753180686_1412626_1372630271_f340e85db3a876aef967d685c0020640_rle_crop_3889787396_0.png.png imagette250752971753258830/1753180686_1412626_1372630253_eaee80a9fb69a945e23d662ac4c24430_rle_crop_3889787438_0.png.png imagette250752971753258830/1753181166_1434973_1372630142_847db43a3d32927c68d2e073c87abfed_rle_crop_3889789568_0.png.png imagette250752971753258830/1753180686_1412626_1372630199_f8b4fccea63eba7cd88ddf466fa96ff9_rle_crop_3889787498_0.png.png imagette250752971753258830/1753180686_1412626_1372630168_4fb4f149d57034457456889c82016dd8_rle_crop_3889787532_0.png.png imagette250752971753258830/1753180686_1412626_1372630271_f340e85db3a876aef967d685c0020640_rle_crop_3889787395_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/26f030d2758654bb5870955179c35abc_27484524.png imagette250752971753258830 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25075176 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25075305,25075306,25075307,25075308,25075309,25075310,25075311,25075312,25075313,25075314,25075315,25075316?tags=Carton_gris,Carton_brun,mal_croppe,cartonnette,Teint_Dans_La_Masse,metal,flou,autre_refus,kraft,plastique,environnement,papier your option no_mail is active, we will not send the real mail to your client args[1372716939] : ('0.0438399979022835',) no score found for photo 1372716939 We are sending mail with results at report@fotonower.com args[1372630271] : ('0.0438399979022835',) no score found for photo 1372630271 We are sending mail with results at report@fotonower.com args[1372630267] : ('0.0438399979022835',) no score found for photo 1372630267 We are sending mail with results at report@fotonower.com args[1372630263] : ('0.0438399979022835',) no score found for photo 1372630263 We are sending mail with results at report@fotonower.com args[1372630258] : ('0.0438399979022835',) no score found for photo 1372630258 We are sending mail with results at report@fotonower.com args[1372630253] : ('0.0438399979022835',) no score found for photo 1372630253 We are sending mail with results at report@fotonower.com args[1372630249] : ('0.0438399979022835',) no score found for photo 1372630249 We are sending mail with results at report@fotonower.com args[1372630219] : ('0.0438399979022835',) no score found for photo 1372630219 We are sending mail with results at report@fotonower.com args[1372630215] : ('0.0438399979022835',) no score found for photo 1372630215 We are sending mail with results at report@fotonower.com args[1372630211] : ('0.0438399979022835',) no score found for photo 1372630211 We are sending mail with results at report@fotonower.com args[1372630207] : ('0.0438399979022835',) no score found for photo 1372630207 We are sending mail with results at report@fotonower.com args[1372630202] : ('0.0438399979022835',) no score found for photo 1372630202 We are sending mail with results at report@fotonower.com args[1372630199] : ('0.0438399979022835',) no score found for photo 1372630199 We are sending mail with results at report@fotonower.com args[1372630176] : ('0.0438399979022835',) no score found for photo 1372630176 We are sending mail with results at report@fotonower.com args[1372630172] : ('0.0438399979022835',) no score found for photo 1372630172 We are sending mail with results at report@fotonower.com args[1372630168] : ('0.0438399979022835',) no score found for photo 1372630168 We are sending mail with results at report@fotonower.com args[1372630164] : ('0.0438399979022835',) no score found for photo 1372630164 We are sending mail with results at report@fotonower.com args[1372630160] : ('0.0438399979022835',) no score found for photo 1372630160 We are sending mail with results at report@fotonower.com args[1372630156] : ('0.0438399979022835',) no score found for photo 1372630156 We are sending mail with results at report@fotonower.com args[1372630143] : ('0.0438399979022835',) no score found for photo 1372630143 We are sending mail with results at report@fotonower.com args[1372630142] : ('0.0438399979022835',) no score found for photo 1372630142 We are sending mail with results at report@fotonower.com args[1372630140] : ('0.0438399979022835',) no score found for photo 1372630140 We are sending mail with results at report@fotonower.com args[1372630138] : ('0.0438399979022835',) no score found for photo 1372630138 We are sending mail with results at report@fotonower.com args[1372630136] : ('0.0438399979022835',) no score found for photo 1372630136 We are sending mail with results at report@fotonower.com args[1372630134] : ('0.0438399979022835',) no score found for photo 1372630134 We are sending mail with results at report@fotonower.com args[1372630131] : ('0.0438399979022835',) no score found for photo 1372630131 We are sending mail with results at report@fotonower.com refus_total : 0.0438399979022835 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075176_23-07-2025_10_20_29.pdf results_Auto_P25075176_23-07-2025_10_20_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075176_23-07-2025_10_20_29.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25075176','results_Auto_P25075176_23-07-2025_10_20_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075176_23-07-2025_10_20_29.pdf','pdf','','0.24','0.0438399979022835') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25075176]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] map_info['map_portfolio_photo'] : {25075176: [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131]} final : False mtd_id 4302 list_pids : [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372716939', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630271', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630267', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630263', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630258', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630253', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630249', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630219', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630215', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630211', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630207', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630202', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630199', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630176', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630172', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630168', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630164', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630160', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630156', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630143', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630142', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630140', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630138', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630136', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630134', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630131', None, None, None, None, None, '3325830') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25075176', '1372716939', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630271', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630267', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630263', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630258', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630253', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630249', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630219', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630215', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630211', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630207', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630202', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630199', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630176', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630172', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630168', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630164', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630160', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630156', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630143', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630142', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630140', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630138', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630136', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630134', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630131', None, None, None, None, None, '3325830')] time used for this insertion : 0.018100261688232422 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.671545505523682 time spend to save output : 0.018454313278198242 total time spend for step 4 : 4.68999981880188 step5:split_time_score Wed Jul 23 10:20:33 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25075176'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('25075176',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25075176) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372630271: {'path': 'temp/1753258828_2547113_1372630271_f340e85db3a876aef967d685c0020640.jpg', 'extension': 'jpg'}, 1372716939: {'path': 'temp/1753258828_2547113_1372716939_51cf6c6c72a2861f46777dca15cfe2a5.jpg', 'extension': 'jpg'}, 1372630176: {'path': 'temp/1753258828_2547113_1372630176_9cc7db78e8b928701a9d7568256dcfb9.jpg', 'extension': 'jpg'}, 1372630199: {'path': 'temp/1753258828_2547113_1372630199_f8b4fccea63eba7cd88ddf466fa96ff9.jpg', 'extension': 'jpg'}, 1372630202: {'path': 'temp/1753258828_2547113_1372630202_ee41f4e67431e33573f0e8dab8a87555.jpg', 'extension': 'jpg'}, 1372630207: {'path': 'temp/1753258828_2547113_1372630207_55d60717fac29370d9b5cf97816df60d.jpg', 'extension': 'jpg'}, 1372630211: {'path': 'temp/1753258828_2547113_1372630211_0cd0811b42a8eaa6220f5b73226adfc0.jpg', 'extension': 'jpg'}, 1372630215: {'path': 'temp/1753258828_2547113_1372630215_a4331df2a8530455ebe525207c7e9060.jpg', 'extension': 'jpg'}, 1372630219: {'path': 'temp/1753258828_2547113_1372630219_1d582f15482d5dad115718fc888ab7af.jpg', 'extension': 'jpg'}, 1372630249: {'path': 'temp/1753258828_2547113_1372630249_3d4f842338c072fbc24c66f2414a7778.jpg', 'extension': 'jpg'}, 1372630253: {'path': 'temp/1753258828_2547113_1372630253_eaee80a9fb69a945e23d662ac4c24430.jpg', 'extension': 'jpg'}, 1372630258: {'path': 'temp/1753258828_2547113_1372630258_0dbedfaeee86fb9168a0833d80bd49a6.jpg', 'extension': 'jpg'}, 1372630263: {'path': 'temp/1753258828_2547113_1372630263_8bfebdc2a5279c0bf9227686f3d3168e.jpg', 'extension': 'jpg'}, 1372630267: {'path': 'temp/1753258828_2547113_1372630267_b8c95da9e0978f1aa9cf24a4f2ee481d.jpg', 'extension': 'jpg'}, 1372630143: {'path': 'temp/1753258828_2547113_1372630143_ab2da85d30b95f70aafcd302e0d298d5.jpg', 'extension': 'jpg'}, 1372630156: {'path': 'temp/1753258828_2547113_1372630156_38a9cfc97a7b68e5ca4d4d7350120372.jpg', 'extension': 'jpg'}, 1372630160: {'path': 'temp/1753258828_2547113_1372630160_31dda4dac1c195c227e55a8c7ffbb9b8.jpg', 'extension': 'jpg'}, 1372630164: {'path': 'temp/1753258828_2547113_1372630164_0c782584a49962c6f989742c309c6000.jpg', 'extension': 'jpg'}, 1372630168: {'path': 'temp/1753258828_2547113_1372630168_4fb4f149d57034457456889c82016dd8.jpg', 'extension': 'jpg'}, 1372630172: {'path': 'temp/1753258828_2547113_1372630172_af812f02b235c2885ff400b1f6b86764.jpg', 'extension': 'jpg'}, 1372630131: {'path': 'temp/1753258828_2547113_1372630131_bd2149645c6bffc4fac7283135059f00.jpg', 'extension': 'jpg'}, 1372630134: {'path': 'temp/1753258828_2547113_1372630134_c5408b4a9adfc7077fd428ff87be9270.jpg', 'extension': 'jpg'}, 1372630136: {'path': 'temp/1753258828_2547113_1372630136_80c0e2d7af406ba8827aa0411585936b.jpg', 'extension': 'jpg'}, 1372630138: {'path': 'temp/1753258828_2547113_1372630138_a6b6f5f32950b9a52ff7b2bd42f936d6.jpg', 'extension': 'jpg'}, 1372630140: {'path': 'temp/1753258828_2547113_1372630140_e198aae2dd947cf64ccb8a2ab4e28bc0.jpg', 'extension': 'jpg'}, 1372630142: {'path': 'temp/1753258828_2547113_1372630142_847db43a3d32927c68d2e073c87abfed.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 25075176; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25075176 group by h (('13', 26),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25075176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (25075176) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (25075176) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18072025 25075176 Nombre de photos uploadées : 26 / 23040 (0%) 18072025 25075176 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 18072025 25075176 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1372716939, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/51cf6c6c72a2861f46777dca15cfe2a5.jpg', 'username': None, 'uploaded_at': 1752894303, 'text': 'image_18072025_13_02_34_9128.jpg'}, {'photo_id': 1372630131, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/bd2149645c6bffc4fac7283135059f00.jpg', 'username': None, 'uploaded_at': 1752837088, 'text': 'image_18072025_13_10_44_9124.jpg'}, {'photo_id': 1372630143, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/ab2da85d30b95f70aafcd302e0d298d5.jpg', 'username': None, 'uploaded_at': 1752837123, 'text': 'image_18072025_13_11_04_10147.jpg'}, {'photo_id': 1372630142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/847db43a3d32927c68d2e073c87abfed.jpg', 'username': None, 'uploaded_at': 1752837123, 'text': 'image_18072025_13_11_15_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013110637664794922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25075176, '2025-07-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1987272,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02853846549987793 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1987272 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25050193, 'dashboard_result_id': 12756981, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050193_19-07-2025_05_34_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25050233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050237, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25050840, 'dashboard_result_id': 12756982, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050840_19-07-2025_05_34_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25050844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050855, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25051132, 'dashboard_result_id': 12756983, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051132_19-07-2025_05_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25051162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051163, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051173, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25051518, 'dashboard_result_id': 12756984, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051518_19-07-2025_05_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25051529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051533, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25051963, 'dashboard_result_id': 12756985, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051963_19-07-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052024, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25052528, 'dashboard_result_id': 12756986, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052528_19-07-2025_05_36_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052566, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25052865, 'dashboard_result_id': 12756987, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052865_19-07-2025_05_36_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052904, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25053274, 'dashboard_result_id': 12756988, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053274_19-07-2025_05_37_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053288, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25053866, 'dashboard_result_id': 12756989, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053866_19-07-2025_05_37_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053889, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25054362, 'dashboard_result_id': 12756990, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054362_19-07-2025_05_37_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054376, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25054701, 'dashboard_result_id': 12756991, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054701_19-07-2025_05_37_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054716, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25055134, 'dashboard_result_id': 12756992, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055134_19-07-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055148, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25055501, 'dashboard_result_id': 12756993, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055501_19-07-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055561, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25056002, 'dashboard_result_id': 12756994, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056002_19-07-2025_05_39_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056015, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25056398, 'dashboard_result_id': 12756995, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056398_19-07-2025_05_39_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056436, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25056827, 'dashboard_result_id': 12756996, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056827_19-07-2025_05_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056866, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25057357, 'dashboard_result_id': 12756997, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057357_19-07-2025_05_40_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25057393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25057394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25057395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25057396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25057397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25057398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25057399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25057400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25057401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25057402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25057403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25057404, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25057875, 'dashboard_result_id': 12756998, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057875_19-07-2025_05_40_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25057878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25057879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25057880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25057881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25057882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25057884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25057885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25057887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25057888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25057889, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25058243, 'dashboard_result_id': 12756999, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058243_19-07-2025_05_41_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25058260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25058261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25058262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25058263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25058264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25058265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25058266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25058267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25058268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25058269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25058270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25058271, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25058757, 'dashboard_result_id': 12757000, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058757_19-07-2025_05_41_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25058761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25058762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25058763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25058764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25058765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25058766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25058767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25058768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25058769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25058770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25058771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25058772, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25059245, 'dashboard_result_id': 12757001, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059245_19-07-2025_05_41_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059264, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25059633, 'dashboard_result_id': 12757002, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059633_19-07-2025_05_42_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059673, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25060055, 'dashboard_result_id': 12757003, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060055_19-07-2025_05_42_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25060083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060094, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25060470, 'dashboard_result_id': 12757004, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060470_19-07-2025_05_43_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25060487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060497, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25061056, 'dashboard_result_id': 12757005, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_19-07-2025_05_43_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061086, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25061436, 'dashboard_result_id': 12757006, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061436_19-07-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061453, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25061873, 'dashboard_result_id': 12757007, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061873_19-07-2025_05_44_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061899, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25062448, 'dashboard_result_id': 12757008, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062448_19-07-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25062475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25062476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25062477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25062478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25062479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25062480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25062481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25062482, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25062483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25062484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25062485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25062486, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25062976, 'dashboard_result_id': 12757009, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062976_19-07-2025_05_44_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063038, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25063914, 'dashboard_result_id': 12757010, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25063914_19-07-2025_05_45_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063955, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25064457, 'dashboard_result_id': 12757011, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25064457_19-07-2025_05_45_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25064490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25064491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25064492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25064493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25064494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25064495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25064496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25064497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25064498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25064499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25064500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25064501, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25065089, 'dashboard_result_id': 12757012, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065089_19-07-2025_05_46_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065126, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25065654, 'dashboard_result_id': 12757013, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065654_19-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065669, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25066223, 'dashboard_result_id': 12757014, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066223_19-07-2025_05_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25066224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25066225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25066226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25066227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25066228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25066229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25066230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25066231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25066232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25066233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25066234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25066235, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25066755, 'dashboard_result_id': 12757017, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066755_19-07-2025_05_47_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25066784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25066785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25066787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25066788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25066789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25066791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25066792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25066793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25066795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25066796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25066797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25066799, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25067483, 'dashboard_result_id': 12757024, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25067483_19-07-2025_05_47_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25067512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25067513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25067514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25067515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25067516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25067517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25067518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25067519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25067520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25067521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25067522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25067523, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25068102, 'dashboard_result_id': 12757025, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068102_19-07-2025_05_48_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25068107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25068108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25068109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25068110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25068111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25068112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25068113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25068114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25068115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25068116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25068117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25068118, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25068752, 'dashboard_result_id': 12757026, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068752_19-07-2025_05_48_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25068778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25068779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25068780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25068782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25068783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25068785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25068786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25068787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25068788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25068789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25068790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25068791, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25069359, 'dashboard_result_id': 12757027, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069359_19-07-2025_05_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25069381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25069382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25069383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25069384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25069385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25069386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25069387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25069388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25069389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25069390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25069391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25069392, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25069894, 'dashboard_result_id': 12757028, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069894_19-07-2025_05_49_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25069923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25069924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25069925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25069926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25069927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25069928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25069929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25069930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25069931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25069932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25069933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25069934, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25070413, 'dashboard_result_id': 12757029, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25070413_19-07-2025_05_49_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25070450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25070451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25070452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25070453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25070454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25070455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25070456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25070457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25070458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25070459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25070460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25070461, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25071070, 'dashboard_result_id': 12757030, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071070_19-07-2025_06_06_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071113, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25071574, 'dashboard_result_id': 12757031, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071574_19-07-2025_06_06_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071634, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25075176, 'dashboard_result_id': 12757032, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075176_21-07-2025_15_13_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075301, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075304, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25075178, 'dashboard_result_id': 12757033, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075178_21-07-2025_15_14_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075329, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25075181, 'dashboard_result_id': 12757034, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075181_21-07-2025_15_14_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25075245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075256, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25075183, 'dashboard_result_id': 12757035, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075183_21-07-2025_14_30_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075203, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25071866, 'dashboard_result_id': 12757036, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071866_19-07-2025_05_52_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071879, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071884, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25072143, 'dashboard_result_id': 12757037, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072143_19-07-2025_05_53_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25072173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25072174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25072175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25072176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25072177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25072178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25072179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25072180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25072181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25072182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25072183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25072184, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25072848, 'dashboard_result_id': 12757038, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072848_19-07-2025_05_53_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25072936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25072937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25072938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25072939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25072940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25072941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25072942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25072943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25072944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25072945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25072946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25072947, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25073797, 'dashboard_result_id': 12757039, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25073797_19-07-2025_05_53_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25073824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25073825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25073826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25073827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25073828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25073829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25073830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25073831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25073832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25073833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25073834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25073835, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25074260, 'dashboard_result_id': 12757040, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074260_19-07-2025_05_54_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25074293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25074294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25074295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25074296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25074297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25074298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25074299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25074300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25074301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25074302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25074303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25074304, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25074808, 'dashboard_result_id': 12757041, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074808_19-07-2025_05_54_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25074835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25074836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25074837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25074838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25074839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25074840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25074841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25074842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25074843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25074844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25074845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25074846, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25075392, 'dashboard_result_id': 12757042, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075392_19-07-2025_05_55_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075434, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25075899, 'dashboard_result_id': 12757043, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075899_19-07-2025_05_55_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25075905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075916, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25076411, 'dashboard_result_id': 12757044, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25076411_19-07-2025_05_56_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25076442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25076443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25076444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25076445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25076446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25076447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25076448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25076449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25076450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25076452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25076453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25076454, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25077256, 'dashboard_result_id': 12757045, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077256_19-07-2025_05_56_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25077261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25077262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25077263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25077264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25077265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25077266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25077267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25077268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25077269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25077270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25077271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25077272, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25077908, 'dashboard_result_id': 12757046, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077908_19-07-2025_05_57_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25077913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25077914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25077915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25077916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25077917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25077918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25077919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25077920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25077921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25077922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25077923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25077924, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25078410, 'dashboard_result_id': 12757047, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078410_19-07-2025_05_57_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25078412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25078413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25078414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25078415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25078416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25078417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25078418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25078419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25078420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25078421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25078422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25078423, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25078825, 'dashboard_result_id': 12757048, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078825_19-07-2025_05_58_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25078829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25078830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25078831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25078832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25078833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25078834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25078835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25078836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25078837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25078838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25078839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25078840, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25079268, 'dashboard_result_id': 12757049, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079268_19-07-2025_05_58_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25079295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25079296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25079297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25079298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25079299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25079300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25079301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25079302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25079303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25079304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25079305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25079306, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25079836, 'dashboard_result_id': 12757050, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079836_19-07-2025_05_59_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25079845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25079846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25079847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25079848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25079849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25079850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25079851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25079852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25079853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25079854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25079855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25079856, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25080362, 'dashboard_result_id': 12757051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080362_19-07-2025_05_59_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25080365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25080366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25080367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25080368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25080369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25080370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25080371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25080372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25080373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25080374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25080375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25080376, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25080785, 'dashboard_result_id': 12757052, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080785_19-07-2025_06_00_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25080819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25080820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25080821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25080822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25080823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25080824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25080825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25080826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25080827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25080828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25080829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25080830, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25081341, 'dashboard_result_id': 12757053, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081341_19-07-2025_06_01_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25081369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25081370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25081371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25081372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25081373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25081374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25081375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25081376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25081377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25081378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25081379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25081380, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25081942, 'dashboard_result_id': 12757054, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081942_19-07-2025_06_01_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25081958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25081960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25081961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25081963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25081964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25081965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25081967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25081968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25081969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25081971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25081972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25081973, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25082766, 'dashboard_result_id': 12757055, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25082766_19-07-2025_06_02_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25082805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25082806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25082807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25082808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25082809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25082810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25082811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25082812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25082813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25082814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25082815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25082816, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25083714, 'dashboard_result_id': 12757056, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25083714_19-07-2025_06_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25083746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25083747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25083748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25083749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25083750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25083751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25083752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25083753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25083754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25083755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25083756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25083757, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25084623, 'dashboard_result_id': 12757057, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25084623_19-07-2025_06_03_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25084635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25084636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25084637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25084638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25084639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25084640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25084641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25084642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25084643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25084644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25084645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25084646, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25085550, 'dashboard_result_id': 12757058, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085550_19-07-2025_06_03_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25085551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25085552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25085553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25085554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25085555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25085556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25085557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25085558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25085559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25085560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25085561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25085562, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25085838, 'dashboard_result_id': 12757059, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085838_19-07-2025_06_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25085842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25085843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25085844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25085845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25085846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25085847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25085848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25085849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25085850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25085851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25085852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25085853, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25086204, 'dashboard_result_id': 12757060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086204_19-07-2025_06_04_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086230, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086240, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1998066, 'mtr_portfolio_id': 25086551, 'dashboard_result_id': 12757061, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086551_19-07-2025_06_05_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25086556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086566, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086567, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25050193 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309572, 'mtr_portfolio_id': 25050193, 'created_at': datetime.datetime(2025, 7, 19, 5, 34, 28), 'result': '0.04183061377975441', 'result_long': None, 'result_double': None}] Qualite : 0.04183061377975441 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25050193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050193_19-07-2025_05_34_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25050193 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050193_19-07-2025_05_34_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25050233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050237, 'pht': 3726}}" where mtr_portfolio_id = 25050193 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25050193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756981, 0.04183061377975441, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050193_19-07-2025_05_34_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25050233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050237, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25050840 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309573, 'mtr_portfolio_id': 25050840, 'created_at': datetime.datetime(2025, 7, 19, 5, 34, 29), 'result': '0.044851098501607845', 'result_long': None, 'result_double': None}] Qualite : 0.044851098501607845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25050840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050840_19-07-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25050840 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050840_19-07-2025_05_34_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25050844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050855, 'pht': 3726}}" where mtr_portfolio_id = 25050840 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25050840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756982, 0.044851098501607845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050840_19-07-2025_05_34_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25050844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050855, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25051132 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309574, 'mtr_portfolio_id': 25051132, 'created_at': datetime.datetime(2025, 7, 19, 5, 34, 57), 'result': '0.03330558138929381', 'result_long': None, 'result_double': None}] Qualite : 0.03330558138929381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25051132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051132_19-07-2025_05_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25051132 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051132_19-07-2025_05_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25051162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051163, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051173, 'pht': 3726}}" where mtr_portfolio_id = 25051132 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25051132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756983, 0.03330558138929381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051132_19-07-2025_05_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25051162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051163, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051173, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25051518 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309575, 'mtr_portfolio_id': 25051518, 'created_at': datetime.datetime(2025, 7, 19, 5, 35, 27), 'result': '0.03630290391305711', 'result_long': None, 'result_double': None}] Qualite : 0.03630290391305711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25051518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051518_19-07-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25051518 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051518_19-07-2025_05_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25051529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051533, 'pht': 3726}}" where mtr_portfolio_id = 25051518 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25051518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756984, 0.03630290391305711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051518_19-07-2025_05_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25051529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051533, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25051963 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309576, 'mtr_portfolio_id': 25051963, 'created_at': datetime.datetime(2025, 7, 19, 5, 35, 29), 'result': '0.03598719462706737', 'result_long': None, 'result_double': None}] Qualite : 0.03598719462706737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25051963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051963_19-07-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25051963 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051963_19-07-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052024, 'pht': 3726}}" where mtr_portfolio_id = 25051963 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25051963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756985, 0.03598719462706737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051963_19-07-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052024, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25052528 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309577, 'mtr_portfolio_id': 25052528, 'created_at': datetime.datetime(2025, 7, 19, 5, 35, 58), 'result': '0.03505318389910108', 'result_long': None, 'result_double': None}] Qualite : 0.03505318389910108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25052528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052528_19-07-2025_05_36_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25052528 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052528_19-07-2025_05_36_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052566, 'pht': 3726}}" where mtr_portfolio_id = 25052528 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25052528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756986, 0.03505318389910108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052528_19-07-2025_05_36_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052566, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25052865 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309578, 'mtr_portfolio_id': 25052865, 'created_at': datetime.datetime(2025, 7, 19, 5, 36, 29), 'result': '0.03261948402284994', 'result_long': None, 'result_double': None}] Qualite : 0.03261948402284994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25052865 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052865_19-07-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25052865 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052865_19-07-2025_05_36_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052904, 'pht': 3726}}" where mtr_portfolio_id = 25052865 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25052865 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756987, 0.03261948402284994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052865_19-07-2025_05_36_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052904, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25053274 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309579, 'mtr_portfolio_id': 25053274, 'created_at': datetime.datetime(2025, 7, 19, 5, 37), 'result': '0.05428576525301309', 'result_long': None, 'result_double': None}] Qualite : 0.05428576525301309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25053274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053274_19-07-2025_05_37_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25053274 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053274_19-07-2025_05_37_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053288, 'pht': 3726}}" where mtr_portfolio_id = 25053274 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25053274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756988, 0.05428576525301309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053274_19-07-2025_05_37_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053288, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25053866 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309580, 'mtr_portfolio_id': 25053866, 'created_at': datetime.datetime(2025, 7, 19, 5, 37, 27), 'result': '0.0420237652388802', 'result_long': None, 'result_double': None}] Qualite : 0.0420237652388802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25053866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053866_19-07-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25053866 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053866_19-07-2025_05_37_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053889, 'pht': 3726}}" where mtr_portfolio_id = 25053866 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25053866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756989, 0.0420237652388802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053866_19-07-2025_05_37_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053889, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25054362 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309581, 'mtr_portfolio_id': 25054362, 'created_at': datetime.datetime(2025, 7, 19, 5, 37, 29), 'result': '0.039725904722860354', 'result_long': None, 'result_double': None}] Qualite : 0.039725904722860354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25054362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054362_19-07-2025_05_37_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25054362 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054362_19-07-2025_05_37_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054376, 'pht': 3726}}" where mtr_portfolio_id = 25054362 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25054362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756990, 0.039725904722860354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054362_19-07-2025_05_37_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054376, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25054701 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309582, 'mtr_portfolio_id': 25054701, 'created_at': datetime.datetime(2025, 7, 19, 5, 37, 29), 'result': '0.036727798086107086', 'result_long': None, 'result_double': None}] Qualite : 0.036727798086107086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25054701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054701_19-07-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25054701 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054701_19-07-2025_05_37_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054716, 'pht': 3726}}" where mtr_portfolio_id = 25054701 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25054701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756991, 0.036727798086107086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054701_19-07-2025_05_37_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054716, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25055134 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309583, 'mtr_portfolio_id': 25055134, 'created_at': datetime.datetime(2025, 7, 19, 5, 37, 57), 'result': '0.03465311213203733', 'result_long': None, 'result_double': None}] Qualite : 0.03465311213203733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25055134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055134_19-07-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25055134 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055134_19-07-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055148, 'pht': 3726}}" where mtr_portfolio_id = 25055134 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25055134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756992, 0.03465311213203733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055134_19-07-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055148, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25055501 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309584, 'mtr_portfolio_id': 25055501, 'created_at': datetime.datetime(2025, 7, 19, 5, 38, 29), 'result': '0.04157192022691805', 'result_long': None, 'result_double': None}] Qualite : 0.04157192022691805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25055501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055501_19-07-2025_05_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25055501 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055501_19-07-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055561, 'pht': 3726}}" where mtr_portfolio_id = 25055501 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25055501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756993, 0.04157192022691805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055501_19-07-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055561, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25056002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309585, 'mtr_portfolio_id': 25056002, 'created_at': datetime.datetime(2025, 7, 19, 5, 38, 58), 'result': '0.03851220192802965', 'result_long': None, 'result_double': None}] Qualite : 0.03851220192802965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25056002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056002_19-07-2025_05_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25056002 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056002_19-07-2025_05_39_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056015, 'pht': 3726}}" where mtr_portfolio_id = 25056002 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25056002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756994, 0.03851220192802965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056002_19-07-2025_05_39_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056015, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25056398 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309586, 'mtr_portfolio_id': 25056398, 'created_at': datetime.datetime(2025, 7, 19, 5, 39, 28), 'result': '0.042554783460261446', 'result_long': None, 'result_double': None}] Qualite : 0.042554783460261446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25056398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056398_19-07-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25056398 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056398_19-07-2025_05_39_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056436, 'pht': 3726}}" where mtr_portfolio_id = 25056398 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25056398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756995, 0.042554783460261446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056398_19-07-2025_05_39_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056436, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25056827 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309587, 'mtr_portfolio_id': 25056827, 'created_at': datetime.datetime(2025, 7, 19, 5, 39, 28), 'result': '0.0466417501505907', 'result_long': None, 'result_double': None}] Qualite : 0.0466417501505907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25056827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056827_19-07-2025_05_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25056827 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056827_19-07-2025_05_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056866, 'pht': 3726}}" where mtr_portfolio_id = 25056827 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25056827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756996, 0.0466417501505907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056827_19-07-2025_05_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056866, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25057357 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309588, 'mtr_portfolio_id': 25057357, 'created_at': datetime.datetime(2025, 7, 19, 5, 39, 59), 'result': '0.043792848244922224', 'result_long': None, 'result_double': None}] Qualite : 0.043792848244922224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25057357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057357_19-07-2025_05_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25057357 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057357_19-07-2025_05_40_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25057393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25057394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25057395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25057396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25057397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25057398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25057399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25057400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25057401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25057402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25057403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25057404, 'pht': 3726}}" where mtr_portfolio_id = 25057357 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25057357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756997, 0.043792848244922224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057357_19-07-2025_05_40_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25057393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25057394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25057395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25057396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25057397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25057398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25057399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25057400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25057401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25057402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25057403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25057404, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25057875 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309589, 'mtr_portfolio_id': 25057875, 'created_at': datetime.datetime(2025, 7, 19, 5, 40, 30), 'result': '0.03267962440536544', 'result_long': None, 'result_double': None}] Qualite : 0.03267962440536544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25057875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057875_19-07-2025_05_40_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25057875 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057875_19-07-2025_05_40_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25057878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25057879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25057880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25057881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25057882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25057884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25057885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25057887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25057888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25057889, 'pht': 3726}}" where mtr_portfolio_id = 25057875 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25057875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756998, 0.03267962440536544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25057875_19-07-2025_05_40_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25057878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25057879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25057880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25057881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25057882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25057884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25057885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25057887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25057888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25057889, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25058243 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309590, 'mtr_portfolio_id': 25058243, 'created_at': datetime.datetime(2025, 7, 19, 5, 40, 57), 'result': '0.03709706871907135', 'result_long': None, 'result_double': None}] Qualite : 0.03709706871907135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25058243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058243_19-07-2025_05_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25058243 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058243_19-07-2025_05_41_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25058260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25058261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25058262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25058263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25058264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25058265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25058266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25058267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25058268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25058269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25058270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25058271, 'pht': 3726}}" where mtr_portfolio_id = 25058243 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25058243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12756999, 0.03709706871907135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058243_19-07-2025_05_41_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25058260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25058261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25058262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25058263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25058264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25058265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25058266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25058267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25058268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25058269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25058270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25058271, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25058757 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309591, 'mtr_portfolio_id': 25058757, 'created_at': datetime.datetime(2025, 7, 19, 5, 41, 29), 'result': '0.03553723436144035', 'result_long': None, 'result_double': None}] Qualite : 0.03553723436144035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25058757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058757_19-07-2025_05_41_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25058757 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058757_19-07-2025_05_41_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25058761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25058762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25058763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25058764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25058765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25058766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25058767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25058768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25058769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25058770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25058771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25058772, 'pht': 3726}}" where mtr_portfolio_id = 25058757 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25058757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757000, 0.03553723436144035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25058757_19-07-2025_05_41_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25058761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25058762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25058763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25058764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25058765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25058766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25058767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25058768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25058769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25058770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25058771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25058772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25059245 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309592, 'mtr_portfolio_id': 25059245, 'created_at': datetime.datetime(2025, 7, 19, 5, 41, 30), 'result': '0.04476118447176216', 'result_long': None, 'result_double': None}] Qualite : 0.04476118447176216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25059245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059245_19-07-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25059245 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059245_19-07-2025_05_41_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059264, 'pht': 3726}}" where mtr_portfolio_id = 25059245 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25059245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757001, 0.04476118447176216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059245_19-07-2025_05_41_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059264, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25059633 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309593, 'mtr_portfolio_id': 25059633, 'created_at': datetime.datetime(2025, 7, 19, 5, 41, 59), 'result': '0.04407489300725096', 'result_long': None, 'result_double': None}] Qualite : 0.04407489300725096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25059633 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059633_19-07-2025_05_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25059633 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059633_19-07-2025_05_42_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059673, 'pht': 3726}}" where mtr_portfolio_id = 25059633 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25059633 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757002, 0.04407489300725096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059633_19-07-2025_05_42_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059673, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25060055 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309594, 'mtr_portfolio_id': 25060055, 'created_at': datetime.datetime(2025, 7, 19, 5, 42, 30), 'result': '0.03669933590856996', 'result_long': None, 'result_double': None}] Qualite : 0.03669933590856996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25060055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060055_19-07-2025_05_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25060055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060055_19-07-2025_05_42_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25060083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060094, 'pht': 3726}}" where mtr_portfolio_id = 25060055 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25060055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757003, 0.03669933590856996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060055_19-07-2025_05_42_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25060083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060094, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25060470 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309595, 'mtr_portfolio_id': 25060470, 'created_at': datetime.datetime(2025, 7, 19, 5, 43, 1), 'result': '0.03874648987517327', 'result_long': None, 'result_double': None}] Qualite : 0.03874648987517327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25060470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060470_19-07-2025_05_43_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25060470 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060470_19-07-2025_05_43_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25060487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060497, 'pht': 3726}}" where mtr_portfolio_id = 25060470 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25060470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757004, 0.03874648987517327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060470_19-07-2025_05_43_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25060487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060497, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25061056 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309596, 'mtr_portfolio_id': 25061056, 'created_at': datetime.datetime(2025, 7, 19, 5, 43, 28), 'result': '0.04409260987629115', 'result_long': None, 'result_double': None}] Qualite : 0.04409260987629115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25061056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_19-07-2025_05_43_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25061056 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_19-07-2025_05_43_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061086, 'pht': 3726}}" where mtr_portfolio_id = 25061056 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25061056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757005, 0.04409260987629115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_19-07-2025_05_43_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061086, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25061436 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309597, 'mtr_portfolio_id': 25061436, 'created_at': datetime.datetime(2025, 7, 19, 5, 43, 27), 'result': '0.04316095581515124', 'result_long': None, 'result_double': None}] Qualite : 0.04316095581515124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25061436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061436_19-07-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25061436 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061436_19-07-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061453, 'pht': 3726}}" where mtr_portfolio_id = 25061436 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25061436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757006, 0.04316095581515124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061436_19-07-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061453, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25061873 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309598, 'mtr_portfolio_id': 25061873, 'created_at': datetime.datetime(2025, 7, 19, 5, 43, 58), 'result': '0.07974755467417154', 'result_long': None, 'result_double': None}] Qualite : 0.07974755467417154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25061873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061873_19-07-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25061873 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061873_19-07-2025_05_44_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061899, 'pht': 3726}}" where mtr_portfolio_id = 25061873 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25061873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757007, 0.07974755467417154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061873_19-07-2025_05_44_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061899, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25062448 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309599, 'mtr_portfolio_id': 25062448, 'created_at': datetime.datetime(2025, 7, 19, 5, 44, 29), 'result': '0.023192643107395192', 'result_long': None, 'result_double': None}] Qualite : 0.023192643107395192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25062448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062448_19-07-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25062448 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062448_19-07-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25062475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25062476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25062477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25062478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25062479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25062480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25062481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25062482, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25062483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25062484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25062485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25062486, 'pht': 3726}}" where mtr_portfolio_id = 25062448 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25062448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757008, 0.023192643107395192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062448_19-07-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25062475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25062476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25062477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25062478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25062479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25062480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25062481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25062482, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25062483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25062484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25062485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25062486, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25062976 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309600, 'mtr_portfolio_id': 25062976, 'created_at': datetime.datetime(2025, 7, 19, 5, 44, 56), 'result': '0.03644752816862647', 'result_long': None, 'result_double': None}] Qualite : 0.03644752816862647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25062976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062976_19-07-2025_05_44_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25062976 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062976_19-07-2025_05_44_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063038, 'pht': 3726}}" where mtr_portfolio_id = 25062976 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25062976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757009, 0.03644752816862647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25062976_19-07-2025_05_44_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063038, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25063914 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309601, 'mtr_portfolio_id': 25063914, 'created_at': datetime.datetime(2025, 7, 19, 5, 45, 28), 'result': '0.043115481039119184', 'result_long': None, 'result_double': None}] Qualite : 0.043115481039119184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25063914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25063914_19-07-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25063914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25063914_19-07-2025_05_45_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063955, 'pht': 3726}}" where mtr_portfolio_id = 25063914 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25063914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757010, 0.043115481039119184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25063914_19-07-2025_05_45_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063955, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25064457 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309602, 'mtr_portfolio_id': 25064457, 'created_at': datetime.datetime(2025, 7, 19, 5, 45, 29), 'result': '0.043974157795668864', 'result_long': None, 'result_double': None}] Qualite : 0.043974157795668864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25064457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25064457_19-07-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25064457 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25064457_19-07-2025_05_45_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25064490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25064491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25064492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25064493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25064494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25064495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25064496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25064497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25064498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25064499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25064500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25064501, 'pht': 3726}}" where mtr_portfolio_id = 25064457 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25064457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757011, 0.043974157795668864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25064457_19-07-2025_05_45_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25064490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25064491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25064492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25064493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25064494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25064495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25064496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25064497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25064498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25064499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25064500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25064501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25065089 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309603, 'mtr_portfolio_id': 25065089, 'created_at': datetime.datetime(2025, 7, 19, 5, 46, 1), 'result': '0.06046971368536874', 'result_long': None, 'result_double': None}] Qualite : 0.06046971368536874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25065089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065089_19-07-2025_05_46_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25065089 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065089_19-07-2025_05_46_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065126, 'pht': 3726}}" where mtr_portfolio_id = 25065089 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25065089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757012, 0.06046971368536874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065089_19-07-2025_05_46_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065126, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25065654 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309604, 'mtr_portfolio_id': 25065654, 'created_at': datetime.datetime(2025, 7, 19, 5, 46, 27), 'result': '0.054132338269631784', 'result_long': None, 'result_double': None}] Qualite : 0.054132338269631784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25065654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065654_19-07-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25065654 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065654_19-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065669, 'pht': 3726}}" where mtr_portfolio_id = 25065654 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25065654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757013, 0.054132338269631784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065654_19-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065669, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25066223 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309605, 'mtr_portfolio_id': 25066223, 'created_at': datetime.datetime(2025, 7, 19, 5, 46, 58), 'result': '0.03675854273862188', 'result_long': None, 'result_double': None}] Qualite : 0.03675854273862188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25066223 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066223_19-07-2025_05_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25066223 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066223_19-07-2025_05_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25066224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25066225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25066226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25066227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25066228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25066229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25066230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25066231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25066232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25066233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25066234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25066235, 'pht': 3726}}" where mtr_portfolio_id = 25066223 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25066223 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757014, 0.03675854273862188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066223_19-07-2025_05_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25066224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25066225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25066226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25066227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25066228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25066229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25066230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25066231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25066232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25066233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25066234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25066235, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25066755 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309606, 'mtr_portfolio_id': 25066755, 'created_at': datetime.datetime(2025, 7, 19, 5, 47, 31), 'result': '0.06781339948882327', 'result_long': None, 'result_double': None}] Qualite : 0.06781339948882327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25066755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066755_19-07-2025_05_47_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25066755 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066755_19-07-2025_05_47_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25066784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25066785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25066787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25066788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25066789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25066791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25066792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25066793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25066795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25066796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25066797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25066799, 'pht': 3726}}" where mtr_portfolio_id = 25066755 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25066755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757017, 0.06781339948882327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25066755_19-07-2025_05_47_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25066784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25066785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25066787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25066788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25066789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25066791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25066792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25066793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25066795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25066796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25066797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25066799, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25067483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309607, 'mtr_portfolio_id': 25067483, 'created_at': datetime.datetime(2025, 7, 19, 5, 47, 29), 'result': '0.04121719040404102', 'result_long': None, 'result_double': None}] Qualite : 0.04121719040404102 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25067483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25067483_19-07-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25067483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25067483_19-07-2025_05_47_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25067512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25067513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25067514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25067515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25067516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25067517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25067518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25067519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25067520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25067521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25067522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25067523, 'pht': 3726}}" where mtr_portfolio_id = 25067483 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25067483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757024, 0.04121719040404102, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25067483_19-07-2025_05_47_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25067512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25067513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25067514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25067515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25067516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25067517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25067518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25067519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25067520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25067521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25067522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25067523, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25068102 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309608, 'mtr_portfolio_id': 25068102, 'created_at': datetime.datetime(2025, 7, 19, 5, 47, 59), 'result': '0.0744565483847147', 'result_long': None, 'result_double': None}] Qualite : 0.0744565483847147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25068102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068102_19-07-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25068102 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068102_19-07-2025_05_48_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25068107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25068108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25068109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25068110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25068111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25068112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25068113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25068114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25068115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25068116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25068117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25068118, 'pht': 3726}}" where mtr_portfolio_id = 25068102 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25068102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757025, 0.0744565483847147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068102_19-07-2025_05_48_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25068107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25068108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25068109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25068110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25068111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25068112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25068113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25068114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25068115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25068116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25068117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25068118, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25068752 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309609, 'mtr_portfolio_id': 25068752, 'created_at': datetime.datetime(2025, 7, 19, 5, 48, 28), 'result': '0.06408075432108794', 'result_long': None, 'result_double': None}] Qualite : 0.06408075432108794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25068752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068752_19-07-2025_05_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25068752 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068752_19-07-2025_05_48_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25068778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25068779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25068780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25068782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25068783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25068785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25068786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25068787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25068788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25068789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25068790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25068791, 'pht': 3726}}" where mtr_portfolio_id = 25068752 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25068752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757026, 0.06408075432108794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25068752_19-07-2025_05_48_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25068778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25068779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25068780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25068782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25068783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25068785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25068786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25068787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25068788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25068789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25068790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25068791, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25069359 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309610, 'mtr_portfolio_id': 25069359, 'created_at': datetime.datetime(2025, 7, 19, 5, 48, 59), 'result': '0.03924544644379808', 'result_long': None, 'result_double': None}] Qualite : 0.03924544644379808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25069359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069359_19-07-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25069359 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069359_19-07-2025_05_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25069381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25069382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25069383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25069384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25069385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25069386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25069387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25069388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25069389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25069390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25069391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25069392, 'pht': 3726}}" where mtr_portfolio_id = 25069359 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25069359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757027, 0.03924544644379808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069359_19-07-2025_05_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25069381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25069382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25069383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25069384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25069385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25069386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25069387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25069388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25069389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25069390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25069391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25069392, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25069894 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309611, 'mtr_portfolio_id': 25069894, 'created_at': datetime.datetime(2025, 7, 19, 5, 49, 31), 'result': '0.06446363615095013', 'result_long': None, 'result_double': None}] Qualite : 0.06446363615095013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25069894 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069894_19-07-2025_05_49_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25069894 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069894_19-07-2025_05_49_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25069923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25069924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25069925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25069926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25069927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25069928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25069929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25069930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25069931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25069932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25069933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25069934, 'pht': 3726}}" where mtr_portfolio_id = 25069894 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25069894 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757028, 0.06446363615095013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25069894_19-07-2025_05_49_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25069923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25069924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25069925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25069926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25069927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25069928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25069929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25069930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25069931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25069932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25069933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25069934, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25070413 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309612, 'mtr_portfolio_id': 25070413, 'created_at': datetime.datetime(2025, 7, 19, 5, 49, 29), 'result': '0.047338738842322016', 'result_long': None, 'result_double': None}] Qualite : 0.047338738842322016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25070413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25070413_19-07-2025_05_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25070413 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25070413_19-07-2025_05_49_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25070450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25070451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25070452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25070453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25070454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25070455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25070456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25070457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25070458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25070459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25070460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25070461, 'pht': 3726}}" where mtr_portfolio_id = 25070413 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25070413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757029, 0.047338738842322016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25070413_19-07-2025_05_49_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25070450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25070451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25070452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25070453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25070454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25070455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25070456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25070457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25070458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25070459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25070460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25070461, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25071070 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309613, 'mtr_portfolio_id': 25071070, 'created_at': datetime.datetime(2025, 7, 19, 6, 6), 'result': '0.03313752757625716', 'result_long': None, 'result_double': None}] Qualite : 0.03313752757625716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25071070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071070_19-07-2025_06_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25071070 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071070_19-07-2025_06_06_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071113, 'pht': 3726}}" where mtr_portfolio_id = 25071070 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25071070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757030, 0.03313752757625716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071070_19-07-2025_06_06_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071113, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25071574 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309614, 'mtr_portfolio_id': 25071574, 'created_at': datetime.datetime(2025, 7, 19, 6, 6, 30), 'result': '0.06249308677787379', 'result_long': None, 'result_double': None}] Qualite : 0.06249308677787379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25071574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071574_19-07-2025_06_06_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25071574 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071574_19-07-2025_06_06_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071634, 'pht': 3726}}" where mtr_portfolio_id = 25071574 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25071574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757031, 0.06249308677787379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071574_19-07-2025_06_06_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071634, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075176 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3325830, 'mtr_portfolio_id': 25075176, 'created_at': datetime.datetime(2025, 7, 23, 10, 20, 28), 'result': '0.0438399979022835', 'result_long': None, 'result_double': None}] Qualite : 0.0438399979022835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25075176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075176_23-07-2025_10_20_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25075176 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075176_23-07-2025_10_20_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075301, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075304, 'pht': 3726}}" where mtr_portfolio_id = 25075176 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25075176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757032, 0.0438399979022835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075176_23-07-2025_10_20_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075301, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075304, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075178 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075178 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25075178 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075178 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075178 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25075178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075178_21-07-2025_15_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25075178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075178_21-07-2025_15_14_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075329, 'pht': 3726}}" where mtr_portfolio_id = 25075178 and dashboard_run_id = 1998066 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075181 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075181 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25075181 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075181 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075181 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25075181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075181_21-07-2025_15_14_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25075181 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075181_21-07-2025_15_14_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25075245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075256, 'pht': 3726}}" where mtr_portfolio_id = 25075181 and dashboard_run_id = 1998066 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075183 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075183 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25075183 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075183 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075183 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25075183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075183_21-07-2025_14_30_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25075183 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075183_21-07-2025_14_30_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075203, 'pht': 3726}}" where mtr_portfolio_id = 25075183 and dashboard_run_id = 1998066 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25071866 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309619, 'mtr_portfolio_id': 25071866, 'created_at': datetime.datetime(2025, 7, 19, 5, 52, 30), 'result': '0.01644903101968304', 'result_long': None, 'result_double': None}] Qualite : 0.01644903101968304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25071866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071866_19-07-2025_05_52_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25071866 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071866_19-07-2025_05_52_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071879, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071884, 'pht': 3726}}" where mtr_portfolio_id = 25071866 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25071866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757036, 0.01644903101968304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25071866_19-07-2025_05_52_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25071873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25071874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25071875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25071876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25071877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25071878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25071879, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25071880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25071881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25071882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25071883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25071884, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25072143 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309620, 'mtr_portfolio_id': 25072143, 'created_at': datetime.datetime(2025, 7, 19, 5, 52, 58), 'result': '0.02187130431566958', 'result_long': None, 'result_double': None}] Qualite : 0.02187130431566958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25072143 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072143_19-07-2025_05_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25072143 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072143_19-07-2025_05_53_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25072173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25072174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25072175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25072176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25072177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25072178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25072179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25072180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25072181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25072182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25072183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25072184, 'pht': 3726}}" where mtr_portfolio_id = 25072143 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25072143 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757037, 0.02187130431566958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072143_19-07-2025_05_53_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25072173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25072174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25072175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25072176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25072177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25072178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25072179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25072180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25072181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25072182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25072183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25072184, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25072848 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309621, 'mtr_portfolio_id': 25072848, 'created_at': datetime.datetime(2025, 7, 19, 5, 53, 29), 'result': '0.04336735059373792', 'result_long': None, 'result_double': None}] Qualite : 0.04336735059373792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25072848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072848_19-07-2025_05_53_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25072848 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072848_19-07-2025_05_53_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25072936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25072937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25072938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25072939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25072940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25072941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25072942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25072943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25072944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25072945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25072946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25072947, 'pht': 3726}}" where mtr_portfolio_id = 25072848 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25072848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757038, 0.04336735059373792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25072848_19-07-2025_05_53_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25072936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25072937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25072938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25072939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25072940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25072941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25072942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25072943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25072944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25072945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25072946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25072947, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25073797 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309622, 'mtr_portfolio_id': 25073797, 'created_at': datetime.datetime(2025, 7, 19, 5, 53, 29), 'result': '0.07222904214821375', 'result_long': None, 'result_double': None}] Qualite : 0.07222904214821375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25073797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25073797_19-07-2025_05_53_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25073797 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25073797_19-07-2025_05_53_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25073824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25073825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25073826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25073827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25073828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25073829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25073830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25073831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25073832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25073833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25073834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25073835, 'pht': 3726}}" where mtr_portfolio_id = 25073797 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25073797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757039, 0.07222904214821375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25073797_19-07-2025_05_53_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25073824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25073825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25073826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25073827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25073828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25073829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25073830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25073831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25073832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25073833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25073834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25073835, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25074260 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309623, 'mtr_portfolio_id': 25074260, 'created_at': datetime.datetime(2025, 7, 19, 5, 53, 57), 'result': '0.03434568283078788', 'result_long': None, 'result_double': None}] Qualite : 0.03434568283078788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25074260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074260_19-07-2025_05_54_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25074260 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074260_19-07-2025_05_54_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25074293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25074294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25074295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25074296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25074297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25074298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25074299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25074300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25074301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25074302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25074303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25074304, 'pht': 3726}}" where mtr_portfolio_id = 25074260 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25074260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757040, 0.03434568283078788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074260_19-07-2025_05_54_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25074293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25074294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25074295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25074296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25074297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25074298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25074299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25074300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25074301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25074302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25074303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25074304, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25074808 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309624, 'mtr_portfolio_id': 25074808, 'created_at': datetime.datetime(2025, 7, 19, 5, 54, 28), 'result': '0.02537918767004947', 'result_long': None, 'result_double': None}] Qualite : 0.02537918767004947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25074808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074808_19-07-2025_05_54_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25074808 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074808_19-07-2025_05_54_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25074835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25074836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25074837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25074838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25074839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25074840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25074841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25074842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25074843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25074844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25074845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25074846, 'pht': 3726}}" where mtr_portfolio_id = 25074808 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25074808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757041, 0.02537918767004947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25074808_19-07-2025_05_54_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25074835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25074836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25074837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25074838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25074839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25074840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25074841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25074842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25074843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25074844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25074845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25074846, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075392 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309625, 'mtr_portfolio_id': 25075392, 'created_at': datetime.datetime(2025, 7, 19, 5, 54, 59), 'result': '0.039326741501106585', 'result_long': None, 'result_double': None}] Qualite : 0.039326741501106585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25075392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075392_19-07-2025_05_55_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25075392 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075392_19-07-2025_05_55_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075434, 'pht': 3726}}" where mtr_portfolio_id = 25075392 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25075392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757042, 0.039326741501106585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075392_19-07-2025_05_55_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25075432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075434, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25075899 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309626, 'mtr_portfolio_id': 25075899, 'created_at': datetime.datetime(2025, 7, 19, 5, 55, 30), 'result': '0.029691058941993354', 'result_long': None, 'result_double': None}] Qualite : 0.029691058941993354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25075899 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075899_19-07-2025_05_55_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25075899 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075899_19-07-2025_05_55_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25075905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075916, 'pht': 3726}}" where mtr_portfolio_id = 25075899 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25075899 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757043, 0.029691058941993354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25075899_19-07-2025_05_55_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25075905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25075906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25075907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25075908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25075909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25075910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25075911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25075912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25075913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25075914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25075915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25075916, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25076411 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309627, 'mtr_portfolio_id': 25076411, 'created_at': datetime.datetime(2025, 7, 19, 5, 56, 2), 'result': '0.04222787110054566', 'result_long': None, 'result_double': None}] Qualite : 0.04222787110054566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25076411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25076411_19-07-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25076411 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25076411_19-07-2025_05_56_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25076442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25076443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25076444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25076445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25076446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25076447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25076448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25076449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25076450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25076452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25076453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25076454, 'pht': 3726}}" where mtr_portfolio_id = 25076411 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25076411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757044, 0.04222787110054566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25076411_19-07-2025_05_56_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25076442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25076443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25076444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25076445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25076446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25076447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25076448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25076449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25076450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25076452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25076453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25076454, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25077256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309628, 'mtr_portfolio_id': 25077256, 'created_at': datetime.datetime(2025, 7, 19, 5, 56, 31), 'result': '0.03787186090188118', 'result_long': None, 'result_double': None}] Qualite : 0.03787186090188118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25077256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077256_19-07-2025_05_56_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25077256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077256_19-07-2025_05_56_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25077261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25077262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25077263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25077264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25077265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25077266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25077267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25077268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25077269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25077270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25077271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25077272, 'pht': 3726}}" where mtr_portfolio_id = 25077256 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25077256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757045, 0.03787186090188118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077256_19-07-2025_05_56_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25077261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25077262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25077263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25077264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25077265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25077266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25077267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25077268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25077269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25077270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25077271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25077272, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25077908 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309629, 'mtr_portfolio_id': 25077908, 'created_at': datetime.datetime(2025, 7, 19, 5, 56, 58), 'result': '0.0356011855202282', 'result_long': None, 'result_double': None}] Qualite : 0.0356011855202282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25077908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077908_19-07-2025_05_57_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25077908 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077908_19-07-2025_05_57_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25077913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25077914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25077915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25077916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25077917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25077918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25077919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25077920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25077921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25077922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25077923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25077924, 'pht': 3726}}" where mtr_portfolio_id = 25077908 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25077908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757046, 0.0356011855202282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25077908_19-07-2025_05_57_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25077913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25077914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25077915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25077916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25077917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25077918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25077919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25077920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25077921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25077922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25077923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25077924, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25078410 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309630, 'mtr_portfolio_id': 25078410, 'created_at': datetime.datetime(2025, 7, 19, 5, 57, 28), 'result': '0.061266864896480075', 'result_long': None, 'result_double': None}] Qualite : 0.061266864896480075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25078410 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078410_19-07-2025_05_57_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25078410 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078410_19-07-2025_05_57_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25078412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25078413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25078414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25078415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25078416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25078417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25078418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25078419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25078420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25078421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25078422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25078423, 'pht': 3726}}" where mtr_portfolio_id = 25078410 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25078410 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757047, 0.061266864896480075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078410_19-07-2025_05_57_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25078412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25078413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25078414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25078415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25078416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25078417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25078418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25078419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25078420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25078421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25078422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25078423, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25078825 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309631, 'mtr_portfolio_id': 25078825, 'created_at': datetime.datetime(2025, 7, 19, 5, 57, 59), 'result': '0.032506409444309346', 'result_long': None, 'result_double': None}] Qualite : 0.032506409444309346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25078825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078825_19-07-2025_05_58_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25078825 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078825_19-07-2025_05_58_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25078829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25078830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25078831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25078832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25078833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25078834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25078835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25078836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25078837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25078838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25078839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25078840, 'pht': 3726}}" where mtr_portfolio_id = 25078825 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25078825 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757048, 0.032506409444309346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25078825_19-07-2025_05_58_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25078829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25078830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25078831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25078832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25078833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25078834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25078835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25078836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25078837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25078838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25078839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25078840, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25079268 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25079268 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25079268 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25079268 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25079268 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309632, 'mtr_portfolio_id': 25079268, 'created_at': datetime.datetime(2025, 7, 19, 5, 58, 28), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25079268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079268_19-07-2025_05_58_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25079268 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079268_19-07-2025_05_58_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25079295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25079296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25079297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25079298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25079299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25079300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25079301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25079302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25079303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25079304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25079305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25079306, 'pht': 3726}}" where mtr_portfolio_id = 25079268 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25079268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757049, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079268_19-07-2025_05_58_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25079295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25079296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25079297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25079298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25079299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25079300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25079301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25079302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25079303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25079304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25079305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25079306, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25079836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309633, 'mtr_portfolio_id': 25079836, 'created_at': datetime.datetime(2025, 7, 19, 5, 58, 59), 'result': '0.02205751880705303', 'result_long': None, 'result_double': None}] Qualite : 0.02205751880705303 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25079836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079836_19-07-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25079836 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079836_19-07-2025_05_59_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25079845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25079846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25079847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25079848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25079849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25079850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25079851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25079852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25079853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25079854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25079855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25079856, 'pht': 3726}}" where mtr_portfolio_id = 25079836 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25079836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757050, 0.02205751880705303, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25079836_19-07-2025_05_59_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25079845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25079846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25079847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25079848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25079849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25079850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25079851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25079852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25079853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25079854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25079855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25079856, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25080362 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309634, 'mtr_portfolio_id': 25080362, 'created_at': datetime.datetime(2025, 7, 19, 5, 59, 30), 'result': '0.04051647450542069', 'result_long': None, 'result_double': None}] Qualite : 0.04051647450542069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25080362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080362_19-07-2025_05_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25080362 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080362_19-07-2025_05_59_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25080365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25080366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25080367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25080368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25080369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25080370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25080371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25080372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25080373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25080374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25080375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25080376, 'pht': 3726}}" where mtr_portfolio_id = 25080362 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25080362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757051, 0.04051647450542069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080362_19-07-2025_05_59_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25080365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25080366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25080367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25080368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25080369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25080370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25080371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25080372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25080373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25080374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25080375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25080376, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25080785 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309635, 'mtr_portfolio_id': 25080785, 'created_at': datetime.datetime(2025, 7, 19, 6, 0, 32), 'result': '0.03411060082417172', 'result_long': None, 'result_double': None}] Qualite : 0.03411060082417172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25080785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080785_19-07-2025_06_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25080785 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080785_19-07-2025_06_00_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25080819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25080820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25080821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25080822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25080823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25080824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25080825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25080826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25080827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25080828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25080829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25080830, 'pht': 3726}}" where mtr_portfolio_id = 25080785 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25080785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757052, 0.03411060082417172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25080785_19-07-2025_06_00_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25080819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25080820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25080821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25080822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25080823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25080824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25080825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25080826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25080827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25080828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25080829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25080830, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25081341 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309636, 'mtr_portfolio_id': 25081341, 'created_at': datetime.datetime(2025, 7, 19, 6, 1), 'result': '0.03983158385842976', 'result_long': None, 'result_double': None}] Qualite : 0.03983158385842976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25081341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081341_19-07-2025_06_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25081341 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081341_19-07-2025_06_01_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25081369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25081370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25081371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25081372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25081373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25081374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25081375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25081376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25081377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25081378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25081379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25081380, 'pht': 3726}}" where mtr_portfolio_id = 25081341 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25081341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757053, 0.03983158385842976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081341_19-07-2025_06_01_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25081369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25081370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25081371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25081372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25081373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25081374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25081375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25081376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25081377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25081378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25081379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25081380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25081942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309637, 'mtr_portfolio_id': 25081942, 'created_at': datetime.datetime(2025, 7, 19, 6, 1, 30), 'result': '0.048422767324959336', 'result_long': None, 'result_double': None}] Qualite : 0.048422767324959336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25081942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081942_19-07-2025_06_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25081942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081942_19-07-2025_06_01_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25081958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25081960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25081961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25081963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25081964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25081965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25081967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25081968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25081969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25081971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25081972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25081973, 'pht': 3726}}" where mtr_portfolio_id = 25081942 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25081942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757054, 0.048422767324959336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25081942_19-07-2025_06_01_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25081958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25081960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25081961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25081963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25081964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25081965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25081967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25081968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25081969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25081971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25081972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25081973, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25082766 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309638, 'mtr_portfolio_id': 25082766, 'created_at': datetime.datetime(2025, 7, 19, 6, 1, 58), 'result': '0.0413261091510968', 'result_long': None, 'result_double': None}] Qualite : 0.0413261091510968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25082766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25082766_19-07-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25082766 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25082766_19-07-2025_06_02_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25082805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25082806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25082807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25082808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25082809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25082810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25082811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25082812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25082813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25082814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25082815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25082816, 'pht': 3726}}" where mtr_portfolio_id = 25082766 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25082766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757055, 0.0413261091510968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25082766_19-07-2025_06_02_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25082805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25082806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25082807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25082808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25082809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25082810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25082811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25082812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25082813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25082814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25082815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25082816, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25083714 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309639, 'mtr_portfolio_id': 25083714, 'created_at': datetime.datetime(2025, 7, 19, 6, 2, 28), 'result': '0.035969164855872066', 'result_long': None, 'result_double': None}] Qualite : 0.035969164855872066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25083714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25083714_19-07-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25083714 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25083714_19-07-2025_06_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25083746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25083747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25083748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25083749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25083750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25083751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25083752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25083753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25083754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25083755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25083756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25083757, 'pht': 3726}}" where mtr_portfolio_id = 25083714 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25083714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757056, 0.035969164855872066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25083714_19-07-2025_06_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25083746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25083747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25083748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25083749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25083750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25083751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25083752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25083753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25083754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25083755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25083756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25083757, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25084623 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309640, 'mtr_portfolio_id': 25084623, 'created_at': datetime.datetime(2025, 7, 19, 6, 2, 59), 'result': '0.0412708255598355', 'result_long': None, 'result_double': None}] Qualite : 0.0412708255598355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25084623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25084623_19-07-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25084623 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25084623_19-07-2025_06_03_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25084635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25084636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25084637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25084638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25084639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25084640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25084641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25084642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25084643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25084644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25084645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25084646, 'pht': 3726}}" where mtr_portfolio_id = 25084623 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25084623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757057, 0.0412708255598355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25084623_19-07-2025_06_03_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25084635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25084636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25084637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25084638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25084639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25084640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25084641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25084642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25084643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25084644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25084645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25084646, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25085550 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309641, 'mtr_portfolio_id': 25085550, 'created_at': datetime.datetime(2025, 7, 19, 6, 3, 29), 'result': '0.0344852724425543', 'result_long': None, 'result_double': None}] Qualite : 0.0344852724425543 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25085550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085550_19-07-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25085550 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085550_19-07-2025_06_03_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25085551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25085552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25085553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25085554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25085555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25085556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25085557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25085558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25085559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25085560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25085561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25085562, 'pht': 3726}}" where mtr_portfolio_id = 25085550 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25085550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757058, 0.0344852724425543, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085550_19-07-2025_06_03_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25085551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25085552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25085553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25085554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25085555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25085556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25085557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25085558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25085559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25085560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25085561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25085562, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25085838 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309642, 'mtr_portfolio_id': 25085838, 'created_at': datetime.datetime(2025, 7, 19, 6, 3, 57), 'result': '0.039622464426736344', 'result_long': None, 'result_double': None}] Qualite : 0.039622464426736344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25085838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085838_19-07-2025_06_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25085838 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085838_19-07-2025_06_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25085842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25085843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25085844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25085845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25085846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25085847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25085848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25085849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25085850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25085851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25085852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25085853, 'pht': 3726}}" where mtr_portfolio_id = 25085838 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25085838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757059, 0.039622464426736344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25085838_19-07-2025_06_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25085842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25085843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25085844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25085845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25085846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25085847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25085848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25085849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25085850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25085851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25085852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25085853, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25086204 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309643, 'mtr_portfolio_id': 25086204, 'created_at': datetime.datetime(2025, 7, 19, 6, 4, 29), 'result': '0.056726689002604136', 'result_long': None, 'result_double': None}] Qualite : 0.056726689002604136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25086204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086204_19-07-2025_06_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25086204 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086204_19-07-2025_06_04_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086230, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086240, 'pht': 3726}}" where mtr_portfolio_id = 25086204 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25086204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757060, 0.056726689002604136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086204_19-07-2025_06_04_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086230, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086240, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25086551 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3309644, 'mtr_portfolio_id': 25086551, 'created_at': datetime.datetime(2025, 7, 19, 6, 4, 59), 'result': '0.047935739886518336', 'result_long': None, 'result_double': None}] Qualite : 0.047935739886518336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25086551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086551_19-07-2025_06_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25086551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086551_19-07-2025_06_05_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25086556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086566, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086567, 'pht': 3726}}" where mtr_portfolio_id = 25086551 and dashboard_run_id = 1998066 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25086551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12757061, 0.047935739886518336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086551_19-07-2025_06_05_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25086556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086566, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086567, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25050193,25050840,25051132,25051518,25051963,25052528,25052865,25053274,25053866,25054362,25054701,25055134,25055501,25056002,25056398,25056827,25057357,25057875,25058243,25058757,25059245,25059633,25060055,25060470,25061056,25061436,25061873,25062448,25062976,25063914,25064457,25065089,25065654,25066223,25066755,25067483,25068102,25068752,25069359,25069894,25070413,25071070,25071574,25075176,25075178,25075181,25075183,25071866,25072143,25072848,25073797,25074260,25074808,25075392,25075899,25076411,25077256,25077908,25078410,25078825,25079268,25079836,25080362,25080785,25081341,25081942,25082766,25083714,25084623,25085550,25085838,25086204,25086551) result : ((1372565106,), (1372565154,), (1372565199,), (1372565251,), (1372565300,), (1372565740,), (1372565768,), (1372565794,), (1372565818,), (1372565835,), (1372565866,), (1372566104,), (1372566130,), (1372566158,), (1372566183,), (1372566207,), (1372566253,), (1372566630,), (1372566651,), (1372566674,), (1372566675,), (1372566700,), (1372566710,), (1372566737,), (1372566738,), (1372566739,), (1372566740,), (1372566741,), (1372566744,), (1372566773,), (1372566775,), (1372566777,), (1372566778,), (1372566779,), (1372566782,), (1372566808,), (1372566810,), (1372566811,), (1372566813,), (1372566814,), (1372566816,), (1372566841,), (1372566844,), (1372566847,), (1372566849,), (1372566852,), (1372566855,), (1372567020,), (1372567023,), (1372567025,), (1372567028,), (1372567031,), (1372567033,), (1372567045,), (1372567048,), (1372567049,), (1372567052,), (1372567054,), (1372567067,), (1372567187,), (1372567190,), (1372567192,), (1372567194,), (1372567196,), (1372567199,), (1372567218,), (1372567221,), (1372567225,), (1372567227,), (1372567229,), (1372567233,), (1372567263,), (1372567265,), (1372567267,), (1372567268,), (1372567269,), (1372567272,), (1372567309,), (1372567313,), (1372567315,), (1372567317,), (1372567318,), (1372567320,), (1372567362,), (1372567364,), (1372567367,), (1372567370,), (1372567372,), (1372567374,), (1372567502,), (1372567509,), (1372567514,), (1372567516,), (1372567519,), (1372567522,), (1372567543,), (1372567544,), (1372567545,), (1372567546,), (1372567547,), (1372567548,), (1372567598,), (1372567599,), (1372567600,), (1372567601,), (1372567603,), (1372567605,), (1372567636,), (1372567637,), (1372567638,), (1372567639,), (1372567641,), (1372567644,), (1372567669,), (1372567670,), (1372567671,), (1372567672,), (1372567674,), (1372567675,), (1372567722,), (1372567723,), (1372567724,), (1372567725,), (1372567727,), (1372567729,), (1372567793,), (1372567795,), (1372567797,), (1372567798,), (1372567800,), (1372567802,), (1372567843,), (1372567846,), (1372567849,), (1372567852,), (1372567853,), (1372567855,), (1372567880,), (1372567882,), (1372567883,), (1372567885,), (1372567887,), (1372567889,), (1372567914,), (1372567917,), (1372567918,), (1372567921,), (1372567923,), (1372567926,), (1372567940,), (1372567943,), (1372567944,), (1372567945,), (1372567947,), (1372567948,), (1372567968,), (1372568013,), (1372568016,), (1372568019,), (1372568021,), (1372568023,), (1372568025,), (1372568038,), (1372568042,), (1372568045,), (1372568048,), (1372568050,), (1372568052,), (1372568070,), (1372568072,), (1372568074,), (1372568075,), (1372568079,), (1372568081,), (1372568127,), (1372568134,), (1372568142,), (1372568149,), (1372568150,), (1372568152,), (1372568178,), (1372568188,), (1372568190,), (1372568191,), (1372568193,), (1372568195,), (1372568239,), (1372568242,), (1372568245,), (1372568248,), (1372568253,), (1372568255,), (1372568275,), (1372568277,), (1372568278,), (1372568280,), (1372568282,), (1372568285,), (1372568303,), (1372568305,), (1372568307,), (1372568308,), (1372568310,), (1372568311,), (1372568332,), (1372568335,), (1372568337,), (1372568338,), (1372568339,), (1372568342,), (1372568359,), (1372568361,), (1372568362,), (1372568363,), (1372568364,), (1372568366,), (1372568388,), (1372568401,), (1372568415,), (1372568416,), (1372568430,), (1372568445,), (1372568488,), (1372568490,), (1372568491,), (1372568493,), (1372568494,), (1372568496,), (1372568515,), (1372568518,), (1372568521,), (1372568523,), (1372568525,), (1372568527,), (1372568578,), (1372568580,), (1372568581,), (1372568583,), (1372568585,), (1372568587,), (1372568610,), (1372568612,), (1372568614,), (1372568615,), (1372568617,), (1372568626,), (1372568657,), (1372568684,), (1372568686,), (1372568689,), (1372568691,), (1372568694,), (1372568696,), (1372568720,), (1372568728,), (1372568734,), (1372568736,), (1372568738,), (1372568740,), (1372568757,), (1372568759,), (1372568761,), (1372568762,), (1372568764,), (1372568766,), (1372568803,), (1372568804,), (1372568805,), (1372568806,), (1372568807,), (1372568821,), (1372568873,), (1372568883,), (1372568894,), (1372568899,), (1372568901,), (1372568903,), (1372568922,), (1372568924,), (1372568926,), (1372568927,), (1372568928,), (1372568931,), (1372568955,), (1372568958,), (1372568961,), (1372568962,), (1372568964,), (1372568967,), (1372569003,), (1372569005,), (1372569007,), (1372569008,), (1372569010,), (1372569012,), (1372569026,), (1372569034,), (1372569041,), (1372569049,), (1372569053,), (1372569056,), (1372569082,), (1372569091,), (1372569099,), (1372569101,), (1372569104,), (1372569107,), (1372569121,), (1372569122,), (1372569123,), (1372569124,), (1372569126,), (1372569128,), (1372569154,), (1372569157,), (1372569159,), (1372569161,), (1372569163,), (1372569165,), (1372569183,), (1372569190,), (1372569195,), (1372569197,), (1372569198,), (1372569200,), (1372569215,), (1372569216,), (1372569218,), (1372569219,), (1372569221,), (1372569223,), (1372569273,), (1372569276,), (1372569279,), (1372569281,), (1372569284,), (1372569286,), (1372569755,), (1372569780,), (1372569809,), (1372569846,), (1372569884,), (1372569928,), (1372570299,), (1372570329,), (1372570381,), (1372570410,), (1372570437,), (1372570465,), (1372570889,), (1372570922,), (1372570968,), (1372571007,), (1372571039,), (1372571068,), (1372571231,), (1372571232,), (1372571233,), (1372571235,), (1372571246,), (1372571261,), (1372571484,), (1372571512,), (1372571517,), (1372571518,), (1372571539,), (1372571561,), (1372571583,), (1372571585,), (1372571586,), (1372571588,), (1372571591,), (1372571594,), (1372571617,), (1372571618,), (1372571619,), (1372571620,), (1372571621,), (1372571623,), (1372571646,), (1372571648,), (1372571650,), (1372571652,), (1372571654,), (1372571656,), (1372571698,), (1372571700,), (1372571703,), (1372571704,), (1372571705,), (1372571709,), (1372571735,), (1372571737,), (1372571738,), (1372571739,), (1372571741,), (1372571743,), (1372571776,), (1372571778,), (1372571779,), (1372571781,), (1372571783,), (1372571785,), (1372571873,), (1372571874,), (1372571876,), (1372571878,), (1372571880,), (1372571882,), (1372571915,), (1372571919,), (1372571923,), (1372571925,), (1372571928,), (1372571930,), (1372571985,), (1372571988,), (1372571990,), (1372571993,), (1372571995,), (1372571997,), (1372572024,), (1372572028,), (1372572032,), (1372572034,), (1372572037,), (1372572040,), (1372572061,), (1372572065,), (1372572068,), (1372572070,), (1372572073,), (1372572078,), (1372572110,), (1372572111,), (1372572112,), (1372572125,), (1372572127,), (1372572129,), (1372572152,), (1372572153,), (1372572154,), (1372572155,), (1372572157,), (1372572159,), (1372572197,), (1372572199,), (1372572200,), (1372572202,), (1372572203,), (1372572205,), (1372572228,), (1372572232,), (1372572236,), (1372572238,), (1372572242,), (1372572244,), (1372572272,), (1372572274,), (1372572276,), (1372572277,), (1372572279,), (1372572281,), (1372572343,), (1372572346,), (1372572348,), (1372572350,), (1372572365,), (1372572370,), (1372572404,), (1372572407,), (1372572408,), (1372572411,), (1372572415,), (1372572419,), (1372572472,), (1372572475,), (1372572477,), (1372572479,), (1372572481,), (1372572484,), (1372572514,), (1372572518,), (1372572520,), (1372572526,), (1372572528,), (1372572531,), (1372572557,), (1372572588,), (1372572589,), (1372572590,), (1372572591,), (1372572593,), (1372572594,), (1372572621,), (1372572623,), (1372572624,), (1372572626,), (1372572627,), (1372572628,), (1372572675,), (1372572680,), (1372572683,), (1372572686,), (1372572703,), (1372572705,), (1372572729,), (1372572731,), (1372572733,), (1372572734,), (1372572736,), (1372572738,), (1372572762,), (1372572765,), (1372572767,), (1372572769,), (1372572773,), (1372572776,), (1372572821,), (1372572823,), (1372572825,), (1372572826,), (1372572828,), (1372572830,), (1372572886,), (1372572888,), (1372572889,), (1372572891,), (1372572893,), (1372572895,), (1372572943,), (1372572946,), (1372572947,), (1372572950,), (1372572952,), (1372572954,), (1372572984,), (1372572987,), (1372572990,), (1372572992,), (1372572995,), (1372572997,), (1372573026,), (1372573028,), (1372573031,), (1372573033,), (1372573035,), (1372573037,), (1372573048,), (1372573050,), (1372573051,), (1372573053,), (1372573055,), (1372573059,), (1372573093,), (1372573094,), (1372573096,), (1372573098,), (1372573099,), (1372573101,), (1372573159,), (1372573161,), (1372573162,), (1372573164,), (1372573166,), (1372573167,), (1372573194,), (1372573197,), (1372573199,), (1372573200,), (1372573201,), (1372573203,), (1372573230,), (1372573233,), (1372573236,), (1372573237,), (1372573240,), (1372573243,), (1372573273,), (1372573275,), (1372573277,), (1372573279,), (1372573282,), (1372573285,), (1372573301,), (1372573303,), (1372573304,), (1372573306,), (1372573309,), (1372573312,), (1372573356,), (1372573357,), (1372573359,), (1372573361,), (1372573362,), (1372573373,), (1372573417,), (1372573421,), (1372573425,), (1372573426,), (1372573430,), (1372573432,), (1372573450,), (1372573452,), (1372573454,), (1372573455,), (1372573457,), (1372573460,), (1372573475,), (1372573476,), (1372573481,), (1372573482,), (1372573484,), (1372573486,), (1372573503,), (1372573504,), (1372573506,), (1372573508,), (1372573511,), (1372573525,), (1372573554,), (1372573561,), (1372573570,), (1372573573,), (1372573576,), (1372573580,), (1372573599,), (1372573631,), (1372573634,), (1372573636,), (1372573638,), (1372573642,), (1372573644,), (1372573711,), (1372573712,), (1372573714,), (1372573716,), (1372573718,), (1372573720,), (1372573733,), (1372573735,), (1372573738,), (1372573739,), (1372573741,), (1372573743,), (1372573785,), (1372573787,), (1372573790,), (1372573791,), (1372573793,), (1372573795,), (1372573811,), (1372573814,), (1372573816,), (1372573817,), (1372573819,), (1372573821,), (1372573836,), (1372573838,), (1372573839,), (1372573841,), (1372573842,), (1372573844,), (1372573857,), (1372573859,), (1372573861,), (1372573863,), (1372573864,), (1372573867,), (1372573926,), (1372573953,), (1372573979,), (1372574013,), (1372574045,), (1372574069,), (1372574267,), (1372574317,), (1372574342,), (1372574379,), (1372574416,), (1372574440,), (1372574667,), (1372574671,), (1372574675,), (1372574678,), (1372574681,), (1372574684,), (1372574748,), (1372574785,), (1372574788,), (1372574790,), (1372574794,), (1372574796,), (1372574798,), (1372574840,), (1372574841,), (1372574842,), (1372574843,), (1372574855,), (1372574865,), (1372575093,), (1372575139,), (1372575186,), (1372575235,), (1372575288,), (1372575341,), (1372575788,), (1372575816,), (1372575842,), (1372575869,), (1372575902,), (1372575948,), (1372576179,), (1372576180,), (1372576217,), (1372576251,), (1372576282,), (1372576308,), (1372576479,), (1372576481,), (1372576505,), (1372576526,), (1372576528,), (1372576530,), (1372576580,), (1372576582,), (1372576584,), (1372576585,), (1372576587,), (1372576590,), (1372576615,), (1372576618,), (1372576619,), (1372576621,), (1372576624,), (1372576627,), (1372576646,), (1372576649,), (1372576650,), (1372576652,), (1372576654,), (1372576656,), (1372576692,), (1372576696,), (1372576699,), (1372576701,), (1372576704,), (1372576707,), (1372576727,), (1372576729,), (1372576731,), (1372576732,), (1372576734,), (1372576736,), (1372576764,), (1372576765,), (1372576767,), (1372576769,), (1372576772,), (1372576776,), (1372576791,), (1372576793,), (1372576794,), (1372576796,), (1372576798,), (1372576800,), (1372576826,), (1372576828,), (1372576829,), (1372576831,), (1372576834,), (1372576836,), (1372576852,), (1372576856,), (1372576865,), (1372576867,), (1372576869,), (1372576872,), (1372576901,), (1372576903,), (1372576904,), (1372576905,), (1372576907,), (1372576910,), (1372576947,), (1372576948,), (1372576949,), (1372576950,), (1372576952,), (1372576954,), (1372576971,), (1372576972,), (1372576973,), (1372576974,), (1372576975,), (1372576978,), (1372577029,), (1372577031,), (1372577032,), (1372577034,), (1372577036,), (1372577039,), (1372577093,), (1372577143,), (1372577149,), (1372577152,), (1372577154,), (1372577157,), (1372577160,), (1372577211,), (1372577213,), (1372577215,), (1372577216,), (1372577218,), (1372577221,), (1372577241,), (1372577245,), (1372577248,), (1372577251,), (1372577253,), (1372577255,), (1372577264,), (1372577267,), (1372577269,), (1372577270,), (1372577273,), (1372577275,), (1372577316,), (1372577318,), (1372577319,), (1372577320,), (1372577322,), (1372577325,), (1372577348,), (1372577350,), (1372577351,), (1372577352,), (1372577354,), (1372577356,), (1372577398,), (1372577400,), (1372577402,), (1372577404,), (1372577407,), (1372577411,), (1372577430,), (1372577468,), (1372577473,), (1372577475,), (1372577478,), (1372577480,), (1372577483,), (1372577547,), (1372577549,), (1372577551,), (1372577552,), (1372577553,), (1372577555,), (1372577578,), (1372577580,), (1372577584,), (1372577586,), (1372577589,), (1372577592,), (1372577650,), (1372577653,), (1372577654,), (1372577656,), (1372577658,), (1372577660,), (1372577679,), (1372577682,), (1372577685,), (1372577687,), (1372577690,), (1372577693,), (1372577716,), (1372577718,), (1372577720,), (1372577721,), (1372577722,), (1372577724,), (1372577738,), (1372577739,), (1372577740,), (1372577742,), (1372577745,), (1372577747,), (1372577771,), (1372577772,), (1372577773,), (1372577774,), (1372577776,), (1372577779,), (1372577833,), (1372577837,), (1372577838,), (1372577839,), (1372577841,), (1372577843,), (1372577861,), (1372577863,), (1372577866,), (1372577869,), (1372577872,), (1372577877,), (1372577893,), (1372577897,), (1372577901,), (1372577902,), (1372577906,), (1372577909,), (1372577969,), (1372577971,), (1372577975,), (1372577976,), (1372577980,), (1372577983,), (1372578012,), (1372578016,), (1372578019,), (1372578020,), (1372578023,), (1372578025,), (1372578050,), (1372578068,), (1372578075,), (1372578088,), (1372578090,), (1372578094,), (1372578152,), (1372578154,), (1372578156,), (1372578157,), (1372578159,), (1372578162,), (1372578180,), (1372578181,), (1372578182,), (1372578183,), (1372578185,), (1372578188,), (1372578206,), (1372578207,), (1372578215,), (1372578216,), (1372578218,), (1372578221,), (1372578241,), (1372578243,), (1372578257,), (1372578266,), (1372578268,), (1372578270,), (1372578288,), (1372578292,), (1372578306,), (1372578315,), (1372578317,), (1372578337,), (1372578347,), (1372578349,), (1372578352,), (1372578355,), (1372578356,), (1372578358,), (1372578422,), (1372578425,), (1372578427,), (1372578430,), (1372578433,), (1372578436,), (1372578507,), (1372578509,), (1372578511,), (1372578512,), (1372578513,), (1372578516,), (1372578534,), (1372578537,), (1372578541,), (1372578543,), (1372578546,), (1372578548,), (1372578599,), (1372578634,), (1372578638,), (1372578640,), (1372578641,), (1372578643,), (1372578646,), (1372578662,), (1372578665,), (1372578666,), (1372578668,), (1372578669,), (1372578671,), (1372578676,), (1372578677,), (1372578679,), (1372578681,), (1372578683,), (1372578685,), (1372578713,), (1372578714,), (1372578715,), (1372578716,), (1372578717,), (1372578719,), (1372578759,), (1372578762,), (1372578764,), (1372578767,), (1372578770,), (1372578772,), (1372579854,), (1372580337,), (1372580392,), (1372580444,), (1372580473,), (1372580500,), (1372580768,), (1372580772,), (1372580774,), (1372580776,), (1372580789,), (1372580816,), (1372580988,), (1372580990,), (1372581007,), (1372581034,), (1372581041,), (1372581043,), (1372581057,), (1372581059,), (1372581060,), (1372581062,), (1372581063,), (1372581066,), (1372581084,), (1372581087,), (1372581090,), (1372581091,), (1372581093,), (1372581096,), (1372581110,), (1372581111,), (1372581113,), (1372581114,), (1372581117,), (1372581120,), (1372581150,), (1372581151,), (1372581152,), (1372581153,), (1372581155,), (1372581157,), (1372581206,), (1372581208,), (1372581209,), (1372581211,), (1372581213,), (1372581215,), (1372581235,), (1372581237,), (1372581238,), (1372581240,), (1372581241,), (1372581243,), (1372581256,), (1372581259,), (1372581261,), (1372581262,), (1372581265,), (1372581268,), (1372581290,), (1372581291,), (1372581293,), (1372581295,), (1372581296,), (1372581298,), (1372581328,), (1372581331,), (1372581335,), (1372581336,), (1372581343,), (1372581346,), (1372581369,), (1372581370,), (1372581371,), (1372581372,), (1372581374,), (1372581376,), (1372581399,), (1372581400,), (1372581401,), (1372581402,), (1372581404,), (1372581406,), (1372581430,), (1372581452,), (1372581455,), (1372581457,), (1372581469,), (1372581488,), (1372581491,), (1372581504,), (1372581506,), (1372581508,), (1372581510,), (1372581533,), (1372581544,), (1372581568,), (1372581570,), (1372581580,), (1372581611,), (1372581623,), (1372581626,), (1372581643,), (1372581644,), (1372581645,), (1372581647,), (1372581650,), (1372581653,), (1372581673,), (1372581675,), (1372581690,), (1372581693,), (1372581696,), (1372581698,), (1372581727,), (1372581730,), (1372581732,), (1372581733,), (1372581735,), (1372581737,), (1372581755,), (1372581757,), (1372581759,), (1372581760,), (1372581762,), (1372581764,), (1372581793,), (1372581795,), (1372581796,), (1372581798,), (1372581799,), (1372581801,), (1372581868,), (1372581871,), (1372581874,), (1372581875,), (1372581877,), (1372581881,), (1372581904,), (1372581905,), (1372581907,), (1372581909,), (1372581911,), (1372581913,), (1372581930,), (1372581931,), (1372581932,), (1372581933,), (1372581935,), (1372581937,), (1372581952,), (1372581954,), (1372581955,), (1372581957,), (1372581959,), (1372581961,), (1372581988,), (1372581993,), (1372582001,), (1372582003,), (1372582005,), (1372582008,), (1372582023,), (1372582025,), (1372582027,), (1372582028,), (1372582031,), (1372582034,), (1372582058,), (1372582061,), (1372582063,), (1372582066,), (1372582067,), (1372582070,), (1372582105,), (1372582107,), (1372582112,), (1372582118,), (1372582119,), (1372582120,), (1372582145,), (1372582155,), (1372582163,), (1372582164,), (1372582165,), (1372582166,), (1372582195,), (1372582196,), (1372582197,), (1372582198,), (1372582199,), (1372582202,), (1372582233,), (1372582236,), (1372582238,), (1372582240,), (1372582241,), (1372582243,), (1372582264,), (1372582267,), (1372582270,), (1372582271,), (1372582273,), (1372582275,), (1372582290,), (1372582318,), (1372582371,), (1372582378,), (1372582382,), (1372582384,), (1372582410,), (1372582415,), (1372582463,), (1372582472,), (1372582486,), (1372582488,), (1372582489,), (1372582492,), (1372582587,), (1372582589,), (1372582592,), (1372582598,), (1372582622,), (1372582648,), (1372582695,), (1372582698,), (1372582700,), (1372582707,), (1372582711,), (1372582713,), (1372582733,), (1372582735,), (1372582749,), (1372582764,), (1372582765,), (1372582767,), (1372582797,), (1372582803,), (1372582827,), (1372582828,), (1372582829,), (1372582849,), (1372582917,), (1372582919,), (1372582921,), (1372582923,), (1372582939,), (1372582963,), (1372583025,), (1372583027,), (1372583030,), (1372583031,), (1372583033,), (1372583037,), (1372583052,), (1372583053,), (1372583057,), (1372583060,), (1372583061,), (1372583064,), (1372583093,), (1372583096,), (1372583097,), (1372583098,), (1372583099,), (1372583102,), (1372583136,), (1372583139,), (1372583140,), (1372583143,), (1372583146,), (1372583149,), (1372583167,), (1372583170,), (1372583173,), (1372583174,), (1372583177,), (1372583180,), (1372583198,), (1372583200,), (1372583202,), (1372583204,), (1372583206,), (1372583208,), (1372583253,), (1372583255,), (1372583257,), (1372583258,), (1372583260,), (1372583263,), (1372583279,), (1372583281,), (1372583282,), (1372583284,), (1372583286,), (1372583289,), (1372583309,), (1372583311,), (1372583314,), (1372583316,), (1372583318,), (1372583321,), (1372583335,), (1372583342,), (1372583345,), (1372583347,), (1372583349,), (1372583350,), (1372583378,), (1372583381,), (1372583384,), (1372583386,), (1372583387,), (1372583389,), (1372583403,), (1372583405,), (1372583407,), (1372583409,), (1372583411,), (1372583414,), (1372583446,), (1372583447,), (1372583448,), (1372583449,), (1372583450,), (1372583451,), (1372583530,), (1372583554,), (1372583578,), (1372583603,), (1372583627,), (1372583651,), (1372584316,), (1372584392,), (1372584440,), (1372584483,), (1372584528,), (1372584575,), (1372584882,), (1372584885,), (1372584887,), (1372584889,), (1372584892,), (1372584897,), (1372585255,), (1372585289,), (1372585301,), (1372585304,), (1372585306,), (1372585308,), (1372585445,), (1372585452,), (1372585455,), (1372585456,), (1372585458,), (1372585460,), (1372585479,), (1372585484,), (1372585491,), (1372585493,), (1372585495,), (1372585498,), (1372585513,), (1372585516,), (1372585519,), (1372585521,), (1372585523,), (1372585525,), (1372585545,), (1372585548,), (1372585552,), (1372585553,), (1372585555,), (1372585558,), (1372585576,), (1372585579,), (1372585581,), (1372585584,), (1372585587,), (1372585589,), (1372585622,), (1372585636,), (1372585641,), (1372585643,), (1372585646,), (1372585650,), (1372585676,), (1372585710,), (1372585720,), (1372585730,), (1372585732,), (1372585734,), (1372585737,), (1372585764,), (1372585766,), (1372585767,), (1372585769,), (1372585770,), (1372585772,), (1372585802,), (1372585804,), (1372585807,), (1372585809,), (1372585811,), (1372585815,), (1372585848,), (1372585850,), (1372585851,), (1372585853,), (1372585855,), (1372585857,), (1372585881,), (1372585912,), (1372585914,), (1372585916,), (1372585920,), (1372585922,), (1372585924,), (1372585942,), (1372585945,), (1372585947,), (1372585949,), (1372585951,), (1372585961,), (1372585982,), (1372585983,), (1372585985,), (1372585987,), (1372585988,), (1372585991,), (1372586038,), (1372586047,), (1372586049,), (1372586051,), (1372586053,), (1372586055,), (1372586090,), (1372586092,), (1372586095,), (1372586097,), (1372586098,), (1372586100,), (1372586135,), (1372586145,), (1372586148,), (1372586150,), (1372586151,), (1372586153,), (1372586181,), (1372586184,), (1372586187,), (1372586190,), (1372586193,), (1372586196,), (1372586218,), (1372586221,), (1372586222,), (1372586225,), (1372586228,), (1372586231,), (1372586247,), (1372586250,), (1372586263,), (1372586271,), (1372586288,), (1372586291,), (1372586311,), (1372586315,), (1372586317,), (1372586321,), (1372586325,), (1372586327,), (1372586354,), (1372586357,), (1372586358,), (1372586361,), (1372586364,), (1372586367,), (1372586381,), (1372586387,), (1372586388,), (1372586390,), (1372586392,), (1372586395,), (1372586415,), (1372586417,), (1372586419,), (1372586420,), (1372586422,), (1372586425,), (1372586451,), (1372586458,), (1372586464,), (1372586466,), (1372586469,), (1372586471,), (1372586498,), (1372586500,), (1372586504,), (1372586507,), (1372586511,), (1372586512,), (1372586530,), (1372586534,), (1372586535,), (1372586539,), (1372586541,), (1372586542,), (1372586573,), (1372586576,), (1372586579,), (1372586583,), (1372586586,), (1372586596,), (1372586619,), (1372586624,), (1372586629,), (1372586632,), (1372586635,), (1372586638,), (1372586679,), (1372586681,), (1372586682,), (1372586684,), (1372586687,), (1372586691,), (1372586711,), (1372586712,), (1372586714,), (1372586716,), (1372586718,), (1372586722,), (1372586749,), (1372586751,), (1372586753,), (1372586754,), (1372586757,), (1372586761,), (1372586787,), (1372586796,), (1372586799,), (1372586801,), (1372586803,), (1372586805,), (1372586829,), (1372586833,), (1372586837,), (1372586841,), (1372586844,), (1372586846,), (1372586864,), (1372586867,), (1372586883,), (1372586886,), (1372586888,), (1372586892,), (1372586953,), (1372586956,), (1372586965,), (1372586967,), (1372586968,), (1372586971,), (1372586985,), (1372586995,), (1372587000,), (1372587004,), (1372587006,), (1372587010,), (1372587039,), (1372587041,), (1372587044,), (1372587046,), (1372587048,), (1372587051,), (1372587068,), (1372587076,), (1372587079,), (1372587081,), (1372587082,), (1372587084,), (1372587118,), (1372587122,), (1372587123,), (1372587126,), (1372587128,), (1372587130,), (1372587154,), (1372587158,), (1372587162,), (1372587165,), (1372587173,), (1372587177,), (1372587203,), (1372587205,), (1372587209,), (1372587211,), (1372587213,), (1372587216,), (1372587231,), (1372587239,), (1372587240,), (1372587242,), (1372587246,), (1372587254,), (1372587281,), (1372587283,), (1372587285,), (1372587287,), (1372587289,), (1372587292,), (1372587324,), (1372587326,), (1372587335,), (1372587337,), (1372587339,), (1372587342,), (1372587356,), (1372587360,), (1372587364,), (1372587365,), (1372587368,), (1372587371,), (1372587387,), (1372587396,), (1372587398,), (1372587401,), (1372587404,), (1372587406,), (1372587427,), (1372587430,), (1372587432,), (1372587434,), (1372587436,), (1372587439,), (1372587464,), (1372587470,), (1372587477,), (1372587480,), (1372587483,), (1372587486,), (1372587523,), (1372587526,), (1372587527,), (1372587530,), (1372587532,), (1372587534,), (1372587553,), (1372587554,), (1372587562,), (1372587565,), (1372587567,), (1372587569,), (1372587595,), (1372587598,), (1372587600,), (1372587602,), (1372587603,), (1372587605,), (1372587615,), (1372587618,), (1372587621,), (1372587622,), (1372587625,), (1372587628,), (1372587656,), (1372587658,), (1372587659,), (1372587662,), (1372587664,), (1372587702,), (1372588142,), (1372588202,), (1372588247,), (1372588284,), (1372588311,), (1372588343,), (1372588923,), (1372589185,), (1372589190,), (1372589192,), (1372589205,), (1372589240,), (1372589428,), (1372589456,), (1372589460,), (1372589486,), (1372589500,), (1372589502,), (1372589521,), (1372589523,), (1372589526,), (1372589528,), (1372589529,), (1372589532,), (1372589547,), (1372589558,), (1372589559,), (1372589561,), (1372589563,), (1372589566,), (1372589589,), (1372589591,), (1372589592,), (1372589594,), (1372589596,), (1372589599,), (1372589619,), (1372589633,), (1372589634,), (1372589637,), (1372589639,), (1372589642,), (1372589670,), (1372589703,), (1372589795,), (1372589798,), (1372589801,), (1372589802,), (1372589804,), (1372589807,), (1372589829,), (1372589834,), (1372589839,), (1372589841,), (1372589843,), (1372589845,), (1372589860,), (1372589862,), (1372589863,), (1372589866,), (1372589869,), (1372589872,), (1372589887,), (1372589896,), (1372589899,), (1372589902,), (1372589903,), (1372589905,), (1372589955,), (1372589959,), (1372589961,), (1372589964,), (1372589965,), (1372589966,), (1372590002,), (1372590005,), (1372590016,), (1372590017,), (1372590019,), (1372590021,), (1372590042,), (1372590045,), (1372590050,), (1372590053,), (1372590055,), (1372590060,), (1372590078,), (1372590080,), (1372590092,), (1372590093,), (1372590104,), (1372590106,), (1372590142,), (1372590179,), (1372590204,), (1372590214,), (1372590227,), (1372590228,), (1372590246,), (1372590276,), (1372590279,), (1372590282,), (1372590283,), (1372590285,), (1372590286,), (1372590303,), (1372590309,), (1372590318,), (1372590319,), (1372590320,), (1372590321,), (1372590329,), (1372590331,), (1372590333,), (1372590335,), (1372590337,), (1372590339,), (1372590358,), (1372590369,), (1372590372,), (1372590374,), (1372590376,), (1372590377,), (1372590392,), (1372590394,), (1372590395,), (1372590397,), (1372590398,), (1372590399,), (1372590409,), (1372590422,), (1372590429,), (1372590431,), (1372590434,), (1372590438,), (1372590476,), (1372590477,), (1372590480,), (1372590484,), (1372590488,), (1372590493,), (1372590503,), (1372590513,), (1372590514,), (1372590516,), (1372590517,), (1372590519,), (1372590548,), (1372590550,), (1372590552,), (1372590554,), (1372590555,), (1372590557,), (1372590623,), (1372590634,), (1372590636,), (1372590638,), (1372590640,), (1372590642,), (1372590687,), (1372590690,), (1372590693,), (1372590694,), (1372590695,), (1372590696,), (1372590707,), (1372590718,), (1372590721,), (1372590722,), (1372590723,), (1372590724,), (1372590750,), (1372590752,), (1372590757,), (1372590759,), (1372590761,), (1372590763,), (1372590774,), (1372590784,), (1372590786,), (1372590788,), (1372590790,), (1372590792,), (1372590808,), (1372590810,), (1372590811,), (1372590813,), (1372590814,), (1372590815,), (1372590822,), (1372590833,), (1372590835,), (1372590836,), (1372590837,), (1372590838,), (1372590861,), (1372590880,), (1372590888,), (1372590889,), (1372590891,), (1372590892,), (1372590895,), (1372590916,), (1372590917,), (1372590918,), (1372590919,), (1372590920,), (1372590921,), (1372590933,), (1372590935,), (1372590944,), (1372590946,), (1372590948,), (1372590950,), (1372590962,), (1372590964,), (1372590967,), (1372590969,), (1372590971,), (1372590972,), (1372590983,), (1372590997,), (1372591000,), (1372591002,), (1372591004,), (1372591006,), (1372591033,), (1372591036,), (1372591038,), (1372591039,), (1372591041,), (1372591042,), (1372591055,), (1372591066,), (1372591069,), (1372591071,), (1372591073,), (1372591074,), (1372591101,), (1372591104,), (1372591106,), (1372591108,), (1372591110,), (1372591112,), (1372591123,), (1372591136,), (1372591138,), (1372591139,), (1372591140,), (1372591141,), (1372591156,), (1372591158,), (1372591161,), (1372591164,), (1372591165,), (1372591166,), (1372591173,), (1372591174,), (1372591186,), (1372591188,), (1372591190,), (1372591201,), (1372591214,), (1372591217,), (1372591218,), (1372591220,), (1372591221,), (1372591228,), (1372591247,), (1372591248,), (1372591258,), (1372591259,), (1372591260,), (1372591262,), (1372591287,), (1372591288,), (1372591289,), (1372591290,), (1372591291,), (1372591292,), (1372591309,), (1372591321,), (1372591324,), (1372591325,), (1372591326,), (1372591327,), (1372591356,), (1372591359,), (1372591361,), (1372591363,), (1372591365,), (1372591366,), (1372591371,), (1372591372,), (1372591380,), (1372591389,), (1372591390,), (1372591391,), (1372591411,), (1372591414,), (1372591416,), (1372591418,), (1372591419,), (1372591420,), (1372591427,), (1372591438,), (1372591441,), (1372591443,), (1372591444,), (1372591446,), (1372591487,), (1372591489,), (1372591491,), (1372591493,), (1372591494,), (1372591496,), (1372591502,), (1372591504,), (1372591505,), (1372591506,), (1372591508,), (1372591509,), (1372591534,), (1372591535,), (1372591536,), (1372591538,), (1372591540,), (1372591542,), (1372591635,), (1372591684,), (1372591742,), (1372591791,), (1372591840,), (1372591890,), (1372593219,), (1372593248,), (1372593296,), (1372593350,), (1372593382,), (1372593401,), (1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,), (1372594224,), (1372594227,), (1372594228,), (1372594231,), (1372594239,), (1372594246,), (1372594268,), (1372594272,), (1372594274,), (1372594278,), (1372594281,), (1372594283,), (1372594311,), (1372594316,), (1372594319,), (1372594320,), (1372594323,), (1372594326,), (1372594346,), (1372594354,), (1372594365,), (1372594366,), (1372594369,), (1372594372,), (1372594403,), (1372594409,), (1372594413,), (1372594417,), (1372594420,), (1372594424,), (1372594437,), (1372594449,), (1372594452,), (1372594454,), (1372594469,), (1372594471,), (1372594501,), (1372594502,), (1372594503,), (1372594504,), (1372594506,), (1372594509,), (1372594532,), (1372594544,), (1372594547,), (1372594552,), (1372594556,), (1372594559,), (1372594592,), (1372594597,), (1372594600,), (1372594604,), (1372594606,), (1372594607,), (1372594628,), (1372594631,), (1372594638,), (1372594648,), (1372594650,), (1372594651,), (1372594686,), (1372594690,), (1372594693,), (1372594697,), (1372594699,), (1372594701,), (1372594730,), (1372594738,), (1372594747,), (1372594751,), (1372594752,), (1372594754,), (1372594788,), (1372594791,), (1372594794,), (1372594796,), (1372594798,), (1372594800,), (1372594820,), (1372594827,), (1372594838,), (1372594844,), (1372594848,), (1372594852,), (1372594918,), (1372594928,), (1372594934,), (1372594938,), (1372594960,), (1372594962,), (1372595000,), (1372595002,), (1372595015,), (1372595018,), (1372595020,), (1372595022,), (1372595057,), (1372595096,), (1372595108,), (1372595114,), (1372595118,), (1372595120,), (1372595123,), (1372595170,), (1372595176,), (1372595184,), (1372595187,), (1372595189,), (1372595192,), (1372595271,), (1372595284,), (1372595291,), (1372595295,), (1372595298,), (1372595302,), (1372595347,), (1372595350,), (1372595354,), (1372595359,), (1372595362,), (1372595365,), (1372595389,), (1372595393,), (1372595403,), (1372595408,), (1372595411,), (1372595415,), (1372595449,), (1372595453,), (1372595456,), (1372595461,), (1372595464,), (1372595467,), (1372595492,), (1372595506,), (1372595514,), (1372595517,), (1372595520,), (1372595523,), (1372595562,), (1372595650,), (1372595656,), (1372595661,), (1372595663,), (1372595684,), (1372595687,), (1372595712,), (1372595714,), (1372595717,), (1372595719,), (1372595720,), (1372595722,), (1372595751,), (1372595768,), (1372595772,), (1372595774,), (1372595775,), (1372595776,), (1372595800,), (1372595802,), (1372595804,), (1372595806,), (1372595808,), (1372595811,), (1372595838,), (1372595840,), (1372595841,), (1372595843,), (1372595846,), (1372595851,), (1372595880,), (1372595882,), (1372595890,), (1372595896,), (1372595900,), (1372595911,), (1372595969,), (1372595986,), (1372595988,), (1372595998,), (1372596000,), (1372596002,), (1372596057,), (1372596060,), (1372596062,), (1372596064,), (1372596068,), (1372596070,), (1372596093,), (1372596097,), (1372596108,), (1372596111,), (1372596113,), (1372596130,), (1372596201,), (1372596204,), (1372596206,), (1372596209,), (1372596210,), (1372596211,), (1372596247,), (1372596253,), (1372596258,), (1372596264,), (1372596267,), (1372596269,), (1372596302,), (1372596304,), (1372596308,), (1372596312,), (1372596314,), (1372596317,), (1372596365,), (1372596383,), (1372596392,), (1372596395,), (1372596398,), (1372596400,), (1372596431,), (1372596474,), (1372596482,), (1372596490,), (1372596494,), (1372596496,), (1372596498,), (1372596589,), (1372596592,), (1372596596,), (1372596598,), (1372596600,), (1372596603,), (1372596635,), (1372596640,), (1372596643,), (1372596646,), (1372596649,), (1372596651,), (1372596667,), (1372596671,), (1372596676,), (1372596680,), (1372596684,), (1372596687,), (1372596716,), (1372596719,), (1372596723,), (1372596726,), (1372596728,), (1372596730,), (1372596761,), (1372596764,), (1372596766,), (1372596769,), (1372596771,), (1372596773,), (1372596795,), (1372596799,), (1372596805,), (1372596810,), (1372596813,), (1372596815,), (1372596862,), (1372596867,), (1372596872,), (1372596876,), (1372596901,), (1372596902,), (1372597215,), (1372597270,), (1372597351,), (1372597431,), (1372597512,), (1372597589,), (1372598808,), (1372599113,), (1372599117,), (1372599119,), (1372599123,), (1372599127,), (1372599151,), (1372599176,), (1372599204,), (1372599233,), (1372599270,), (1372599282,), (1372599607,), (1372599622,), (1372599651,), (1372599683,), (1372599691,), (1372599694,), (1372599971,), (1372600000,), (1372600029,), (1372600045,), (1372600047,), (1372600049,), (1372600198,), (1372600202,), (1372600206,), (1372600207,), (1372600237,), (1372600265,), (1372600358,), (1372600367,), (1372600369,), (1372600372,), (1372600381,), (1372600421,), (1372600531,), (1372600535,), (1372600547,), (1372600552,), (1372600580,), (1372600612,), (1372600758,), (1372600783,), (1372600800,), (1372600809,), (1372600813,), (1372600819,), (1372601021,), (1372601062,), (1372601073,), (1372601089,), (1372601100,), (1372601103,), (1372601380,), (1372601395,), (1372601405,), (1372601422,), (1372601452,), (1372601496,), (1372601665,), (1372601844,), (1372601848,), (1372601850,), (1372601853,), (1372601856,), (1372601859,), (1372601928,), (1372601932,), (1372601936,), (1372601938,), (1372601939,), (1372601940,), (1372602001,), (1372602030,), (1372602056,), (1372602090,), (1372602118,), (1372602144,), (1372602329,), (1372602352,), (1372602376,), (1372602382,), (1372602388,), (1372602394,), (1372602585,), (1372602617,), (1372602644,), (1372602662,), (1372602672,), (1372602674,), (1372602851,), (1372602853,), (1372602854,), (1372602856,), (1372602858,), (1372602874,), (1372602940,), (1372602944,), (1372602947,), (1372602951,), (1372602954,), (1372602957,), (1372602976,), (1372602981,), (1372602984,), (1372602987,), (1372602990,), (1372602992,), (1372603022,), (1372603031,), (1372603032,), (1372603034,), (1372603036,), (1372603038,), (1372603100,), (1372603103,), (1372603106,), (1372603107,), (1372603110,), (1372603115,), (1372603250,), (1372603278,), (1372603304,), (1372603331,), (1372603365,), (1372603399,), (1372603573,), (1372603583,), (1372603597,), (1372603613,), (1372603622,), (1372603641,), (1372603750,), (1372603774,), (1372603780,), (1372603782,), (1372603785,), (1372603802,), (1372603847,), (1372603876,), (1372603906,), (1372603933,), (1372603949,), (1372603952,), (1372603973,), (1372603980,), (1372603990,), (1372603993,), (1372603994,), (1372603996,), (1372604032,), (1372604034,), (1372604036,), (1372604037,), (1372604040,), (1372604044,), (1372604074,), (1372604084,), (1372604089,), (1372604093,), (1372604096,), (1372604099,), (1372604130,), (1372604133,), (1372604136,), (1372604139,), (1372604141,), (1372604142,), (1372604199,), (1372604200,), (1372604207,), (1372604213,), (1372604215,), (1372604217,), (1372604339,), (1372604343,), (1372604346,), (1372604350,), (1372604386,), (1372604396,), (1372604444,), (1372604493,), (1372604569,), (1372604596,), (1372604632,), (1372604651,), (1372604791,), (1372604793,), (1372604796,), (1372604798,), (1372604800,), (1372604802,), (1372604818,), (1372604822,), (1372604829,), (1372604842,), (1372604848,), (1372604853,), (1372604900,), (1372604905,), (1372604908,), (1372604911,), (1372604916,), (1372604918,), (1372604927,), (1372604930,), (1372604933,), (1372604941,), (1372604943,), (1372604948,), (1372604968,), (1372604978,), (1372604989,), (1372604993,), (1372604997,), (1372605002,), (1372605029,), (1372605035,), (1372605053,), (1372605061,), (1372605068,), (1372605074,), (1372605101,), (1372605146,), (1372605149,), (1372605165,), (1372605170,), (1372605173,), (1372605176,), (1372605262,), (1372605264,), (1372605265,), (1372605266,), (1372605268,), (1372605271,), (1372605302,), (1372605303,), (1372605305,), (1372605308,), (1372605311,), (1372605313,), (1372605342,), (1372605345,), (1372605347,), (1372605350,), (1372605352,), (1372605354,), (1372605374,), (1372605377,), (1372605382,), (1372605385,), (1372605389,), (1372605391,), (1372605409,), (1372605412,), (1372605414,), (1372605417,), (1372605418,), (1372605421,), (1372605454,), (1372605456,), (1372605459,), (1372605466,), (1372605476,), (1372605478,), (1372605508,), (1372605510,), (1372605511,), (1372605513,), (1372605515,), (1372605517,), (1372605568,), (1372605580,), (1372605584,), (1372605587,), (1372605591,), (1372605595,), (1372605622,), (1372605624,), (1372605627,), (1372605629,), (1372605632,), (1372605635,), (1372605663,), (1372605667,), (1372605668,), (1372605672,), (1372605675,), (1372605679,), (1372605710,), (1372605714,), (1372605715,), (1372605719,), (1372605721,), (1372605723,), (1372605745,), (1372605748,), (1372605752,), (1372605754,), (1372605758,), (1372605761,), (1372605802,), (1372605805,), (1372605808,), (1372605809,), (1372605811,), (1372605814,), (1372605836,), (1372605838,), (1372605840,), (1372605843,), (1372605846,), (1372605850,), (1372605877,), (1372605879,), (1372605880,), (1372605882,), (1372605885,), (1372605888,), (1372605917,), (1372605929,), (1372605934,), (1372605936,), (1372605939,), (1372605943,), (1372605967,), (1372605972,), (1372605974,), (1372605978,), (1372605982,), (1372605986,), (1372606026,), (1372606030,), (1372606032,), (1372606034,), (1372606037,), (1372606039,), (1372606301,), (1372606576,), (1372606643,), (1372606703,), (1372606756,), (1372606806,), (1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,), (1372608794,), (1372608807,), (1372608836,), (1372608868,), (1372608884,), (1372608892,), (1372608946,), (1372608948,), (1372608951,), (1372608955,), (1372608957,), (1372608958,), (1372609191,), (1372609219,), (1372609245,), (1372609275,), (1372609307,), (1372609335,), (1372609625,), (1372609664,), (1372609692,), (1372609718,), (1372609747,), (1372609775,), (1372610054,), (1372610092,), (1372610111,), (1372610139,), (1372610165,), (1372610192,), (1372610222,), (1372610493,), (1372610498,), (1372610502,), (1372610504,), (1372610508,), (1372610512,), (1372610712,), (1372610715,), (1372610717,), (1372610719,), (1372610722,), (1372610724,), (1372610918,), (1372610946,), (1372610957,), (1372610962,), (1372610966,), (1372610969,), (1372610997,), (1372611000,), (1372611002,), (1372611003,), (1372611004,), (1372611006,), (1372611037,), (1372611040,), (1372611042,), (1372611044,), (1372611046,), (1372611048,), (1372611070,), (1372611072,), (1372611077,), (1372611078,), (1372611081,), (1372611085,), (1372611118,), (1372611188,), (1372611191,), (1372611192,), (1372611196,), (1372611198,), (1372611200,), (1372611227,), (1372611229,), (1372611231,), (1372611233,), (1372611241,), (1372611248,), (1372611278,), (1372611280,), (1372611282,), (1372611285,), (1372611288,), (1372611292,), (1372611357,), (1372611367,), (1372611401,), (1372611408,), (1372611414,), (1372611422,), (1372611477,), (1372611480,), (1372611483,), (1372611485,), (1372611488,), (1372611490,), (1372611512,), (1372611515,), (1372611537,), (1372611547,), (1372611551,), (1372611572,), (1372611603,), (1372611605,), (1372611607,), (1372611608,), (1372611609,), (1372611612,), (1372611648,), (1372611650,), (1372611651,), (1372611653,), (1372611654,), (1372611656,), (1372611674,), (1372611676,), (1372611678,), (1372611680,), (1372611682,), (1372611685,), (1372611707,), (1372611708,), (1372611710,), (1372611712,), (1372611714,), (1372611717,), (1372611744,), (1372611747,), (1372611748,), (1372611751,), (1372611753,), (1372611756,), (1372611779,), (1372611782,), (1372611784,), (1372611785,), (1372611787,), (1372611789,), (1372611820,), (1372611825,), (1372611829,), (1372611831,), (1372611833,), (1372611835,), (1372611865,), (1372611867,), (1372611869,), (1372611875,), (1372611877,), (1372611879,), (1372611931,), (1372611957,), (1372611990,), (1372612016,), (1372612028,), (1372612030,), (1372612479,), (1372612515,), (1372612539,), (1372612562,), (1372612577,), (1372612598,), (1372612846,), (1372612848,), (1372612861,), (1372612886,), (1372612905,), (1372612907,), (1372612931,), (1372613029,), (1372613032,), (1372613043,), (1372613071,), (1372613087,), (1372613089,), (1372613208,), (1372613209,), (1372613217,), (1372613219,), (1372613220,), (1372613241,), (1372613334,), (1372613342,), (1372613351,), (1372613353,), (1372613355,), (1372613356,), (1372613382,), (1372613387,), (1372613390,), (1372613393,), (1372613395,), (1372613408,), (1372613440,), (1372613443,), (1372613446,), (1372613448,), (1372613451,), (1372613454,), (1372613480,), (1372613482,), (1372613484,), (1372613486,), (1372613489,), (1372613492,), (1372613515,), (1372613517,), (1372613527,), (1372613531,), (1372613532,), (1372613534,), (1372613590,), (1372613591,), (1372613592,), (1372613593,), (1372613595,), (1372613603,), (1372613779,), (1372613792,), (1372613818,), (1372613830,), (1372613835,), (1372613837,), (1372613935,), (1372613962,), (1372613988,), (1372613994,), (1372613995,), (1372613998,), (1372614039,), (1372614040,), (1372614041,), (1372614042,), (1372614043,), (1372614045,), (1372614076,), (1372614078,), (1372614080,), (1372614082,), (1372614084,), (1372614088,), (1372614147,), (1372614151,), (1372614155,), (1372614157,), (1372614159,), (1372614163,), (1372614191,), (1372614193,), (1372614195,), (1372614196,), (1372614198,), (1372614200,), (1372614423,), (1372614458,), (1372614489,), (1372614520,), (1372614558,), (1372614581,), (1372614611,), (1372614614,), (1372614617,), (1372614618,), (1372614621,), (1372614624,), (1372614649,), (1372614651,), (1372614654,), (1372614656,), (1372614657,), (1372614659,), (1372614698,), (1372614700,), (1372614701,), (1372614703,), (1372614704,), (1372614707,), (1372614727,), (1372614734,), (1372614736,), (1372614739,), (1372614742,), (1372614747,), (1372614776,), (1372614779,), (1372614783,), (1372614785,), (1372614790,), (1372614793,), (1372614820,), (1372614822,), (1372614824,), (1372614826,), (1372614829,), (1372614833,), (1372614864,), (1372614909,), (1372614910,), (1372614912,), (1372614914,), (1372614917,), (1372614920,), (1372615312,), (1372615640,), (1372615670,), (1372615695,), (1372615703,), (1372615707,), (1372616218,), (1372616284,), (1372616342,), (1372616393,), (1372616443,), (1372616495,), (1372617019,), (1372617086,), (1372617139,), (1372617188,), (1372617238,), (1372617268,), (1372617402,), (1372617447,), (1372617494,), (1372617541,), (1372617585,), (1372617617,), (1372617850,), (1372617853,), (1372617855,), (1372617857,), (1372617860,), (1372617863,), (1372617913,), (1372617914,), (1372617926,), (1372617936,), (1372617938,), (1372617940,), (1372617988,), (1372618012,), (1372618033,), (1372618038,), (1372618047,), (1372618050,), (1372618156,), (1372618169,), (1372618179,), (1372618183,), (1372618187,), (1372618191,), (1372618243,), (1372618246,), (1372618248,), (1372618249,), (1372618252,), (1372618255,), (1372618432,), (1372618467,), (1372618506,), (1372618530,), (1372618555,), (1372618595,), (1372618751,), (1372618774,), (1372618798,), (1372618819,), (1372618834,), (1372618851,), (1372618959,), (1372618966,), (1372618973,), (1372618982,), (1372619024,), (1372619073,), (1372619387,), (1372619532,), (1372619554,), (1372619558,), (1372619561,), (1372619563,), (1372619566,), (1372619586,), (1372619596,), (1372619604,), (1372619613,), (1372619615,), (1372619618,), (1372619639,), (1372619649,), (1372619657,), (1372619705,), (1372619730,), (1372619735,), (1372619774,), (1372619777,), (1372619780,), (1372619784,), (1372619788,), (1372619789,), (1372619811,), (1372619813,), (1372619815,), (1372619828,), (1372619839,), (1372619850,), (1372619906,), (1372619910,), (1372619916,), (1372619920,), (1372619924,), (1372619929,), (1372619964,), (1372619999,), (1372620019,), (1372620037,), (1372620046,), (1372620059,), (1372620141,), (1372620144,), (1372620150,), (1372620162,), (1372620166,), (1372620169,), (1372620312,), (1372620320,), (1372620338,), (1372620348,), (1372620358,), (1372620361,), (1372620465,), (1372620468,), (1372620471,), (1372620472,), (1372620475,), (1372620479,), (1372620572,), (1372620578,), (1372620590,), (1372620593,), (1372620595,), (1372620599,), (1372620642,), (1372620645,), (1372620648,), (1372620650,), (1372620652,), (1372620656,), (1372620691,), (1372620698,), (1372620709,), (1372620712,), (1372620715,), (1372620719,), (1372620839,), (1372620842,), (1372620863,), (1372620868,), (1372620870,), (1372620873,), (1372620899,), (1372620904,), (1372620919,), (1372620929,), (1372620937,), (1372620940,), (1372620983,), (1372620986,), (1372620989,), (1372620992,), (1372620995,), (1372621000,), (1372621019,), (1372621021,), (1372621032,), (1372621046,), (1372621055,), (1372621058,), (1372621164,), (1372621168,), (1372621170,), (1372621174,), (1372621177,), (1372621180,), (1372621221,), (1372621236,), (1372621246,), (1372621256,), (1372621259,), (1372621260,), (1372621304,), (1372621307,), (1372621311,), (1372621314,), (1372621317,), (1372621320,), (1372621350,), (1372621352,), (1372621356,), (1372621359,), (1372621361,), (1372621363,), (1372621408,), (1372621411,), (1372621414,), (1372621418,), (1372621420,), (1372621423,), (1372621449,), (1372621453,), (1372621455,), (1372621457,), (1372621460,), (1372621463,), (1372621506,), (1372621509,), (1372621514,), (1372621518,), (1372621523,), (1372621526,), (1372621578,), (1372621582,), (1372621585,), (1372621588,), (1372621592,), (1372621595,), (1372621654,), (1372621655,), (1372621657,), (1372621659,), (1372621662,), (1372621664,), (1372621738,), (1372621741,), (1372621743,), (1372621747,), (1372621749,), (1372621751,), (1372621797,), (1372621801,), (1372621803,), (1372621806,), (1372621808,), (1372621811,), (1372621834,), (1372621839,), (1372621842,), (1372621845,), (1372621848,), (1372621854,), (1372621923,), (1372621926,), (1372621929,), (1372621933,), (1372621937,), (1372621940,), (1372621958,), (1372621961,), (1372621964,), (1372621967,), (1372621971,), (1372621974,), (1372622008,), (1372622012,), (1372622015,), (1372622019,), (1372622023,), (1372622026,), (1372622048,), (1372622052,), (1372622055,), (1372622058,), (1372622061,), (1372622065,), (1372622086,), (1372622089,), (1372622091,), (1372622094,), (1372622138,), (1372622142,), (1372622171,), (1372622174,), (1372622176,), (1372622178,), (1372622181,), (1372622184,), (1372622217,), (1372622256,), (1372622260,), (1372622263,), (1372622265,), (1372622269,), (1372622273,), (1372622318,), (1372622321,), (1372622323,), (1372622325,), (1372622329,), (1372622333,), (1372622353,), (1372622356,), (1372622358,), (1372622362,), (1372622367,), (1372622410,), (1372622441,), (1372622442,), (1372622443,), (1372622444,), (1372622445,), (1372622449,), (1372622485,), (1372622488,), (1372622492,), (1372622495,), (1372622499,), (1372622502,), (1372622530,), (1372622533,), (1372622536,), (1372622540,), (1372622544,), (1372622546,), (1372622568,), (1372622571,), (1372622575,), (1372622576,), (1372622579,), (1372622582,), (1372622601,), (1372622603,), (1372622604,), (1372622606,), (1372622645,), (1372622654,), (1372622676,), (1372622678,), (1372622679,), (1372622698,), (1372622741,), (1372622791,), (1372623914,), (1372623987,), (1372624044,), (1372624098,), (1372624131,), (1372624155,), (1372624642,), (1372624693,), (1372624729,), (1372624770,), (1372624820,), (1372624846,), (1372625112,), (1372625137,), (1372625141,), (1372625144,), (1372625145,), (1372625149,), (1372625277,), (1372625302,), (1372625328,), (1372625357,), (1372625384,), (1372625410,), (1372625559,), (1372625579,), (1372625583,), (1372625585,), (1372625587,), (1372625589,), (1372625615,), (1372625625,), (1372625629,), (1372625631,), (1372625633,), (1372625635,), (1372625655,), (1372625657,), (1372625660,), (1372625663,), (1372625666,), (1372625668,), (1372625725,), (1372625747,), (1372625751,), (1372625758,), (1372625760,), (1372625762,), (1372625858,), (1372625861,), (1372625863,), (1372625867,), (1372625871,), (1372625874,), (1372625921,), (1372625930,), (1372625939,), (1372625942,), (1372625946,), (1372625949,), (1372625981,), (1372625985,), (1372625987,), (1372625989,), (1372625992,), (1372625996,), (1372626071,), (1372626073,), (1372626076,), (1372626080,), (1372626082,), (1372626084,), (1372626306,), (1372626333,), (1372626359,), (1372626386,), (1372626413,), (1372626438,), (1372626568,), (1372626570,), (1372626572,), (1372626573,), (1372626574,), (1372626576,), (1372626599,), (1372626601,), (1372626602,), (1372626604,), (1372626606,), (1372626609,), (1372626642,), (1372626645,), (1372626647,), (1372626650,), (1372626652,), (1372626654,), (1372626680,), (1372626683,), (1372626690,), (1372626692,), (1372626694,), (1372626697,), (1372626720,), (1372626722,), (1372626724,), (1372626727,), (1372626730,), (1372626732,), (1372626804,), (1372626923,), (1372626951,), (1372626976,), (1372627001,), (1372627008,), (1372627009,), (1372627049,), (1372627052,), (1372627054,), (1372627057,), (1372627060,), (1372627063,), (1372627105,), (1372627107,), (1372627109,), (1372627111,), (1372627114,), (1372627116,), (1372627259,), (1372627286,), (1372627314,), (1372627344,), (1372627373,), (1372627402,), (1372627548,), (1372627551,), (1372627553,), (1372627555,), (1372627557,), (1372627559,), (1372627585,), (1372627589,), (1372627591,), (1372627595,), (1372627599,), (1372627601,), (1372627634,), (1372627635,), (1372627638,), (1372627641,), (1372627644,), (1372627646,), (1372627671,), (1372627674,), (1372627677,), (1372627679,), (1372627683,), (1372627685,), (1372627708,), (1372627721,), (1372627723,), (1372627725,), (1372627727,), (1372627729,), (1372627732,), (1372627767,), (1372627769,), (1372627771,), (1372627772,), (1372627775,), (1372627777,), (1372627813,), (1372627816,), (1372627820,), (1372627823,), (1372627825,), (1372627827,), (1372717055,), (1372717068,), (1372627869,), (1372627874,), (1372627883,), (1372627888,), (1372627890,), (1372627892,), (1372627923,), (1372627929,), (1372627931,), (1372627933,), (1372627936,), (1372627938,), (1372627964,), (1372628058,), (1372628069,), (1372628077,), (1372628080,), (1372628084,), (1372628088,), (1372628107,), (1372628110,), (1372628117,), (1372628119,), (1372628122,), (1372628125,), (1372628143,), (1372717024,), (1372717054,), (1372631993,), (1372631995,), (1372631997,), (1372631999,), (1372632002,), (1372632006,), (1372632019,), (1372632022,), (1372632027,), (1372632031,), (1372632035,), (1372632038,), (1372632051,), (1372632054,), (1372632057,), (1372632060,), (1372632063,), (1372632066,), (1372632080,), (1372632082,), (1372632084,), (1372632085,), (1372632086,), (1372632088,), (1372632107,), (1372632110,), (1372632113,), (1372632114,), (1372632118,), (1372632128,), (1372632150,), (1372632159,), (1372632161,), (1372632164,), (1372632167,), (1372632169,), (1372632208,), (1372632217,), (1372632221,), (1372632224,), (1372632225,), (1372632226,), (1372632270,), (1372632279,), (1372632282,), (1372632285,), (1372632288,), (1372632291,), (1372632326,), (1372632337,), (1372632342,), (1372632345,), (1372632349,), (1372632357,), (1372632391,), (1372632396,), (1372632400,), (1372632403,), (1372632407,), (1372632415,), (1372632493,), (1372632505,), (1372632508,), (1372632510,), (1372632513,), (1372632522,), (1372632547,), (1372632552,), (1372632559,), (1372632562,), (1372632577,), (1372632587,), (1372632612,), (1372632615,), (1372632618,), (1372632619,), (1372632620,), (1372632621,), (1372632734,), (1372632737,), (1372632740,), (1372632742,), (1372632745,), (1372632748,), (1372632776,), (1372632780,), (1372632782,), (1372632785,), (1372632787,), (1372632789,), (1372632875,), (1372632883,), (1372632888,), (1372632891,), (1372632893,), (1372632911,), (1372632959,), (1372632963,), (1372632965,), (1372632966,), (1372632967,), (1372632968,), (1372632984,), (1372632987,), (1372632990,), (1372632993,), (1372632995,), (1372632997,), (1372633043,), (1372633046,), (1372633051,), (1372633055,), (1372633056,), (1372633059,), (1372633086,), (1372633090,), (1372633095,), (1372633097,), (1372633100,), (1372633102,), (1372633124,), (1372633156,), (1372633157,), (1372633158,), (1372633171,), (1372633199,), (1372633227,), (1372633325,), (1372633422,), (1372633486,), (1372633548,), (1372633605,), (1372633654,), (1372633707,), (1372634244,), (1372634298,), (1372634340,), (1372634381,), (1372634428,), (1372634487,), (1372635216,), (1372635273,), (1372635324,), (1372635380,), (1372635432,), (1372635465,), (1372635743,), (1372635750,), (1372635753,), (1372635757,), (1372635760,), (1372635770,), (1372636031,), (1372636058,), (1372636086,), (1372636126,), (1372636167,), (1372636201,), (1372636872,), (1372636902,), (1372636934,), (1372636977,), (1372637056,), (1372637144,), (1372637786,), (1372637811,), (1372637814,), (1372637840,), (1372637861,), (1372637866,), (1372638111,), (1372638563,), (1372638599,), (1372638624,), (1372638651,), (1372638656,), (1372638661,), (1372638693,), (1372638697,), (1372638700,), (1372638703,), (1372638706,), (1372638709,), (1372638740,), (1372638813,), (1372638877,), (1372638938,), (1372638991,), (1372639043,), (1372639397,), (1372639416,), (1372639418,), (1372639419,), (1372639421,), (1372639445,), (1372639701,), (1372639709,), (1372639712,), (1372639726,), (1372639762,), (1372639778,), (1372639880,), (1372639914,), (1372639937,), (1372639940,), (1372639943,), (1372639946,), (1372639965,), (1372639970,), (1372639973,), (1372639977,), (1372639980,), (1372639984,), (1372640012,), (1372640016,), (1372640020,), (1372640024,), (1372640028,), (1372640030,), (1372640057,), (1372640062,), (1372640068,), (1372640072,), (1372640073,), (1372640075,), (1372640102,), (1372640150,), (1372640152,), (1372640155,), (1372640158,), (1372640161,), (1372640166,), (1372640193,), (1372640197,), (1372640200,), (1372640201,), (1372640203,), (1372640205,), (1372640239,), (1372640243,), (1372640246,), (1372640258,), (1372640268,), (1372640279,), (1372640306,), (1372640310,), (1372640314,), (1372640317,), (1372640320,), (1372640324,), (1372640349,), (1372640355,), (1372640360,), (1372640363,), (1372640366,), (1372640368,), (1372640410,), (1372640417,), (1372640422,), (1372640426,), (1372640427,), (1372640430,), (1372640515,), (1372640520,), (1372640536,), (1372640560,), (1372640564,), (1372640567,), (1372640600,), (1372640641,), (1372640691,), (1372640693,), (1372640696,), (1372640698,), (1372640700,), (1372640701,), (1372640734,), (1372640738,), (1372640740,), (1372640741,), (1372640744,), (1372640747,), (1372640801,), (1372640804,), (1372640807,), (1372640809,), (1372640811,), (1372640813,), (1372640846,), (1372640850,), (1372640854,), (1372640856,), (1372640858,), (1372640860,), (1372640901,), (1372640905,), (1372640907,), (1372640908,), (1372640910,), (1372640912,), (1372640949,), (1372640953,), (1372640955,), (1372640958,), (1372640961,), (1372640963,), (1372641017,), (1372641020,), (1372641025,), (1372641026,), (1372641027,), (1372641031,), (1372641066,), (1372641069,), (1372641070,), (1372641073,), (1372641076,), (1372641078,), (1372641102,), (1372641106,), (1372641111,), (1372641116,), (1372641119,), (1372641121,), (1372641152,), (1372641156,), (1372641158,), (1372641160,), (1372641161,), (1372641163,), (1372641193,), (1372641196,), (1372641198,), (1372641200,), (1372641203,), (1372641206,), (1372641239,), (1372641241,), (1372641243,), (1372641247,), (1372641251,), (1372641255,), (1372641281,), (1372641285,), (1372641287,), (1372641291,), (1372641293,), (1372641296,), (1372641370,), (1372641375,), (1372641380,), (1372641382,), (1372641385,), (1372641388,), (1372641410,), (1372641459,), (1372641462,), (1372641464,), (1372641467,), (1372641470,), (1372641473,), (1372641539,), (1372641542,), (1372641544,), (1372641546,), (1372641548,), (1372641550,), (1372641577,), (1372641580,), (1372641584,), (1372641586,), (1372641589,), (1372641591,), (1372641618,), (1372641622,), (1372641625,), (1372641626,), (1372641630,), (1372641633,), (1372641653,), (1372641658,), (1372641662,), (1372641666,), (1372641669,), (1372641672,), (1372641698,), (1372641703,), (1372641707,), (1372641708,), (1372641710,), (1372641714,), (1372641739,), (1372641742,), (1372641750,), (1372641755,), (1372641758,), (1372641761,), (1372641776,), (1372641781,), (1372641784,), (1372641786,), (1372641789,), (1372641793,), (1372641847,), (1372641852,), (1372641858,), (1372641867,), (1372641876,), (1372641878,), (1372641948,), (1372641951,), (1372641954,), (1372641955,), (1372641958,), (1372641962,), (1372641985,), (1372641989,), (1372641993,), (1372641996,), (1372642000,), (1372642004,), (1372642068,), (1372642093,), (1372642096,), (1372642100,), (1372642103,), (1372642106,), (1372642110,), (1372642141,), (1372642146,), (1372642151,), (1372642155,), (1372642159,), (1372642163,), (1372642191,), (1372642194,), (1372642197,), (1372642198,), (1372642200,), (1372642201,), (1372642228,), (1372642230,), (1372642232,), (1372642233,), (1372642235,), (1372642237,), (1372642268,), (1372642271,), (1372642275,), (1372642278,), (1372642281,), (1372642285,), (1372642310,), (1372642395,), (1372642397,), (1372642400,), (1372642403,), (1372642405,), (1372642435,), (1372643717,), (1372643778,), (1372643836,), (1372643889,), (1372643942,), (1372644000,), (1372661949,), (1372630131,), (1372630134,), (1372630136,), (1372630138,), (1372630140,), (1372630142,), (1372630143,), (1372630156,), (1372630160,), (1372630164,), (1372630168,), (1372630172,), (1372630176,), (1372630199,), (1372630202,), (1372630207,), (1372630211,), (1372630215,), (1372630219,), (1372630249,), (1372630253,), (1372630258,), (1372630263,), (1372630267,), (1372630271,), (1372716939,), (1372630297,), (1372630301,), (1372630304,), (1372630306,), (1372630309,), (1372630312,), (1372630339,), (1372630380,), (1372630382,), (1372630385,), (1372630388,), (1372630391,), (1372630394,), (1372630427,), (1372630431,), (1372630434,), (1372630437,), (1372630440,), (1372630443,), (1372630470,), (1372630473,), (1372630477,), (1372630481,), (1372630485,), (1372630489,), (1372630514,), (1372630518,), (1372630522,), (1372630526,), (1372630530,), (1372630533,), (1372630547,), (1372630552,), (1372630556,), (1372630560,), (1372630564,), (1372630568,), (1372630588,), (1372630591,), (1372630595,), (1372630598,), (1372630601,), (1372630603,), (1372630628,), (1372630633,), (1372630637,), (1372630641,), (1372630646,), (1372630649,), (1372630664,), (1372630692,), (1372630695,), (1372630697,), (1372630699,), (1372630702,), (1372630705,), (1372630725,), (1372630748,), (1372630752,), (1372630755,), (1372630759,), (1372630762,), (1372630765,), (1372630784,), (1372630788,), (1372630791,), (1372630794,), (1372630797,), (1372630800,), (1372630826,), (1372630828,), (1372630830,), (1372630832,), (1372630836,), (1372630838,), (1372630861,), (1372630890,), (1372630894,), (1372630897,), (1372630906,), (1372630909,), (1372630912,), (1372630938,), (1372630941,), (1372630943,), (1372630945,), (1372630948,), (1372630950,), (1372630968,), (1372630977,), (1372630980,), (1372630983,), (1372630986,), (1372630989,), (1372631012,), (1372631022,), (1372631025,), (1372631027,), (1372631029,), (1372631038,), (1372631064,), (1372631072,), (1372631074,), (1372631076,), (1372631079,), (1372631088,), (1372631112,), (1372631121,), (1372631124,), (1372631127,), (1372631130,), (1372631140,), (1372631170,), (1372631180,), (1372631184,), (1372631187,), (1372631189,), (1372631191,), (1372631225,), (1372631235,), (1372631237,), (1372631241,), (1372631245,), (1372631255,), (1372631276,), (1372631287,), (1372631290,), (1372631293,), (1372631296,), (1372631299,), (1372631340,), (1372631562,), (1372631571,), (1372631574,), (1372631577,), (1372631580,), (1372631583,), (1372631615,), (1372631657,), (1372631704,), (1372631712,), (1372631714,), (1372631715,), (1372631716,), (1372631717,), (1372631759,), (1372631760,), (1372631761,), (1372631762,), (1372631764,), (1372631773,), (1372631795,), (1372631803,), (1372631805,), (1372631807,), (1372631809,), (1372631812,), (1372631845,), (1372631848,), (1372631850,), (1372631851,), (1372631852,), (1372631860,), (1372631892,), (1372631895,), (1372631896,), (1372631904,), (1372631906,), (1372631908,), (1372644591,), (1372644648,), (1372644717,), (1372644794,), (1372644874,), (1372644918,), (1372645158,), (1372645162,), (1372645163,), (1372645168,), (1372645194,), (1372645221,), (1372645409,), (1372645420,), (1372645442,), (1372645449,), (1372645453,), (1372645456,), (1372645473,), (1372645478,), (1372645482,), (1372645484,), (1372645487,), (1372645491,), (1372645512,), (1372645585,), (1372645588,), (1372645591,), (1372645593,), (1372645597,), (1372645601,), (1372645623,), (1372645701,), (1372645704,), (1372645706,), (1372645707,), (1372645708,), (1372645709,), (1372645741,), (1372645742,), (1372645743,), (1372645744,), (1372645746,), (1372645749,), (1372645781,), (1372645785,), (1372645789,), (1372645791,), (1372645794,), (1372645796,), (1372645851,), (1372645855,), (1372645859,), (1372645860,), (1372645862,), (1372645863,), (1372645887,), (1372645898,), (1372645901,), (1372645902,), (1372645905,), (1372645907,), (1372645925,), (1372645983,), (1372645986,), (1372645989,), (1372645990,), (1372645991,), (1372645993,), (1372646021,), (1372646029,), (1372646045,), (1372646052,), (1372646057,), (1372646059,), (1372646095,), (1372646101,), (1372646108,), (1372646114,), (1372646116,), (1372646117,), (1372646137,), (1372646142,), (1372646146,), (1372646153,), (1372646163,), (1372646167,), (1372646207,), (1372646210,), (1372646214,), (1372646217,), (1372646220,), (1372646222,), (1372646245,), (1372646249,), (1372646252,), (1372646256,), (1372646257,), (1372646260,), (1372646288,), (1372646293,), (1372646298,), (1372646299,), (1372646301,), (1372646302,), (1372646344,), (1372646391,), (1372646396,), (1372646399,), (1372646403,), (1372646406,), (1372646408,), (1372646438,), (1372646442,), (1372646444,), (1372646447,), (1372646450,), (1372646452,), (1372646485,), (1372646488,), (1372646492,), (1372646493,), (1372646495,), (1372646496,), (1372646526,), (1372646529,), (1372646531,), (1372646532,), (1372646535,), (1372646538,), (1372646559,), (1372646562,), (1372646565,), (1372646566,), (1372646569,), (1372646572,), (1372646599,), (1372646602,), (1372646605,), (1372646606,), (1372646608,), (1372646610,), (1372646638,), (1372646641,), (1372646643,), (1372646644,), (1372646646,), (1372646650,), (1372646677,), (1372646679,), (1372646681,), (1372646683,), (1372646686,), (1372646689,), (1372646722,), (1372646725,), (1372646727,), (1372646729,), (1372646731,), (1372646734,), (1372646788,), (1372646818,), (1372646821,), (1372646823,), (1372646825,), (1372646828,), (1372646830,), (1372646851,), (1372646855,), (1372646859,), (1372646861,), (1372646865,), (1372646868,), (1372646903,), (1372646909,), (1372646912,), (1372646914,), (1372646916,), (1372646918,), (1372646934,), (1372646946,), (1372646981,), (1372647014,), (1372647042,), (1372647054,), (1372647391,), (1372647396,), (1372647399,), (1372647404,), (1372647432,), (1372647462,), (1372647589,), (1372647593,), (1372647596,), (1372647598,), (1372647601,), (1372647612,), (1372647782,), (1372647814,), (1372647842,), (1372647869,), (1372647913,), (1372647968,), (1372648440,), (1372648476,), (1372648517,), (1372648588,), (1372648626,), (1372648629,), (1372648859,), (1372648880,), (1372648909,), (1372648922,), (1372648924,), (1372648926,), (1372649198,), (1372649255,), (1372649275,), (1372649280,), (1372649330,), (1372649350,), (1372649559,), (1372649589,), (1372649610,), (1372649612,), (1372649615,), (1372649637,), (1372649748,), (1372649750,), (1372649754,), (1372649758,), (1372649761,), (1372649764,), (1372649794,), (1372649811,), (1372649847,), (1372649897,), (1372649952,), (1372650011,), (1372650239,), (1372650246,), (1372650273,), (1372650291,), (1372650294,), (1372650297,), (1372650317,), (1372650323,), (1372650331,), (1372650335,), (1372650338,), (1372650342,), (1372650467,), (1372650482,), (1372650485,), (1372650514,), (1372650525,), (1372650540,), (1372650618,), (1372650619,), (1372650620,), (1372650621,), (1372650623,), (1372650625,), (1372650653,), (1372650656,), (1372650660,), (1372650664,), (1372650667,), (1372650671,), (1372650726,), (1372650739,), (1372650743,), (1372650745,), (1372650751,), (1372650777,), (1372650834,), (1372650836,), (1372650838,), (1372650839,), (1372650841,), (1372650844,), (1372650872,), (1372650874,), (1372650876,), (1372650878,), (1372650880,), (1372650884,), (1372650915,), (1372650950,), (1372650982,), (1372650987,), (1372650992,), (1372650994,), (1372650998,), (1372651001,), (1372651021,), (1372651024,), (1372651028,), (1372651031,), (1372651034,), (1372651037,), (1372651064,), (1372651067,), (1372651070,), (1372651071,), (1372651072,), (1372651074,), (1372651244,), (1372651274,), (1372651299,), (1372651329,), (1372651359,), (1372651387,), (1372652153,), (1372652184,), (1372652215,), (1372652241,), (1372652270,), (1372652299,), (1372652578,), (1372653125,), (1372653154,), (1372653182,), (1372653215,), (1372653243,), (1372653260,), (1372653375,), (1372653402,), (1372653410,), (1372653414,), (1372653416,), (1372653438,), (1372653512,), (1372653518,), (1372653522,), (1372653525,), (1372653529,), (1372653531,), (1372653552,), (1372653616,), (1372653619,), (1372653622,), (1372653623,), (1372653627,), (1372653630,), (1372653661,), (1372653665,), (1372653670,), (1372653712,), (1372653719,), (1372653723,), (1372653746,), (1372653756,), (1372653766,), (1372653776,), (1372653778,), (1372653792,), (1372653859,), (1372653863,), (1372653866,), (1372653868,), (1372653875,), (1372653880,), (1372653909,), (1372653913,), (1372653915,), (1372653918,), (1372653920,), (1372653923,), (1372653985,), (1372653988,), (1372653990,), (1372653993,), (1372653995,), (1372653997,), (1372654025,), (1372654105,), (1372654108,), (1372654109,), (1372654112,), (1372654114,), (1372654116,), (1372654139,), (1372654140,), (1372654143,), (1372654146,), (1372654147,), (1372654149,), (1372654182,), (1372654185,), (1372654188,), (1372654191,), (1372654193,), (1372654197,), (1372661925,), (1372654231,), (1372654241,), (1372654248,), (1372654259,), (1372654261,), (1372654263,), (1372654295,), (1372654340,), (1372654344,), (1372654347,), (1372654350,), (1372654352,), (1372654355,), (1372654376,), (1372654379,), (1372654383,), (1372654386,), (1372654388,), (1372654389,), (1372654412,), (1372654415,), (1372654417,), (1372654420,), (1372654423,), (1372654425,), (1372654472,), (1372654474,), (1372654477,), (1372654480,), (1372654495,), (1372654504,), (1372654546,), (1372654608,), (1372654611,), (1372654614,), (1372654617,), (1372654621,), (1372654623,), (1372654648,), (1372654653,), (1372654657,), (1372654659,), (1372654662,), (1372654665,), (1372654684,), (1372654688,), (1372654690,), (1372654693,), (1372654695,), (1372654696,), (1372654714,), (1372654718,), (1372654720,), (1372654723,), (1372654726,), (1372654729,), (1372654753,), (1372654829,), (1372654861,), (1372654864,), (1372654866,), (1372654868,), (1372654870,), (1372654872,), (1372654911,), (1372654915,), (1372654918,), (1372654919,), (1372654921,), (1372654925,), (1372658664,), (1372661872,), (1372661899,), (1372654978,), (1372655007,), (1372655009,), (1372655010,), (1372655012,), (1372655013,), (1372655017,), (1372655064,), (1372655065,), (1372655066,), (1372655067,), (1372655069,), (1372655071,), (1372655106,), (1372655108,), (1372655110,), (1372655112,), (1372655114,), (1372655116,), (1372655159,), (1372655161,), (1372655164,), (1372655165,), (1372655167,), (1372655168,), (1372655202,), (1372655205,), (1372655208,), (1372655209,), (1372655213,), (1372655215,), (1372655232,), (1372655235,), (1372655239,), (1372655242,), (1372655246,), (1372655250,), (1372655289,), (1372655292,), (1372655294,), (1372655297,), (1372655300,), (1372655379,), (1372655428,), (1372655430,), (1372655433,), (1372655434,), (1372655436,), (1372655438,), (1372655465,), (1372655469,), (1372655472,), (1372655476,), (1372655479,), (1372655481,), (1372655512,), (1372655539,), (1372655540,), (1372655541,), (1372655543,), (1372655545,), (1372655549,), (1372655569,), (1372655571,), (1372655573,), (1372655575,), (1372655577,), (1372655579,), (1372655748,), (1372655751,), (1372655753,), (1372655755,), (1372655756,), (1372655757,), (1372655775,), (1372655778,), (1372655781,), (1372655782,), (1372655786,), (1372655789,), (1372655810,), (1372655813,), (1372655816,), (1372655819,), (1372655821,), (1372655825,), (1372655842,), (1372655844,), (1372655846,), (1372655847,), (1372655848,), (1372655858,), (1372655888,), (1372655890,), (1372655892,), (1372655893,), (1372655894,), (1372655897,), (1372655976,), (1372656004,), (1372656019,), (1372656022,), (1372656024,), (1372656027,), (1372656044,), (1372656050,), (1372656054,), (1372656060,), (1372656062,), (1372656065,), (1372656095,), (1372656115,), (1372656117,), (1372656120,), (1372656124,), (1372656125,), (1372656127,), (1372656166,), (1372656169,), (1372656173,), (1372656177,), (1372656180,), (1372656184,), (1372656201,), (1372656206,), (1372656211,), (1372656212,), (1372656215,), (1372656219,), (1372656231,), (1372656235,), (1372656238,), (1372656240,), (1372656242,), (1372656243,), (1372656268,), (1372656270,), (1372656272,), (1372656273,), (1372656275,), (1372656278,), (1372656299,), (1372656302,), (1372656305,), (1372656307,), (1372656310,), (1372656313,), (1372656512,), (1372656569,), (1372656622,), (1372656675,), (1372656731,), (1372656807,), (1372658094,), (1372658566,), (1372658597,), (1372658616,), (1372658620,), (1372658640,), (1372658681,), (1372658721,), (1372658724,), (1372658725,), (1372658727,), (1372658729,), (1372658731,), (1372658754,), (1372658758,), (1372658762,), (1372658764,), (1372658767,), (1372658770,), (1372658785,), (1372658790,), (1372658794,), (1372658796,), (1372658799,), (1372658802,), (1372658817,), (1372658820,), (1372658821,), (1372658825,), (1372658827,), (1372658831,), (1372658849,), (1372658854,), (1372658857,), (1372658860,), (1372658863,), (1372658865,), (1372658909,), (1372658916,), (1372658920,), (1372658922,), (1372658925,), (1372658927,), (1372658965,), (1372658968,), (1372658971,), (1372658973,), (1372658975,), (1372658976,), (1372659012,), (1372659013,), (1372659016,), (1372659019,), (1372659021,), (1372659023,), (1372659066,), (1372659071,), (1372659076,), (1372659080,), (1372659084,), (1372659086,), (1372659106,), (1372659152,), (1372659155,), (1372659159,), (1372659161,), (1372659164,), (1372659167,), (1372659193,), (1372659195,), (1372659197,), (1372659198,), (1372659201,), (1372659203,), (1372659230,), (1372659233,), (1372659236,), (1372659239,), (1372659241,), (1372659243,), (1372659270,), (1372659273,), (1372659284,), (1372659287,), (1372659289,), (1372659292,), (1372659314,), (1372659317,), (1372659320,), (1372659322,), (1372659325,), (1372659329,), (1372659388,), (1372659403,), (1372659408,), (1372659411,), (1372659413,), (1372659415,), (1372659437,), (1372659447,), (1372659454,), (1372659459,), (1372659461,), (1372659462,), (1372659505,), (1372659509,), (1372659511,), (1372659512,), (1372659513,), (1372659515,), (1372659546,), (1372659549,), (1372659553,), (1372659558,), (1372659570,), (1372659580,), (1372659615,), (1372659671,), (1372659672,), (1372659674,), (1372659676,), (1372659679,), (1372659681,), (1372659709,), (1372659714,), (1372659718,), (1372659722,), (1372659724,), (1372659727,), (1372659753,), (1372659757,), (1372659760,), (1372659761,), (1372659762,), (1372659764,), (1372659787,), (1372659790,), (1372659791,), (1372659793,), (1372659794,), (1372659796,), (1372659823,), (1372659829,), (1372659833,), (1372659836,), (1372659839,), (1372659844,), (1372659901,), (1372659905,), (1372659908,), (1372659909,), (1372659910,), (1372659913,), (1372659947,), (1372659951,), (1372659955,), (1372659957,), (1372659960,), (1372659962,), (1372659993,), (1372659995,), (1372659996,), (1372659999,), (1372660000,), (1372660002,), (1372660047,), (1372660051,), (1372660054,), (1372660056,), (1372660058,), (1372660060,), (1372660086,), (1372660121,), (1372660125,), (1372660129,), (1372660132,), (1372660134,), (1372660137,), (1372660170,), (1372660173,), (1372660175,), (1372660179,), (1372660184,), (1372660188,), (1372660206,), (1372660210,), (1372660214,), (1372660217,), (1372660221,), (1372660223,), (1372660250,), (1372660266,), (1372660270,), (1372660273,), (1372660276,), (1372660280,), (1372660298,), (1372660301,), (1372660304,), (1372660305,), (1372660306,), (1372660309,), (1372660378,), (1372660383,), (1372660387,), (1372660389,), (1372660392,), (1372660395,), (1372660450,), (1372660453,), (1372660456,), (1372660460,), (1372660464,), (1372660466,), (1372660499,), (1372660504,), (1372660508,), (1372660510,), (1372660512,), (1372660513,), (1372660546,), (1372660549,), (1372660551,), (1372660552,), (1372660554,), (1372660557,), (1372660572,), (1372660633,), (1372660635,), (1372660638,), (1372660640,), (1372660642,), (1372660643,), (1372660669,), (1372660671,), (1372660672,), (1372660673,), (1372660675,), (1372660680,), (1372660712,), (1372660716,), (1372660718,), (1372660720,), (1372660722,), (1372660724,), (1372660758,), (1372660764,), (1372660766,), (1372660767,), (1372660768,), (1372660770,), (1372660815,), (1372660817,), (1372660818,), (1372660820,), (1372660821,), (1372660823,), (1372660877,), (1372660884,), (1372660886,), (1372660887,), (1372660889,), (1372660892,), (1372660925,), (1372660927,), (1372660929,), (1372660931,), (1372660933,), (1372660935,), (1372660962,), (1372660964,), (1372660967,), (1372660969,), (1372660970,), (1372660972,), (1372661009,), (1372661010,), (1372661011,), (1372661012,), (1372661014,), (1372661016,), (1372661042,), (1372661087,), (1372661091,), (1372661093,), (1372661096,), (1372661099,), (1372661101,), (1372661132,), (1372661136,), (1372661139,), (1372661141,), (1372661142,), (1372661143,), (1372661166,), (1372661170,), (1372661172,), (1372661175,), (1372661178,), (1372661182,), (1372661198,), (1372661203,), (1372661206,), (1372661212,), (1372661218,), (1372661222,), (1372661237,), (1372661240,), (1372661245,), (1372661247,), (1372661248,), (1372661262,), (1372661508,), (1372661536,), (1372661566,), (1372661593,), (1372661620,), (1372661636,), (1372661845,), (1372662199,), (1372662727,), (1372663079,), (1372663143,), (1372663199,), (1372663255,), (1372663306,), (1372663354,), (1372663572,), (1372663761,), (1372663791,), (1372663816,), (1372663851,), (1372663880,), (1372663906,), (1372664189,), (1372664216,), (1372664248,), (1372664276,), (1372664304,), (1372664351,), (1372664757,), (1372664782,), (1372664808,), (1372664839,), (1372664870,), (1372664931,), (1372665540,), (1372665615,), (1372665659,), (1372665709,), (1372665746,), (1372665802,), (1372666426,), (1372666455,), (1372666483,), (1372666511,), (1372666538,), (1372666565,), (1372666882,), (1372666904,), (1372666920,), (1372666974,), (1372667032,), (1372667092,), (1372667467,), (1372667501,), (1372667589,), (1372667618,), (1372667646,), (1372667673,), (1372667751,), (1372668132,), (1372668183,), (1372668221,), (1372668248,), (1372668274,), (1372668312,), (1372668855,), (1372668919,), (1372668967,), (1372669016,), (1372669047,), (1372669074,), (1372669442,), (1372669453,), (1372669460,), (1372669462,), (1372669464,), (1372669538,), (1372670036,), (1372670747,), (1372670773,), (1372670800,), (1372670849,), (1372670899,), (1372670956,), (1372671284,), (1372671302,), (1372671307,), (1372671309,), (1372671311,), (1372671323,), (1372671883,), (1372671973,), (1372672052,), (1372672138,), (1372672222,), (1372672323,), (1372673063,), (1372673126,), (1372673205,), (1372673251,), (1372673299,), (1372673332,), (1372673796,), (1372673852,), (1372673906,), (1372673958,), (1372674023,), (1372674083,), (1372674461,), (1372674654,), (1372674681,), (1372674706,), (1372674735,), (1372674763,), (1372674794,), (1372675115,), (1372675169,), (1372675237,), (1372675325,), (1372675378,), (1372675431,), (1372675820,), (1372675851,), (1372675916,), (1372675996,), (1372676080,), (1372676158,), (1372676643,), (1372676674,), (1372676714,), (1372676772,), (1372676823,), (1372676879,), (1372677258,), (1372677276,), (1372677278,), (1372677281,), (1372677284,), (1372677297,), (1372677531,), (1372677552,), (1372677564,), (1372677566,), (1372677568,), (1372677569,), (1372677708,), (1372677738,), (1372677770,), (1372677798,), (1372677825,), (1372677854,), (1372678141,), (1372678175,), (1372678225,), (1372678255,), (1372678284,), (1372678310,), (1372678719,), (1372678744,), (1372678750,), (1372678762,), (1372678819,), (1372678847,), (1372678998,), (1372679003,), (1372679006,), (1372679008,), (1372679011,), (1372679014,), (1372679058,), (1372679104,), (1372679108,), (1372679111,), (1372679113,), (1372679115,), (1372679117,), (1372679326,), (1372679353,), (1372679384,), (1372679412,), (1372679440,), (1372679471,), (1372679737,), (1372679763,), (1372679794,), (1372679822,), (1372679850,), (1372679877,), (1372680122,), (1372680151,), (1372680186,), (1372680211,), (1372680238,), (1372680266,), (1372680800,), (1372680850,), (1372680890,), (1372680917,), (1372680944,), (1372680960,), (1372681229,), (1372681276,), (1372681329,), (1372681375,), (1372681406,), (1372681454,), (1372681961,), (1372682022,), (1372682072,), (1372682127,), (1372682198,), (1372682253,), (1372682562,), (1372682659,), (1372682666,), (1372682669,), (1372682672,), (1372682675,), (1372682678,), (1372682739,), (1372682741,), (1372682744,), (1372682745,), (1372682746,), (1372682747,), (1372682918,), (1372682949,), (1372682976,), (1372683003,), (1372683033,), (1372683059,), (1372683343,), (1372683439,), (1372683499,), (1372683550,), (1372683608,), (1372683659,), (1372683992,), (1372684025,), (1372684054,), (1372684086,), (1372684104,), (1372684112,), (1372684397,), (1372684451,), (1372684452,), (1372684455,), (1372684457,), (1372684458,), (1372684460,), (1372684488,), (1372684491,), (1372684494,), (1372684496,), (1372684499,), (1372684501,), (1372684536,), (1372684538,), (1372684544,), (1372684547,), (1372684555,), (1372684588,), (1372684821,), (1372684850,), (1372684861,), (1372684875,), (1372684906,), (1372684915,), (1372684989,), (1372684995,), (1372684999,), (1372685001,), (1372685004,), (1372685008,), (1372685056,), (1372685063,), (1372685094,), (1372685123,), (1372685150,), (1372685178,), (1372685484,), (1372685517,), (1372685539,), (1372685542,), (1372685544,), (1372685546,), (1372685840,), (1372685900,), (1372685948,), (1372685977,), (1372686006,), (1372686037,), (1372686308,), (1372686329,), (1372686333,), (1372686337,), (1372686340,), (1372686343,), (1372686511,), (1372686536,), (1372686544,), (1372686547,), (1372686572,), (1372686612,), (1372686957,), (1372687012,), (1372687083,), (1372687154,), (1372687227,), (1372687304,), (1372688481,), (1372688642,), (1372688663,), (1372688669,), (1372688672,), (1372688674,), (1372688678,), (1372688692,), (1372688713,), (1372688715,), (1372688720,), (1372688724,), (1372688727,), (1372688730,), (1372688752,), (1372688755,), (1372688758,), (1372688760,), (1372688762,), (1372688763,), (1372688783,), (1372688820,), (1372688825,), (1372688829,), (1372688833,), (1372688837,), (1372688839,), (1372688870,), (1372688874,), (1372688879,), (1372688882,), (1372688885,), (1372688887,), (1372688939,), (1372688941,), (1372688942,), (1372688944,), (1372688946,), (1372688949,), (1372688965,), (1372688968,), (1372688971,), (1372688973,), (1372688975,), (1372688977,), (1372689010,), (1372689020,), (1372689028,), (1372689031,), (1372689033,), (1372689035,), (1372689064,), (1372689090,), (1372689141,), (1372689143,), (1372689146,), (1372689149,), (1372689153,), (1372689156,), (1372689183,), (1372689187,), (1372689191,), (1372689194,), (1372689196,), (1372689197,), (1372689218,), (1372689221,), (1372689225,), (1372689229,), (1372689232,), (1372689236,), (1372689257,), (1372689261,), (1372689264,), (1372689267,), (1372689270,), (1372689273,), (1372689295,), (1372689300,), (1372689304,), (1372689313,), (1372689322,), (1372689323,), (1372689390,), (1372689394,), (1372689396,), (1372689400,), (1372689405,), (1372689407,), (1372689431,), (1372689435,), (1372689439,), (1372689442,), (1372689445,), (1372689450,), (1372689476,), (1372689487,), (1372689499,), (1372689500,), (1372689501,), (1372689502,), (1372689528,), (1372689530,), (1372689531,), (1372689533,), (1372689541,), (1372689555,), (1372689583,), (1372689615,), (1372689624,), (1372689633,), (1372689642,), (1372689669,), (1372689670,), (1372689706,), (1372689711,), (1372689713,), (1372689715,), (1372689716,), (1372689718,), (1372689741,), (1372689743,), (1372689746,), (1372689749,), (1372689751,), (1372689753,), (1372689774,), (1372689778,), (1372689783,), (1372689787,), (1372689790,), (1372689792,), (1372689816,), (1372689817,), (1372689819,), (1372689821,), (1372689823,), (1372689825,), (1372689896,), (1372689900,), (1372689905,), (1372689908,), (1372689911,), (1372689913,), (1372689940,), (1372689982,), (1372689985,), (1372689987,), (1372689989,), (1372689991,), (1372689993,), (1372690027,), (1372690061,), (1372690109,), (1372690110,), (1372690112,), (1372690114,), (1372690115,), (1372690117,), (1372690143,), (1372690147,), (1372690152,), (1372690155,), (1372690157,), (1372690159,), (1372690202,), (1372690214,), (1372690222,), (1372690225,), (1372690227,), (1372690240,), (1372690277,), (1372690279,), (1372690281,), (1372690282,), (1372690283,), (1372690285,), (1372690309,), (1372690310,), (1372690311,), (1372690312,), (1372690314,), (1372690316,), (1372690355,), (1372690367,), (1372690370,), (1372690373,), (1372690377,), (1372690381,), (1372690399,), (1372690446,), (1372690449,), (1372690452,), (1372690453,), (1372690455,), (1372690457,), (1372690502,), (1372690506,), (1372690510,), (1372690513,), (1372690516,), (1372690518,), (1372690526,), (1372690538,), (1372690540,), (1372690542,), (1372690544,), (1372690546,), (1372690548,), (1372690594,), (1372690599,), (1372690602,), (1372690605,), (1372690607,), (1372690609,), (1372690630,), (1372690661,), (1372690664,), (1372690669,), (1372690677,), (1372690682,), (1372690685,), (1372690711,), (1372690715,), (1372690718,), (1372690720,), (1372690722,), (1372690724,), (1372690766,), (1372690777,), (1372690780,), (1372690781,), (1372690782,), (1372690783,), (1372690800,), (1372690802,), (1372690808,), (1372690812,), (1372690813,), (1372690816,), (1372690831,), (1372690836,), (1372690839,), (1372690841,), (1372690843,), (1372690845,), (1372690904,), (1372690926,), (1372690965,), (1372690976,), (1372690978,), (1372690981,), (1372690987,), (1372690996,), (1372691029,), (1372691034,), (1372691038,), (1372691040,), (1372691042,), (1372691043,), (1372691061,), (1372691063,), (1372691065,), (1372691076,), (1372691079,), (1372691081,), (1372691094,), (1372691098,), (1372691102,), (1372691105,), (1372691108,), (1372691110,), (1372691135,), (1372691138,), (1372691141,), (1372691144,), (1372691146,), (1372691147,), (1372691401,), (1372691427,), (1372691463,), (1372691511,), (1372691561,), (1372691613,), (1372692692,), (1372692734,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18072025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25075176]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] map_info['map_portfolio_photo'] : {25075176: [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131]} final : True mtd_id 4302 list_pids : [1372716939, 1372630271, 1372630267, 1372630263, 1372630258, 1372630253, 1372630249, 1372630219, 1372630215, 1372630211, 1372630207, 1372630202, 1372630199, 1372630176, 1372630172, 1372630168, 1372630164, 1372630160, 1372630156, 1372630143, 1372630142, 1372630140, 1372630138, 1372630136, 1372630134, 1372630131] Looping around the photos to save general results len do output : 1 /25075176Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372716939', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630271', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630267', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630263', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630258', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630253', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630249', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630219', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630215', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630211', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630207', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630202', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630199', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630176', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630172', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630168', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630164', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630160', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630156', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630143', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630142', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630140', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630138', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630136', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630134', None, None, None, None, None, '3325830') ('4302', None, None, None, None, None, None, None, '3325830') ('4302', '25075176', '1372630131', None, None, None, None, None, '3325830') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25075176', 'None', None, None, None, None, '3325830'), ('4302', '25075176', '1372716939', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630271', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630267', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630263', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630258', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630253', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630249', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630219', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630215', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630211', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630207', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630202', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630199', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630176', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630172', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630168', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630164', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630160', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630156', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630143', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630142', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630140', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630138', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630136', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630134', None, None, None, None, None, '3325830'), ('4302', '25075176', '1372630131', None, None, None, None, None, '3325830')] time used for this insertion : 0.01904606819152832 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.2680747509002686 time spend to save output : 0.019350051879882812 total time spend for step 5 : 6.287424802780151 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (3325830) 3.00user 2.01system 0:15.29elapsed 32%CPU (0avgtext+0avgdata 168044maxresident)k 0inputs+15584outputs (0major+78128minor)pagefaults 0swaps