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 : 836574 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 (4217054) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4217054) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390568 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4217054'] with mtr_portfolio_ids : ['29390568'] and first list_photo_ids : [] new path : /proc/836574/ Name: python3 Umask: 0002 State: R (running) Tgid: 836574 Ngid: 0 Pid: 836574 PPid: 836573 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 836574 NSpid: 836574 NSpgid: 834965 NSsid: 834965 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105872 kB VmRSS: 105872 kB RssAnon: 66320 kB RssFile: 39552 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 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: 51 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '836574', 'Ngid': '0', 'Pid': '836574', 'PPid': '836573', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '836574', 'NSpid': '836574', 'NSpgid': '834965', 'NSsid': '834965', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105872 kB', 'VmRSS': '105872 kB', 'RssAnon': '66320 kB', 'RssFile': '39552 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 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': '51', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '836574', '1113376', '0', '1113376', '872104', '105872', b'', 'marlene', '4217054') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29390568) 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 (4217054 ) ) 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 (29390568) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399132125, 'portfolio_id': 29390568}, {'photo_id': 1399132048, 'portfolio_id': 29390568}, {'photo_id': 1399131979, 'portfolio_id': 29390568}, {'photo_id': 1399131913, 'portfolio_id': 29390568}, {'photo_id': 1399131855, 'portfolio_id': 29390568}, {'photo_id': 1399131041, 'portfolio_id': 29390568}, {'photo_id': 1399131024, 'portfolio_id': 29390568}, {'photo_id': 1399131023, 'portfolio_id': 29390568}, {'photo_id': 1399131022, 'portfolio_id': 29390568}, {'photo_id': 1399130754, 'portfolio_id': 29390568}, {'photo_id': 1399130720, 'portfolio_id': 29390568}, {'photo_id': 1399130689, 'portfolio_id': 29390568}, {'photo_id': 1399130653, 'portfolio_id': 29390568}, {'photo_id': 1399130590, 'portfolio_id': 29390568}, {'photo_id': 1399129769, 'portfolio_id': 29390568}, {'photo_id': 1399129710, 'portfolio_id': 29390568}, {'photo_id': 1399129645, 'portfolio_id': 29390568}, {'photo_id': 1399129054, 'portfolio_id': 29390568}, {'photo_id': 1399129022, 'portfolio_id': 29390568}, {'photo_id': 1399128989, 'portfolio_id': 29390568}, {'photo_id': 1399128957, 'portfolio_id': 29390568}, {'photo_id': 1399128919, 'portfolio_id': 29390568}, {'photo_id': 1399128918, 'portfolio_id': 29390568}, {'photo_id': 1399128804, 'portfolio_id': 29390568}, {'photo_id': 1399128801, 'portfolio_id': 29390568}, {'photo_id': 1399128795, 'portfolio_id': 29390568}, {'photo_id': 1399128761, 'portfolio_id': 29390568}, {'photo_id': 1399128729, 'portfolio_id': 29390568}, {'photo_id': 1399128696, 'portfolio_id': 29390568}, {'photo_id': 1399128583, 'portfolio_id': 29390568}, {'photo_id': 1399128563, 'portfolio_id': 29390568}, {'photo_id': 1399128528, 'portfolio_id': 29390568}, {'photo_id': 1399128138, 'portfolio_id': 29390568}, {'photo_id': 1399128107, 'portfolio_id': 29390568}, {'photo_id': 1399128077, 'portfolio_id': 29390568}, {'photo_id': 1399128044, 'portfolio_id': 29390568}] map_portfolio_id_photo_id: {29390568: [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590, 1399129769, 1399129710, 1399129645, 1399129054, 1399129022, 1399128989, 1399128957, 1399128919, 1399128918, 1399128804, 1399128801, 1399128795, 1399128761, 1399128729, 1399128696, 1399128583, 1399128563, 1399128528, 1399128138, 1399128107, 1399128077, 1399128044]} ##### 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.01829075813293457 #### 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 Fri Dec 12 22:10:57 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 (29390568) 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 : 29390568 get user id for portfolio 29390568 get sub ptf for main ptf 29390568, type 3726 and hashtags ['metal', 'cartonnette', 'Teint_Dans_La_Masse', 'autre_refus', 'mal_croppe', 'plastique', 'Carton_brun', 'flou', 'kraft', 'papier', 'Carton_gris', 'environnement'] 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`=29390568 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','plastique','Carton_brun','flou','kraft','papier','Carton_gris','environnement')) 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`=29390568 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','plastique','Carton_brun','flou','kraft','papier','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29390568, 'sub_port_id': 29390580, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021760, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'plastique': {'main_port_id': 29390568, 'sub_port_id': 29390581, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021761, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'Carton_brun': {'main_port_id': 29390568, 'sub_port_id': 29390582, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021762, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'flou': {'main_port_id': 29390568, 'sub_port_id': 29390583, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021763, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'environnement': {'main_port_id': 29390568, 'sub_port_id': 29390584, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021764, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'cartonnette': {'main_port_id': 29390568, 'sub_port_id': 29390585, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021765, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'kraft': {'main_port_id': 29390568, 'sub_port_id': 29390586, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021766, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'autre_refus': {'main_port_id': 29390568, 'sub_port_id': 29390587, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021767, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'metal': {'main_port_id': 29390568, 'sub_port_id': 29390588, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021768, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'Carton_gris': {'main_port_id': 29390568, 'sub_port_id': 29390589, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021769, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'mal_croppe': {'main_port_id': 29390568, 'sub_port_id': 29390590, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021770, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}, 'papier': {'main_port_id': 29390568, 'sub_port_id': 29390591, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021771, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29390580 , 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=29390568 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 (29390580) result : ((1399130099,), (1399131585,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390581 , 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=29390568 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 (29390581) result : ((1399131291,), (1399131680,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390582 , 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=29390568 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 (29390582) result : ((1399130132,), (1399131268,), (1399131271,), (1399131274,), (1399131661,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390583 , 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=29390568 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 (29390583) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390584 , 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=29390568 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 (29390584) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390585 , 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=29390568 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 (29390585) result : ((1399131642,), (1399131646,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390586 , 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=29390568 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 (29390586) result : ((1399131309,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390587 , 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=29390568 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 (29390587) result : ((1399130117,), (1399131602,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390588 , 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=29390568 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 (29390588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390589 , 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=29390568 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 (29390589) result : ((1399131245,), (1399131617,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390590 , 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=29390568 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 (29390590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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 29390591 , 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=29390568 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 (29390591) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29390568) result : ((1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) 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`=29390568 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','plastique','Carton_brun','flou','kraft','papier','Carton_gris','environnement')) 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`=29390568 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','plastique','Carton_brun','flou','kraft','papier','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29390568, 'sub_port_id': 29390593, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021772, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'plastique': {'main_port_id': 29390568, 'sub_port_id': 29390594, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021773, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'Carton_brun': {'main_port_id': 29390568, 'sub_port_id': 29390595, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021774, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'flou': {'main_port_id': 29390568, 'sub_port_id': 29390596, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021775, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'environnement': {'main_port_id': 29390568, 'sub_port_id': 29390597, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021776, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'cartonnette': {'main_port_id': 29390568, 'sub_port_id': 29390598, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021777, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'kraft': {'main_port_id': 29390568, 'sub_port_id': 29390599, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021778, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'autre_refus': {'main_port_id': 29390568, 'sub_port_id': 29390600, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021779, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'metal': {'main_port_id': 29390568, 'sub_port_id': 29390601, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021780, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'Carton_gris': {'main_port_id': 29390568, 'sub_port_id': 29390603, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021781, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'mal_croppe': {'main_port_id': 29390568, 'sub_port_id': 29390604, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021782, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}, 'papier': {'main_port_id': 29390568, 'sub_port_id': 29390605, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20021783, 'last_updated_at': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 22, 3, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390593,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390580 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390594,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390581 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390595,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390582 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390583 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29390605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29390591 lien utilise dans velours : https://marlene.fotonower.com/velours/29390593,29390594,29390595,29390596,29390597,29390598,29390599,29390600,29390601,29390603,29390604,29390605?tags=Teint_Dans_La_Masse,plastique,Carton_brun,flou,environnement,cartonnette,kraft,autre_refus,metal,Carton_gris,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29390568]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] map_info['map_portfolio_photo'] : {29390568: [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590, 1399129769, 1399129710, 1399129645, 1399129054, 1399129022, 1399128989, 1399128957, 1399128919, 1399128918, 1399128804, 1399128801, 1399128795, 1399128761, 1399128729, 1399128696, 1399128583, 1399128563, 1399128528, 1399128138, 1399128107, 1399128077, 1399128044]} final : False mtd_id 4302 list_pids : [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] Looping around the photos to save general results len do output : 1 /29390568. 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, '4217054') ('4302', '29390568', '1399132125', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399132048', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131979', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131913', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131855', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131041', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131024', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131023', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131022', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130754', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130720', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130689', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130653', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130590', None, None, None, None, None, '4217054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29390568', "{'Teint_Dans_La_Masse': 29390580, 'plastique': 29390581, 'Carton_brun': 29390582, 'flou': 29390583, 'environnement': 29390584, 'cartonnette': 29390585, 'kraft': 29390586, 'autre_refus': 29390587, 'metal': 29390588, 'Carton_gris': 29390589, 'mal_croppe': 29390590, 'papier': 29390591}", None, None, None, None, '4217054'), ('4302', '29390568', '1399132125', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399132048', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131979', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131913', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131855', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131041', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131024', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131023', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131022', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130754', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130720', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130689', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130653', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130590', None, None, None, None, None, '4217054')] time used for this insertion : 0.016782283782958984 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9397168159484863 time spend to save output : 0.0171964168548584 total time spend for step 1 : 1.9569132328033447 step2:final Fri Dec 12 22:10:59 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 (29390568) 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 29390568 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399128138,1399128107,1399128077,1399128044,1399128583,1399128563,1399128528,1399128804,1399128801,1399128795,1399128761,1399128729,1399128696,1399128919,1399128918,1399129054,1399129022,1399128989,1399128957,1399129769,1399129710,1399129645,1399130754,1399130720,1399130689,1399130653,1399130590,1399131041,1399131024,1399131023,1399131022,1399132125,1399132048,1399131979,1399131913,1399131855); 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([29390568]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} new output for save of step final : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] map_info['map_portfolio_photo'] : {29390568: [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590, 1399129769, 1399129710, 1399129645, 1399129054, 1399129022, 1399128989, 1399128957, 1399128919, 1399128918, 1399128804, 1399128801, 1399128795, 1399128761, 1399128729, 1399128696, 1399128583, 1399128563, 1399128528, 1399128138, 1399128107, 1399128077, 1399128044]} final : False mtd_id 4302 list_pids : [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] Looping around the photos to save general results len do output : 14 /1399132125.Didn't retrieve data . /1399132048.Didn't retrieve data . /1399131979.Didn't retrieve data . /1399131913.Didn't retrieve data . /1399131855.Didn't retrieve data . /1399131041.Didn't retrieve data . /1399131024.Didn't retrieve data . /1399131023.Didn't retrieve data . /1399131022.Didn't retrieve data . /1399130754.Didn't retrieve data . /1399130720.Didn't retrieve data . /1399130689.Didn't retrieve data . /1399130653.Didn't retrieve data . /1399130590.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, '4217054') ('4302', '29390568', '1399132125', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399132048', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131979', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131913', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131855', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131041', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131024', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131023', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131022', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130754', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130720', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130689', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130653', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130590', None, None, None, None, None, '4217054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29390568', '1399132125', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399132048', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399131979', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399131913', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399131855', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399131041', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399131024', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399131023', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399131022', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399130754', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399130720', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399130689', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399130653', '0.024705779435958926', None, None, None, None, '4217054'), ('4302', '29390568', '1399130590', '0.024705779435958926', None, None, None, None, '4217054')] time used for this insertion : 0.016503334045410156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0807647705078125 time spend to save output : 0.017305374145507812 total time spend for step 2 : 0.09807014465332031 step3:velours_tree Fri Dec 12 22:10:59 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 : {29390568: [{'Teint_Dans_La_Masse': 29390580, 'plastique': 29390581, 'Carton_brun': 29390582, 'flou': 29390583, 'environnement': 29390584, 'cartonnette': 29390585, 'kraft': 29390586, 'autre_refus': 29390587, 'metal': 29390588, 'Carton_gris': 29390589, 'mal_croppe': 29390590, 'papier': 29390591}]} input_args_next_step : {29390568: ()} output_args : {29390568: [{'Teint_Dans_La_Masse': 29390580, 'plastique': 29390581, 'Carton_brun': 29390582, 'flou': 29390583, 'environnement': 29390584, 'cartonnette': 29390585, 'kraft': 29390586, 'autre_refus': 29390587, 'metal': 29390588, 'Carton_gris': 29390589, 'mal_croppe': 29390590, 'papier': 29390591}]} args : 29390568 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 : ({'Teint_Dans_La_Masse': 29390580, 'plastique': 29390581, 'Carton_brun': 29390582, 'flou': 29390583, 'environnement': 29390584, 'cartonnette': 29390585, 'kraft': 29390586, 'autre_refus': 29390587, 'metal': 29390588, 'Carton_gris': 29390589, 'mal_croppe': 29390590, 'papier': 29390591},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29390568) 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([29390568]) 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.2981846332550049 time spend to save output : 3.695487976074219e-05 total time spend for step 3 : 0.2982215881347656 step4:send_mail_cod Fri Dec 12 22:10:59 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 : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} input_args_next_step : {1399132125: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399132125 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399132048 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399131979 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399131913 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399131855 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399131041 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399131024 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399131023 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399131022 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399130754 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399130720 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399130689 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399130653 depend.output_id : 0 input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ()} output_args : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',)} args : 1399130590 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 : {29390568: [{'Teint_Dans_La_Masse': 29390580, 'plastique': 29390581, 'Carton_brun': 29390582, 'flou': 29390583, 'environnement': 29390584, 'cartonnette': 29390585, 'kraft': 29390586, 'autre_refus': 29390587, 'metal': 29390588, 'Carton_gris': 29390589, 'mal_croppe': 29390590, 'papier': 29390591}]} input_args_next_step : {1399132125: ('0.024705779435958926',), 1399132048: ('0.024705779435958926',), 1399131979: ('0.024705779435958926',), 1399131913: ('0.024705779435958926',), 1399131855: ('0.024705779435958926',), 1399131041: ('0.024705779435958926',), 1399131024: ('0.024705779435958926',), 1399131023: ('0.024705779435958926',), 1399131022: ('0.024705779435958926',), 1399130754: ('0.024705779435958926',), 1399130720: ('0.024705779435958926',), 1399130689: ('0.024705779435958926',), 1399130653: ('0.024705779435958926',), 1399130590: ('0.024705779435958926',), 29390568: ()} output_args : {29390568: [{'Teint_Dans_La_Masse': 29390580, 'plastique': 29390581, 'Carton_brun': 29390582, 'flou': 29390583, 'environnement': 29390584, 'cartonnette': 29390585, 'kraft': 29390586, 'autre_refus': 29390587, 'metal': 29390588, 'Carton_gris': 29390589, 'mal_croppe': 29390590, 'papier': 29390591}]} args : 29390568 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 :15, first value : ('0.024705779435958926',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29390568) 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_view ph WHERE photo_id IN (1399132125,1399132048,1399131979,1399131913,1399131855,1399131041,1399131024,1399131023,1399131022,1399130754,1399130720,1399130689,1399130653,1399130590) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399130590 begin to download photo : 1399130720 begin to download photo : 1399131023 begin to download photo : 1399131855 begin to download photo : 1399132048 download finish for photo 1399131023 begin to download photo : 1399131024 download finish for photo 1399132048 begin to download photo : 1399132125 download finish for photo 1399130590 begin to download photo : 1399130653 download finish for photo 1399130720 begin to download photo : 1399130754 download finish for photo 1399131855 begin to download photo : 1399131913 download finish for photo 1399131024 begin to download photo : 1399131041 download finish for photo 1399132125 download finish for photo 1399130653 begin to download photo : 1399130689 download finish for photo 1399131913 begin to download photo : 1399131979 download finish for photo 1399130754 begin to download photo : 1399131022 download finish for photo 1399131041 download finish for photo 1399131979 download finish for photo 1399131022 download finish for photo 1399130689 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29390568_12-12-2025_22_10_59.pdf 29390581 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390581 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399131291: '1765573746_3743369_1399129022_1cfb3e2f4207616d4704475733cfacf9_rle_crop_4068292025_0.png', 1399131680: '1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/24a9aaacf79ecb0946ddfb485f1db948_11531368.png change filename to text .imagette293905811765573859/ imagette293905811765573859/1765573746_3743369_1399129022_1cfb3e2f4207616d4704475733cfacf9_rle_crop_4068292025_0.png.png imagette293905811765573859/1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292248_0.png.png imagette293905831765573860/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/bd2a18ecc75ab7f79434ad930a39b061_7895128.png imagette293905811765573859 29390583 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390583 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293905831765573860 29390585 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399131642: '1765573767_3743775_1399129054_936194e12b8173de1768c89b6839218b_rle_crop_4068292238_0.png', 1399131646: '1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292249_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/617e07a57b7190a191ef575ef67e9969_92488500.png change filename to text .imagette293905851765573860/ imagette293905851765573860/1765573767_3743775_1399129054_936194e12b8173de1768c89b6839218b_rle_crop_4068292238_0.png.png imagette293905851765573860/1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292249_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9d205738739c5a0323ad302b79c4a46d_59867212.png imagette293905851765573860 29390586 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399131309: '1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292033_0.png'} change filename to text .imagette293905861765573860/ imagette293905861765573860/1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292033_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/68e96924e29d16b06613307dff4f085b_22672258.png imagette293905861765573860 29390587 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399130117: '1765573624_3739258_1399128729_138048d5f42455ed26b7563bc05bdbf7_rle_crop_4068283615_0.png', 1399131602: '1765573767_3743775_1399129054_936194e12b8173de1768c89b6839218b_rle_crop_4068292234_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/f2dd7eb2ea1d7635e8ab837e9cf71ec8_43779019.png change filename to text .imagette293905871765573860/ imagette293905871765573860/1765573767_3743775_1399129054_936194e12b8173de1768c89b6839218b_rle_crop_4068292234_0.png.png imagette293905871765573860/1765573624_3739258_1399128729_138048d5f42455ed26b7563bc05bdbf7_rle_crop_4068283615_0.png.png imagette293905881765573860/ imagette293905901765573860/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/d1aa73cecf981a2da8c38bd887170f41_55966422.png imagette293905871765573860 29390588 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293905881765573860 29390590 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293905901765573860 29390580 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390580 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399130099: '1765573624_3739258_1399128761_e97840e3c82746d5bf385cf531db306b_rle_crop_4068283106_0.png', 1399131585: '1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292253_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/40c64f2249bb0f46f9ae4dfe75d67432_11516508.png change filename to text .imagette293905801765573860/ imagette293905801765573860/1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292253_0.png.png imagette293905801765573860/1765573624_3739258_1399128761_e97840e3c82746d5bf385cf531db306b_rle_crop_4068283106_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7070d10ffc23e71b4417bd2b7b314751_11958213.png imagette293905801765573860 29390582 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399130132: '1765573624_3739258_1399128761_e97840e3c82746d5bf385cf531db306b_rle_crop_4068283107_0.png', 1399131268: '1765573746_3743369_1399129022_1cfb3e2f4207616d4704475733cfacf9_rle_crop_4068292027_0.png', 1399131271: '1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292038_0.png', 1399131274: '1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292039_0.png', 1399131661: '1765573767_3743775_1399129054_936194e12b8173de1768c89b6839218b_rle_crop_4068292242_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/1173317153732fa5f0de19c0a25ca701_89542983.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/a5a0dd8b581d092a730bff4c409c6f45_8258850.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/973a8fa1a0fc8ee87f64437cd64df741_20013720.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/3f84e16bec27f4e754e2fba060248b89_42599401.png change filename to text .imagette293905821765573860/ imagette293905821765573860/1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292039_0.png.png imagette293905821765573860/1765573746_3743369_1399129022_1cfb3e2f4207616d4704475733cfacf9_rle_crop_4068292027_0.png.png imagette293905821765573860/1765573624_3739258_1399128761_e97840e3c82746d5bf385cf531db306b_rle_crop_4068283107_0.png.png imagette293905821765573860/1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292038_0.png.png imagette293905821765573860/1765573767_3743775_1399129054_936194e12b8173de1768c89b6839218b_rle_crop_4068292242_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/1ffe163032b871012beb448a7ca9ce82_60492704.png imagette293905821765573860 29390589 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399131245: '1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292037_0.png', 1399131617: '1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292250_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/23d59949536854a88c3fd9010b00f97d_50583581.png change filename to text .imagette293905891765573861/ imagette293905891765573861/1765573746_3743369_1399128989_3b4b9a04e105f12060e853595cfdc453_rle_crop_4068292037_0.png.png imagette293905891765573861/1765573767_3743775_1399128918_940336380f8784f46c9b9aad812b8a6d_rle_crop_4068292250_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/1b107c38a423542f2569debf42f0e37e_81724081.png imagette293905891765573861 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29390568 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29390593,29390594,29390595,29390596,29390597,29390598,29390599,29390600,29390601,29390603,29390604,29390605?tags=Teint_Dans_La_Masse,plastique,Carton_brun,flou,environnement,cartonnette,kraft,autre_refus,metal,Carton_gris,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1399132125] : ('0.024705779435958926',) no score found for photo 1399132125 We are sending mail with results at report@fotonower.com args[1399132048] : ('0.024705779435958926',) no score found for photo 1399132048 We are sending mail with results at report@fotonower.com args[1399131979] : ('0.024705779435958926',) no score found for photo 1399131979 We are sending mail with results at report@fotonower.com args[1399131913] : ('0.024705779435958926',) no score found for photo 1399131913 We are sending mail with results at report@fotonower.com args[1399131855] : ('0.024705779435958926',) no score found for photo 1399131855 We are sending mail with results at report@fotonower.com args[1399131041] : ('0.024705779435958926',) no score found for photo 1399131041 We are sending mail with results at report@fotonower.com args[1399131024] : ('0.024705779435958926',) no score found for photo 1399131024 We are sending mail with results at report@fotonower.com args[1399131023] : ('0.024705779435958926',) no score found for photo 1399131023 We are sending mail with results at report@fotonower.com args[1399131022] : ('0.024705779435958926',) no score found for photo 1399131022 We are sending mail with results at report@fotonower.com args[1399130754] : ('0.024705779435958926',) no score found for photo 1399130754 We are sending mail with results at report@fotonower.com args[1399130720] : ('0.024705779435958926',) no score found for photo 1399130720 We are sending mail with results at report@fotonower.com args[1399130689] : ('0.024705779435958926',) no score found for photo 1399130689 We are sending mail with results at report@fotonower.com args[1399130653] : ('0.024705779435958926',) no score found for photo 1399130653 We are sending mail with results at report@fotonower.com args[1399130590] : ('0.024705779435958926',) no score found for photo 1399130590 We are sending mail with results at report@fotonower.com refus_total : 0.024705779435958926 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390568 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_P29390568_12-12-2025_22_10_59.pdf results_Auto_P29390568_12-12-2025_22_10_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29390568_12-12-2025_22_10_59.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','29390568','results_Auto_P29390568_12-12-2025_22_10_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29390568_12-12-2025_22_10_59.pdf','pdf','','0.17','0.024705779435958926') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29390568]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] map_info['map_portfolio_photo'] : {29390568: [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590, 1399129769, 1399129710, 1399129645, 1399129054, 1399129022, 1399128989, 1399128957, 1399128919, 1399128918, 1399128804, 1399128801, 1399128795, 1399128761, 1399128729, 1399128696, 1399128583, 1399128563, 1399128528, 1399128138, 1399128107, 1399128077, 1399128044]} final : False mtd_id 4302 list_pids : [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] 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, '4217054') ('4302', '29390568', '1399132125', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399132048', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131979', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131913', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131855', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131041', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131024', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131023', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131022', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130754', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130720', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130689', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130653', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130590', None, None, None, None, None, '4217054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '29390568', '1399132125', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399132048', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131979', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131913', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131855', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131041', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131024', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131023', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131022', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130754', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130720', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130689', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130653', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130590', None, None, None, None, None, '4217054')] time used for this insertion : 0.016731739044189453 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.952240467071533 time spend to save output : 0.017032146453857422 total time spend for step 4 : 2.9692726135253906 step5:split_time_score Fri Dec 12 22:11:02 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 : ['29390568'] 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 : [('29390568',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29390568) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399132048: {'path': 'temp/1765573859_836574_1399132048_3a1df0235737e8001bf4a4f25d5ac3c8.jpg', 'extension': 'jpg'}, 1399132125: {'path': 'temp/1765573859_836574_1399132125_cfdd0592dc65956a8b716973ba04053c.jpg', 'extension': 'jpg'}, 1399131023: {'path': 'temp/1765573859_836574_1399131023_2a4de21bbf2d0cf506301c81ea466e42.jpg', 'extension': 'jpg'}, 1399131024: {'path': 'temp/1765573859_836574_1399131024_646f0e7ae9a20298992742f33c75f3d9.jpg', 'extension': 'jpg'}, 1399131041: {'path': 'temp/1765573859_836574_1399131041_904d3238f459d4b1158e62407a7125b5.jpg', 'extension': 'jpg'}, 1399131855: {'path': 'temp/1765573859_836574_1399131855_344cc0ffe900e798b7a5ac0a00ded769.jpg', 'extension': 'jpg'}, 1399131913: {'path': 'temp/1765573859_836574_1399131913_b5848ad35ec0398fa2c3a200d01b5626.jpg', 'extension': 'jpg'}, 1399131979: {'path': 'temp/1765573859_836574_1399131979_ab5c9f24783e94960e4ffced52298438.jpg', 'extension': 'jpg'}, 1399130720: {'path': 'temp/1765573859_836574_1399130720_5e6026008a151f82498acf91ac345d9d.jpg', 'extension': 'jpg'}, 1399130754: {'path': 'temp/1765573859_836574_1399130754_508676bd069c86ede7782df408b541f5.jpg', 'extension': 'jpg'}, 1399131022: {'path': 'temp/1765573859_836574_1399131022_edeee86b8a781c459f25b4f10d53fcd7.jpg', 'extension': 'jpg'}, 1399130590: {'path': 'temp/1765573859_836574_1399130590_839be3d8658e7011c8099b55d23c4735.jpg', 'extension': 'jpg'}, 1399130653: {'path': 'temp/1765573859_836574_1399130653_8c643943c476250715dc6816e008a293.jpg', 'extension': 'jpg'}, 1399130689: {'path': 'temp/1765573859_836574_1399130689_b7f7f1353ff54d90b499cfdd3450f72b.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 = 29390568; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) 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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29390568 group by h (('22', 36),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29390568 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 (29390568) 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 (29390568) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12122025 29390568 Nombre de photos uploadées : 36 / 23040 (0%) 12122025 29390568 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 12122025 29390568 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1399128138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/aa90dba94f77f65b8c03fb01e4b1bb96.jpg', 'username': None, 'uploaded_at': 1765573267, 'text': 'image_12122025_22_00_14_10196.jpg'}, {'photo_id': 1399128107, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/493a0f8f0c5e2c80ce9d74ca6a8d3539.jpg', 'username': None, 'uploaded_at': 1765573267, 'text': 'image_12122025_22_00_24_10136.jpg'}, {'photo_id': 1399128077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/834551d5b42574d69ba87a4d075c03fb.jpg', 'username': None, 'uploaded_at': 1765573267, 'text': 'image_12122025_22_00_34_10154.jpg'}, {'photo_id': 1399128044, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/6d7c036d6da4d3b5639cbbc055f4fcd5.jpg', 'username': None, 'uploaded_at': 1765573267, 'text': 'image_12122025_22_00_44_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.337860107421875e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001306295394897461 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29390568, '2025-12-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2725864,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24654889106750488 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= 2725864 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29353967, 'dashboard_result_id': 18332686, '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_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29354414, 'dashboard_result_id': 18332687, '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_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29354703, 'dashboard_result_id': 18332688, '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_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29355153, 'dashboard_result_id': 18332689, '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_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29356369, 'dashboard_result_id': 18332690, '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_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29356788, 'dashboard_result_id': 18332691, '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_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29357162, 'dashboard_result_id': 18332692, '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_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29357697, 'dashboard_result_id': 18332693, '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_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29358082, 'dashboard_result_id': 18332694, '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_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29358557, 'dashboard_result_id': 18332695, '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_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29358933, 'dashboard_result_id': 18332696, '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_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29359035, 'dashboard_result_id': 18332697, '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_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29359405, 'dashboard_result_id': 18332698, '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_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29359799, 'dashboard_result_id': 18332699, '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_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29360191, 'dashboard_result_id': 18332700, '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_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29361267, 'dashboard_result_id': 18332701, '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_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29361419, 'dashboard_result_id': 18332702, '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_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29361719, 'dashboard_result_id': 18332703, '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_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29362085, 'dashboard_result_id': 18332704, '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_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29362407, 'dashboard_result_id': 18332705, '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_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29362854, 'dashboard_result_id': 18332706, '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_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29363295, 'dashboard_result_id': 18332707, '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_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29363773, 'dashboard_result_id': 18332708, '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_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29364180, 'dashboard_result_id': 18332709, '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_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29364786, 'dashboard_result_id': 18332710, '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_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29365262, 'dashboard_result_id': 18332711, '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_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29365724, 'dashboard_result_id': 18332712, '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_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29366368, 'dashboard_result_id': 18332713, '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_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29366602, 'dashboard_result_id': 18332714, '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_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29367216, 'dashboard_result_id': 18332715, '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_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29367911, 'dashboard_result_id': 18332716, '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_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29369385, 'dashboard_result_id': 18332717, '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_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29369990, 'dashboard_result_id': 18332718, '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_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29370446, 'dashboard_result_id': 18332719, '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_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29370838, 'dashboard_result_id': 18332720, '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_P29370838_12-12-2025_11_46_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29371214, 'dashboard_result_id': 18332721, '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_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29371672, 'dashboard_result_id': 18332722, '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_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29372129, 'dashboard_result_id': 18332723, '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_P29372129_12-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29372543, 'dashboard_result_id': 18332724, '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_P29372543_12-12-2025_11_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372604, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29373212, 'dashboard_result_id': 18332725, '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_P29373212_12-12-2025_11_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373259, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29373878, 'dashboard_result_id': 18332726, '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_P29373878_12-12-2025_12_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373950, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29374651, 'dashboard_result_id': 18332727, '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_P29374651_12-12-2025_12_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29374686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29374687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29374688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29374689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29374691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29374692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29374693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29374694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29374695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29374696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29374697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29374698, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29377140, 'dashboard_result_id': 18332728, '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_P29377140_12-12-2025_13_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29377141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377152, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29377556, 'dashboard_result_id': 18332729, '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_P29377556_12-12-2025_14_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377571, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29377785, 'dashboard_result_id': 18332730, '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_P29377785_12-12-2025_14_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377812, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29378344, 'dashboard_result_id': 18332731, '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_P29378344_12-12-2025_14_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29378356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378363, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29378900, 'dashboard_result_id': 18332732, '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_P29378900_12-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29378916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378927, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29379334, 'dashboard_result_id': 18332733, '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_P29379334_12-12-2025_15_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379348, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29379624, 'dashboard_result_id': 18332734, '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_P29379624_12-12-2025_15_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379650, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29380128, 'dashboard_result_id': 18332735, '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_P29380128_12-12-2025_15_33_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29380140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29380151, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29380559, 'dashboard_result_id': 18332736, '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_P29380559_12-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29380568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29380572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380579, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29381059, 'dashboard_result_id': 18332737, '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_P29381059_12-12-2025_16_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29381068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29381069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29381070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29381071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29381072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29381073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29381074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29381075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29381076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29381077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29381078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29381079, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29381436, 'dashboard_result_id': 18332738, '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_P29381436_12-12-2025_16_37_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29381478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29381479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29381480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29381481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29381482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29381483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29381484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29381485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29381486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29381487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29381488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29381489, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29382417, 'dashboard_result_id': 18332739, '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_P29382417_12-12-2025_17_08_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382431, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29382677, 'dashboard_result_id': 18332740, '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_P29382677_12-12-2025_17_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382692, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29382919, 'dashboard_result_id': 18332741, '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_P29382919_12-12-2025_18_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382931, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382946, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29383504, 'dashboard_result_id': 18332742, '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_P29383504_12-12-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29383511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29383512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29383513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29383514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29383515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29383516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29383517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29383518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29383519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29383520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29383521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29383522, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29384031, 'dashboard_result_id': 18332743, '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_P29384031_12-12-2025_18_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29384050, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29384459, 'dashboard_result_id': 18332744, '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_P29384459_12-12-2025_18_49_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29384473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384484, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29384932, 'dashboard_result_id': 18332745, '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_P29384932_12-12-2025_19_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29384939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384944, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29385363, 'dashboard_result_id': 18332746, '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_P29385363_12-12-2025_19_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29385380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29385382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29385383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29385384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29385385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29385386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29385387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29385388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29385389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29385390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29385392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29385393, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29386070, 'dashboard_result_id': 18332747, '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_P29386070_12-12-2025_19_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29386075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29386076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29386077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29386078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29386079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29386080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29386081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29386082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29386083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29386084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29386085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29386086, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29386542, 'dashboard_result_id': 18332748, '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_P29386542_12-12-2025_19_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29386561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29386562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29386563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29386564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29386565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29386566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29386567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29386568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29386569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29386570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29386571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29386572, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29387002, 'dashboard_result_id': 18332749, '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_P29387002_12-12-2025_20_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29387034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387039, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29387422, 'dashboard_result_id': 18332750, '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_P29387422_12-12-2025_20_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29387452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387463, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29387928, 'dashboard_result_id': 18332751, '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_P29387928_12-12-2025_20_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29387942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387947, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29388477, 'dashboard_result_id': 18332752, '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_P29388477_12-12-2025_20_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29388483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29388484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29388485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29388486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29388487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29388488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29388489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29388490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29388491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29388492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29388493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29388494, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29389201, 'dashboard_result_id': 18332753, '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_P29389201_12-12-2025_21_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29389209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389213, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29389375, 'dashboard_result_id': 18332754, '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_P29389375_12-12-2025_21_37_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29389391, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29389867, 'dashboard_result_id': 18332755, '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_P29389867_12-12-2025_21_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29389869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389880, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29390079, 'dashboard_result_id': 18332756, '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_P29390079_12-12-2025_22_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29390085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29390086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29390087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29390088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29390089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29390090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29390091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29390092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29390093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29390094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29390095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29390096, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2738529, 'mtr_portfolio_id': 29390568, 'dashboard_result_id': 18332757, '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_P29390568_12-12-2025_22_09_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29390580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29390581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29390582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29390583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29390584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29390585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29390586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29390587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29390588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29390589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29390590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29390591, '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 = 29353967 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': 4212498, 'mtr_portfolio_id': 29353967, 'created_at': datetime.datetime(2025, 12, 12, 6, 9, 58), 'result': '0.04597087438017942', 'result_long': None, 'result_double': None}] Qualite : 0.04597087438017942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29353967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29353967 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_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}" where mtr_portfolio_id = 29353967 and dashboard_run_id = 2738529 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`=29353967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332686, 0.04597087438017942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, '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 = 29354414 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': 4212499, 'mtr_portfolio_id': 29354414, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 38), 'result': '0.05125559086969083', 'result_long': None, 'result_double': None}] Qualite : 0.05125559086969083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354414 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_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}" where mtr_portfolio_id = 29354414 and dashboard_run_id = 2738529 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`=29354414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332687, 0.05125559086969083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, '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 = 29354703 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': 4212500, 'mtr_portfolio_id': 29354703, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 58), 'result': '0.0506519231053191', 'result_long': None, 'result_double': None}] Qualite : 0.0506519231053191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354703 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_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}" where mtr_portfolio_id = 29354703 and dashboard_run_id = 2738529 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`=29354703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332688, 0.0506519231053191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, '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 = 29355153 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': 4212501, 'mtr_portfolio_id': 29355153, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 13), 'result': '0.055784932988337046', 'result_long': None, 'result_double': None}] Qualite : 0.055784932988337046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29355153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29355153 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_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}" where mtr_portfolio_id = 29355153 and dashboard_run_id = 2738529 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`=29355153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332689, 0.055784932988337046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, '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 = 29356369 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': 4212502, 'mtr_portfolio_id': 29356369, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 30), 'result': '0.03774252289420257', 'result_long': None, 'result_double': None}] Qualite : 0.03774252289420257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356369 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_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}" where mtr_portfolio_id = 29356369 and dashboard_run_id = 2738529 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`=29356369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332690, 0.03774252289420257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, '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 = 29356788 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': 4212503, 'mtr_portfolio_id': 29356788, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 2), 'result': '0.054177068289269714', 'result_long': None, 'result_double': None}] Qualite : 0.054177068289269714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356788 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_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}" where mtr_portfolio_id = 29356788 and dashboard_run_id = 2738529 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`=29356788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332691, 0.054177068289269714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, '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 = 29357162 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': 4212504, 'mtr_portfolio_id': 29357162, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 29), 'result': '0.048368403148316676', 'result_long': None, 'result_double': None}] Qualite : 0.048368403148316676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357162 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_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}" where mtr_portfolio_id = 29357162 and dashboard_run_id = 2738529 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`=29357162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332692, 0.048368403148316676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, '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 = 29357697 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': 4212505, 'mtr_portfolio_id': 29357697, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 30), 'result': '0.05939493826901827', 'result_long': None, 'result_double': None}] Qualite : 0.05939493826901827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357697 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_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}" where mtr_portfolio_id = 29357697 and dashboard_run_id = 2738529 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`=29357697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332693, 0.05939493826901827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, '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 = 29358082 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': 4212506, 'mtr_portfolio_id': 29358082, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 57), 'result': '0.03917308618929719', 'result_long': None, 'result_double': None}] Qualite : 0.03917308618929719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358082 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_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}" where mtr_portfolio_id = 29358082 and dashboard_run_id = 2738529 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`=29358082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332694, 0.03917308618929719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, '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 = 29358557 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': 4212507, 'mtr_portfolio_id': 29358557, 'created_at': datetime.datetime(2025, 12, 12, 6, 14, 29), 'result': '0.07413136999611537', 'result_long': None, 'result_double': None}] Qualite : 0.07413136999611537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358557 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_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}" where mtr_portfolio_id = 29358557 and dashboard_run_id = 2738529 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`=29358557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332695, 0.07413136999611537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, '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 = 29358933 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': 4212508, 'mtr_portfolio_id': 29358933, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 30), 'result': '0.062389813942886216', 'result_long': None, 'result_double': None}] Qualite : 0.062389813942886216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358933 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_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}" where mtr_portfolio_id = 29358933 and dashboard_run_id = 2738529 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`=29358933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332696, 0.062389813942886216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, '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 = 29359035 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': 4212509, 'mtr_portfolio_id': 29359035, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 36), 'result': '0.07474450706546877', 'result_long': None, 'result_double': None}] Qualite : 0.07474450706546877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359035 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_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}" where mtr_portfolio_id = 29359035 and dashboard_run_id = 2738529 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`=29359035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332697, 0.07474450706546877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, '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 = 29359405 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': 4212510, 'mtr_portfolio_id': 29359405, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 58), 'result': '0.02671260360751556', 'result_long': None, 'result_double': None}] Qualite : 0.02671260360751556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359405 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_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}" where mtr_portfolio_id = 29359405 and dashboard_run_id = 2738529 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`=29359405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332698, 0.02671260360751556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, '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 = 29359799 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': 4212511, 'mtr_portfolio_id': 29359799, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 12), 'result': '0.03439692669008735', 'result_long': None, 'result_double': None}] Qualite : 0.03439692669008735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359799 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_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}" where mtr_portfolio_id = 29359799 and dashboard_run_id = 2738529 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`=29359799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332699, 0.03439692669008735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, '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 = 29360191 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': 4212512, 'mtr_portfolio_id': 29360191, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 31), 'result': '0.029805734438451352', 'result_long': None, 'result_double': None}] Qualite : 0.029805734438451352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29360191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29360191 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_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}" where mtr_portfolio_id = 29360191 and dashboard_run_id = 2738529 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`=29360191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332700, 0.029805734438451352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, '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 = 29361267 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': 4212513, 'mtr_portfolio_id': 29361267, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 30), 'result': '0.017617938333941475', 'result_long': None, 'result_double': None}] Qualite : 0.017617938333941475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361267 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_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}" where mtr_portfolio_id = 29361267 and dashboard_run_id = 2738529 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`=29361267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332701, 0.017617938333941475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, '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 = 29361419 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': 4212514, 'mtr_portfolio_id': 29361419, 'created_at': datetime.datetime(2025, 12, 12, 5, 40, 39), 'result': '0.042268325842161156', 'result_long': None, 'result_double': None}] Qualite : 0.042268325842161156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361419 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_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}" where mtr_portfolio_id = 29361419 and dashboard_run_id = 2738529 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`=29361419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332702, 0.042268325842161156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, '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 = 29361719 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': 4212426, 'mtr_portfolio_id': 29361719, 'created_at': datetime.datetime(2025, 12, 12, 5, 48, 58), 'result': '0.03512528820820063', 'result_long': None, 'result_double': None}] Qualite : 0.03512528820820063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361719 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_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}" where mtr_portfolio_id = 29361719 and dashboard_run_id = 2738529 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`=29361719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332703, 0.03512528820820063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, '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 = 29362085 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': 4212622, 'mtr_portfolio_id': 29362085, 'created_at': datetime.datetime(2025, 12, 12, 6, 3, 29), 'result': '0.02489806755007265', 'result_long': None, 'result_double': None}] Qualite : 0.02489806755007265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362085 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_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}" where mtr_portfolio_id = 29362085 and dashboard_run_id = 2738529 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`=29362085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332704, 0.02489806755007265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, '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 = 29362407 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': 4212692, 'mtr_portfolio_id': 29362407, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 33), 'result': '0.03598098129173726', 'result_long': None, 'result_double': None}] Qualite : 0.03598098129173726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362407 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_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}" where mtr_portfolio_id = 29362407 and dashboard_run_id = 2738529 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`=29362407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332705, 0.03598098129173726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, '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 = 29362854 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': 4212774, 'mtr_portfolio_id': 29362854, 'created_at': datetime.datetime(2025, 12, 12, 6, 32, 57), 'result': '0.06304396315216139', 'result_long': None, 'result_double': None}] Qualite : 0.06304396315216139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362854 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_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}" where mtr_portfolio_id = 29362854 and dashboard_run_id = 2738529 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`=29362854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332706, 0.06304396315216139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, '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 = 29363295 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': 4212843, 'mtr_portfolio_id': 29363295, 'created_at': datetime.datetime(2025, 12, 12, 6, 48, 58), 'result': '0.04653111445326504', 'result_long': None, 'result_double': None}] Qualite : 0.04653111445326504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363295 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_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}" where mtr_portfolio_id = 29363295 and dashboard_run_id = 2738529 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`=29363295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332707, 0.04653111445326504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, '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 = 29363773 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': 4212927, 'mtr_portfolio_id': 29363773, 'created_at': datetime.datetime(2025, 12, 12, 7, 2, 59), 'result': '0.042970748644587525', 'result_long': None, 'result_double': None}] Qualite : 0.042970748644587525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363773 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_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}" where mtr_portfolio_id = 29363773 and dashboard_run_id = 2738529 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`=29363773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332708, 0.042970748644587525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, '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 = 29364180 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': 4213002, 'mtr_portfolio_id': 29364180, 'created_at': datetime.datetime(2025, 12, 12, 7, 16, 58), 'result': '0.06843666708083897', 'result_long': None, 'result_double': None}] Qualite : 0.06843666708083897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29364180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29364180 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_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}" where mtr_portfolio_id = 29364180 and dashboard_run_id = 2738529 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`=29364180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332709, 0.06843666708083897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, '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 = 29364786 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': 4213081, 'mtr_portfolio_id': 29364786, 'created_at': datetime.datetime(2025, 12, 12, 7, 34), 'result': '0.03678665364407766', 'result_long': None, 'result_double': None}] Qualite : 0.03678665364407766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29364786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29364786 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_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, 'pht': 3726}}" where mtr_portfolio_id = 29364786 and dashboard_run_id = 2738529 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`=29364786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332710, 0.03678665364407766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, '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 = 29365262 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': 4213145, 'mtr_portfolio_id': 29365262, 'created_at': datetime.datetime(2025, 12, 12, 7, 47, 28), 'result': '0.04932722121798659', 'result_long': None, 'result_double': None}] Qualite : 0.04932722121798659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29365262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29365262 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_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, 'pht': 3726}}" where mtr_portfolio_id = 29365262 and dashboard_run_id = 2738529 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`=29365262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332711, 0.04932722121798659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, '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 = 29365724 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': 4213223, 'mtr_portfolio_id': 29365724, 'created_at': datetime.datetime(2025, 12, 12, 8, 5, 29), 'result': '0.05162450864096052', 'result_long': None, 'result_double': None}] Qualite : 0.05162450864096052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29365724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29365724 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_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, 'pht': 3726}}" where mtr_portfolio_id = 29365724 and dashboard_run_id = 2738529 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`=29365724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332712, 0.05162450864096052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, '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 = 29366368 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': 4213341, 'mtr_portfolio_id': 29366368, 'created_at': datetime.datetime(2025, 12, 12, 9, 45, 58), 'result': '0.05825818152528428', 'result_long': None, 'result_double': None}] Qualite : 0.05825818152528428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29366368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29366368 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_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, 'pht': 3726}}" where mtr_portfolio_id = 29366368 and dashboard_run_id = 2738529 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`=29366368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332713, 0.05825818152528428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, '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 = 29366602 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': 4213428, 'mtr_portfolio_id': 29366602, 'created_at': datetime.datetime(2025, 12, 12, 8, 34, 58), 'result': '0.037908967872370296', 'result_long': None, 'result_double': None}] Qualite : 0.037908967872370296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29366602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29366602 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_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, 'pht': 3726}}" where mtr_portfolio_id = 29366602 and dashboard_run_id = 2738529 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`=29366602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332714, 0.037908967872370296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, '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 = 29367216 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': 4213540, 'mtr_portfolio_id': 29367216, 'created_at': datetime.datetime(2025, 12, 12, 10, 15, 58), 'result': '0.05388012724944896', 'result_long': None, 'result_double': None}] Qualite : 0.05388012724944896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29367216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29367216 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_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, 'pht': 3726}}" where mtr_portfolio_id = 29367216 and dashboard_run_id = 2738529 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`=29367216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332715, 0.05388012724944896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, '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 = 29367911 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': 4213625, 'mtr_portfolio_id': 29367911, 'created_at': datetime.datetime(2025, 12, 12, 9, 5), 'result': '0.042402543049227796', 'result_long': None, 'result_double': None}] Qualite : 0.042402543049227796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29367911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29367911 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_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, 'pht': 3726}}" where mtr_portfolio_id = 29367911 and dashboard_run_id = 2738529 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`=29367911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332716, 0.042402543049227796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, '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 = 29369385 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': 4213848, 'mtr_portfolio_id': 29369385, 'created_at': datetime.datetime(2025, 12, 12, 9, 49), 'result': '0.0385590613226671', 'result_long': None, 'result_double': None}] Qualite : 0.0385590613226671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29369385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29369385 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_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, 'pht': 3726}}" where mtr_portfolio_id = 29369385 and dashboard_run_id = 2738529 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`=29369385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332717, 0.0385590613226671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, '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 = 29369990 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': 4213937, 'mtr_portfolio_id': 29369990, 'created_at': datetime.datetime(2025, 12, 12, 10, 2, 58), 'result': '0.0429118853872437', 'result_long': None, 'result_double': None}] Qualite : 0.0429118853872437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29369990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29369990 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_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, 'pht': 3726}}" where mtr_portfolio_id = 29369990 and dashboard_run_id = 2738529 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`=29369990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332718, 0.0429118853872437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, '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 = 29370446 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': 4214023, 'mtr_portfolio_id': 29370446, 'created_at': datetime.datetime(2025, 12, 12, 10, 18, 59), 'result': '0.06737207834119728', 'result_long': None, 'result_double': None}] Qualite : 0.06737207834119728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29370446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29370446 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_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, 'pht': 3726}}" where mtr_portfolio_id = 29370446 and dashboard_run_id = 2738529 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`=29370446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332719, 0.06737207834119728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, '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 = 29370838 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': 4214113, 'mtr_portfolio_id': 29370838, 'created_at': datetime.datetime(2025, 12, 12, 11, 46), 'result': '0.042436501863749955', 'result_long': None, 'result_double': None}] Qualite : 0.042436501863749955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29370838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_11_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29370838 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_P29370838_12-12-2025_11_46_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, 'pht': 3726}}" where mtr_portfolio_id = 29370838 and dashboard_run_id = 2738529 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`=29370838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332720, 0.042436501863749955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_11_46_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, '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 = 29371214 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': 4214180, 'mtr_portfolio_id': 29371214, 'created_at': datetime.datetime(2025, 12, 12, 10, 48, 58), 'result': '0.05434890749502305', 'result_long': None, 'result_double': None}] Qualite : 0.05434890749502305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29371214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29371214 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_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, 'pht': 3726}}" where mtr_portfolio_id = 29371214 and dashboard_run_id = 2738529 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`=29371214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332721, 0.05434890749502305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, '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 = 29371672 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': 4214269, 'mtr_portfolio_id': 29371672, 'created_at': datetime.datetime(2025, 12, 12, 11, 2, 59), 'result': '0.040953628451014475', 'result_long': None, 'result_double': None}] Qualite : 0.040953628451014475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29371672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29371672 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_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, 'pht': 3726}}" where mtr_portfolio_id = 29371672 and dashboard_run_id = 2738529 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`=29371672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332722, 0.040953628451014475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, '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 = 29372129 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': 4214393, 'mtr_portfolio_id': 29372129, 'created_at': datetime.datetime(2025, 12, 12, 11, 18, 59), 'result': '0.055977595132677756', 'result_long': None, 'result_double': None}] Qualite : 0.055977595132677756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29372129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29372129 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_P29372129_12-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, 'pht': 3726}}" where mtr_portfolio_id = 29372129 and dashboard_run_id = 2738529 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`=29372129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332723, 0.055977595132677756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, '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 = 29372543 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': 4214483, 'mtr_portfolio_id': 29372543, 'created_at': datetime.datetime(2025, 12, 12, 11, 32, 58), 'result': '0.06448349152766777', 'result_long': None, 'result_double': None}] Qualite : 0.06448349152766777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29372543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372543_12-12-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29372543 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_P29372543_12-12-2025_11_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372604, 'pht': 3726}}" where mtr_portfolio_id = 29372543 and dashboard_run_id = 2738529 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`=29372543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332724, 0.06448349152766777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372543_12-12-2025_11_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372604, '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 = 29373212 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': 4214571, 'mtr_portfolio_id': 29373212, 'created_at': datetime.datetime(2025, 12, 12, 11, 49), 'result': '0.05618618445539988', 'result_long': None, 'result_double': None}] Qualite : 0.05618618445539988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29373212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373212_12-12-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29373212 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_P29373212_12-12-2025_11_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373259, 'pht': 3726}}" where mtr_portfolio_id = 29373212 and dashboard_run_id = 2738529 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`=29373212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332725, 0.05618618445539988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373212_12-12-2025_11_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373259, '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 = 29373878 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': 4214678, 'mtr_portfolio_id': 29373878, 'created_at': datetime.datetime(2025, 12, 12, 12, 3), 'result': '0.05900566846151924', 'result_long': None, 'result_double': None}] Qualite : 0.05900566846151924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29373878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373878_12-12-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29373878 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_P29373878_12-12-2025_12_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373950, 'pht': 3726}}" where mtr_portfolio_id = 29373878 and dashboard_run_id = 2738529 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`=29373878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332726, 0.05900566846151924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373878_12-12-2025_12_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373950, '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 = 29374651 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': 4214763, 'mtr_portfolio_id': 29374651, 'created_at': datetime.datetime(2025, 12, 12, 12, 26, 59), 'result': '0.045185960387545326', 'result_long': None, 'result_double': None}] Qualite : 0.045185960387545326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29374651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29374651_12-12-2025_12_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29374651 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_P29374651_12-12-2025_12_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29374686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29374687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29374688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29374689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29374691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29374692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29374693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29374694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29374695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29374696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29374697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29374698, 'pht': 3726}}" where mtr_portfolio_id = 29374651 and dashboard_run_id = 2738529 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`=29374651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332727, 0.045185960387545326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29374651_12-12-2025_12_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29374686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29374687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29374688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29374689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29374691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29374692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29374693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29374694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29374695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29374696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29374697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29374698, '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 = 29377140 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': 4215018, 'mtr_portfolio_id': 29377140, 'created_at': datetime.datetime(2025, 12, 12, 13, 49, 1), 'result': '0.05456903745241976', 'result_long': None, 'result_double': None}] Qualite : 0.05456903745241976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29377140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377140_12-12-2025_13_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29377140 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_P29377140_12-12-2025_13_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29377141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377152, 'pht': 3726}}" where mtr_portfolio_id = 29377140 and dashboard_run_id = 2738529 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`=29377140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332728, 0.05456903745241976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377140_12-12-2025_13_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29377141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377152, '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 = 29377556 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': 4215057, 'mtr_portfolio_id': 29377556, 'created_at': datetime.datetime(2025, 12, 12, 14, 2, 59), 'result': '0.04451009859397317', 'result_long': None, 'result_double': None}] Qualite : 0.04451009859397317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29377556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377556_12-12-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29377556 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_P29377556_12-12-2025_14_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377571, 'pht': 3726}}" where mtr_portfolio_id = 29377556 and dashboard_run_id = 2738529 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`=29377556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332729, 0.04451009859397317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377556_12-12-2025_14_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377571, '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 = 29377785 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': 4215104, 'mtr_portfolio_id': 29377785, 'created_at': datetime.datetime(2025, 12, 12, 14, 16, 58), 'result': '0.033130042127026416', 'result_long': None, 'result_double': None}] Qualite : 0.033130042127026416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29377785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377785_12-12-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29377785 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_P29377785_12-12-2025_14_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377812, 'pht': 3726}}" where mtr_portfolio_id = 29377785 and dashboard_run_id = 2738529 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`=29377785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332730, 0.033130042127026416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377785_12-12-2025_14_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377812, '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 = 29378344 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': 4215169, 'mtr_portfolio_id': 29378344, 'created_at': datetime.datetime(2025, 12, 12, 14, 32, 57), 'result': '0.04266367813159421', 'result_long': None, 'result_double': None}] Qualite : 0.04266367813159421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29378344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378344_12-12-2025_14_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29378344 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_P29378344_12-12-2025_14_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29378356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378363, 'pht': 3726}}" where mtr_portfolio_id = 29378344 and dashboard_run_id = 2738529 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`=29378344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332731, 0.04266367813159421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378344_12-12-2025_14_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29378356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378363, '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 = 29378900 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': 4215249, 'mtr_portfolio_id': 29378900, 'created_at': datetime.datetime(2025, 12, 12, 14, 46, 58), 'result': '0.06394208308382847', 'result_long': None, 'result_double': None}] Qualite : 0.06394208308382847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29378900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378900_12-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29378900 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_P29378900_12-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29378916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378927, 'pht': 3726}}" where mtr_portfolio_id = 29378900 and dashboard_run_id = 2738529 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`=29378900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332732, 0.06394208308382847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378900_12-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29378916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378927, '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 = 29379334 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': 4215303, 'mtr_portfolio_id': 29379334, 'created_at': datetime.datetime(2025, 12, 12, 15, 2, 59), 'result': '0.06362848861400411', 'result_long': None, 'result_double': None}] Qualite : 0.06362848861400411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29379334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379334_12-12-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29379334 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_P29379334_12-12-2025_15_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379348, 'pht': 3726}}" where mtr_portfolio_id = 29379334 and dashboard_run_id = 2738529 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`=29379334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332733, 0.06362848861400411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379334_12-12-2025_15_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379348, '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 = 29379624 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': 4215348, 'mtr_portfolio_id': 29379624, 'created_at': datetime.datetime(2025, 12, 12, 15, 16, 58), 'result': '0.044355183493345905', 'result_long': None, 'result_double': None}] Qualite : 0.044355183493345905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29379624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379624_12-12-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29379624 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_P29379624_12-12-2025_15_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379650, 'pht': 3726}}" where mtr_portfolio_id = 29379624 and dashboard_run_id = 2738529 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`=29379624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332734, 0.044355183493345905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379624_12-12-2025_15_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379650, '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 = 29380128 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': 4215399, 'mtr_portfolio_id': 29380128, 'created_at': datetime.datetime(2025, 12, 12, 15, 33, 31), 'result': '0.07031489799121347', 'result_long': None, 'result_double': None}] Qualite : 0.07031489799121347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29380128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29380128 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_P29380128_12-12-2025_15_33_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29380140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29380151, 'pht': 3726}}" where mtr_portfolio_id = 29380128 and dashboard_run_id = 2738529 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`=29380128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332735, 0.07031489799121347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_33_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29380140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29380151, '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 = 29380559 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': 4215497, 'mtr_portfolio_id': 29380559, 'created_at': datetime.datetime(2025, 12, 12, 15, 48, 59), 'result': '0.06221745900048822', 'result_long': None, 'result_double': None}] Qualite : 0.06221745900048822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29380559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380559_12-12-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29380559 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_P29380559_12-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29380568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29380572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380579, 'pht': 3726}}" where mtr_portfolio_id = 29380559 and dashboard_run_id = 2738529 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`=29380559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332736, 0.06221745900048822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380559_12-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29380568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29380572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380579, '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 = 29381059 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': 4215560, 'mtr_portfolio_id': 29381059, 'created_at': datetime.datetime(2025, 12, 12, 16, 2, 59), 'result': '0.05258895696608088', 'result_long': None, 'result_double': None}] Qualite : 0.05258895696608088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29381059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29381059_12-12-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29381059 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_P29381059_12-12-2025_16_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29381068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29381069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29381070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29381071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29381072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29381073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29381074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29381075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29381076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29381077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29381078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29381079, 'pht': 3726}}" where mtr_portfolio_id = 29381059 and dashboard_run_id = 2738529 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`=29381059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332737, 0.05258895696608088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29381059_12-12-2025_16_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29381068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29381069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29381070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29381071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29381072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29381073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29381074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29381075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29381076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29381077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29381078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29381079, '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 = 29381436 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': 4215663, 'mtr_portfolio_id': 29381436, 'created_at': datetime.datetime(2025, 12, 12, 16, 37), 'result': '0.038713147643138', 'result_long': None, 'result_double': None}] Qualite : 0.038713147643138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29381436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29381436_12-12-2025_16_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29381436 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_P29381436_12-12-2025_16_37_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29381478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29381479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29381480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29381481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29381482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29381483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29381484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29381485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29381486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29381487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29381488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29381489, 'pht': 3726}}" where mtr_portfolio_id = 29381436 and dashboard_run_id = 2738529 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`=29381436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332738, 0.038713147643138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29381436_12-12-2025_16_37_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29381478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29381479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29381480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29381481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29381482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29381483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29381484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29381485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29381486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29381487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29381488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29381489, '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 = 29382417 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': 4215804, 'mtr_portfolio_id': 29382417, 'created_at': datetime.datetime(2025, 12, 12, 17, 8, 58), 'result': '0.07110940852744042', 'result_long': None, 'result_double': None}] Qualite : 0.07110940852744042 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29382417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29382417_12-12-2025_17_08_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29382417 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_P29382417_12-12-2025_17_08_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382431, 'pht': 3726}}" where mtr_portfolio_id = 29382417 and dashboard_run_id = 2738529 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`=29382417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332739, 0.07110940852744042, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29382417_12-12-2025_17_08_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382431, '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 = 29382677 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': 4215842, 'mtr_portfolio_id': 29382677, 'created_at': datetime.datetime(2025, 12, 12, 17, 16, 58), 'result': '0.08509281783926571', 'result_long': None, 'result_double': None}] Qualite : 0.08509281783926571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29382677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29382677_12-12-2025_17_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29382677 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_P29382677_12-12-2025_17_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382692, 'pht': 3726}}" where mtr_portfolio_id = 29382677 and dashboard_run_id = 2738529 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`=29382677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332740, 0.08509281783926571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29382677_12-12-2025_17_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382692, '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 = 29382919 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': 4215862, 'mtr_portfolio_id': 29382919, 'created_at': datetime.datetime(2025, 12, 12, 18, 2, 57), 'result': '0.051487951677037076', 'result_long': None, 'result_double': None}] Qualite : 0.051487951677037076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29382919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29382919_12-12-2025_18_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29382919 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_P29382919_12-12-2025_18_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382931, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382946, 'pht': 3726}}" where mtr_portfolio_id = 29382919 and dashboard_run_id = 2738529 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`=29382919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332741, 0.051487951677037076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29382919_12-12-2025_18_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29382931, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29382933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29382934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29382936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29382937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29382938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29382940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29382941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29382942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29382944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29382945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29382946, '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 = 29383504 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': 4215976, 'mtr_portfolio_id': 29383504, 'created_at': datetime.datetime(2025, 12, 12, 18, 19), 'result': '0.04301439551167163', 'result_long': None, 'result_double': None}] Qualite : 0.04301439551167163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29383504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29383504_12-12-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29383504 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_P29383504_12-12-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29383511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29383512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29383513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29383514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29383515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29383516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29383517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29383518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29383519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29383520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29383521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29383522, 'pht': 3726}}" where mtr_portfolio_id = 29383504 and dashboard_run_id = 2738529 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`=29383504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332742, 0.04301439551167163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29383504_12-12-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29383511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29383512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29383513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29383514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29383515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29383516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29383517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29383518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29383519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29383520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29383521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29383522, '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 = 29384031 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': 4216026, 'mtr_portfolio_id': 29384031, 'created_at': datetime.datetime(2025, 12, 12, 18, 32, 59), 'result': '0.044918099922364035', 'result_long': None, 'result_double': None}] Qualite : 0.044918099922364035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29384031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29384031_12-12-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29384031 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_P29384031_12-12-2025_18_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29384050, 'pht': 3726}}" where mtr_portfolio_id = 29384031 and dashboard_run_id = 2738529 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`=29384031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332743, 0.044918099922364035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29384031_12-12-2025_18_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29384050, '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 = 29384459 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': 4216091, 'mtr_portfolio_id': 29384459, 'created_at': datetime.datetime(2025, 12, 12, 18, 49, 32), 'result': '0.03882605182235987', 'result_long': None, 'result_double': None}] Qualite : 0.03882605182235987 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29384459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29384459_12-12-2025_18_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29384459 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_P29384459_12-12-2025_18_49_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29384473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384484, 'pht': 3726}}" where mtr_portfolio_id = 29384459 and dashboard_run_id = 2738529 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`=29384459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332744, 0.03882605182235987, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29384459_12-12-2025_18_49_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29384473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384484, '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 = 29384932 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': 4216177, 'mtr_portfolio_id': 29384932, 'created_at': datetime.datetime(2025, 12, 12, 19, 3), 'result': '0.03594540798982592', 'result_long': None, 'result_double': None}] Qualite : 0.03594540798982592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29384932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29384932_12-12-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29384932 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_P29384932_12-12-2025_19_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29384939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384944, 'pht': 3726}}" where mtr_portfolio_id = 29384932 and dashboard_run_id = 2738529 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`=29384932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332745, 0.03594540798982592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29384932_12-12-2025_19_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29384933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29384934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29384935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29384936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29384937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29384938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29384939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29384940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29384941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29384942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29384943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29384944, '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 = 29385363 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': 4216254, 'mtr_portfolio_id': 29385363, 'created_at': datetime.datetime(2025, 12, 12, 19, 16, 59), 'result': '0.030408965029139326', 'result_long': None, 'result_double': None}] Qualite : 0.030408965029139326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29385363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29385363_12-12-2025_19_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29385363 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_P29385363_12-12-2025_19_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29385380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29385382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29385383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29385384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29385385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29385386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29385387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29385388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29385389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29385390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29385392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29385393, 'pht': 3726}}" where mtr_portfolio_id = 29385363 and dashboard_run_id = 2738529 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`=29385363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332746, 0.030408965029139326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29385363_12-12-2025_19_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29385380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29385382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29385383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29385384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29385385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29385386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29385387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29385388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29385389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29385390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29385392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29385393, '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 = 29386070 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': 4216351, 'mtr_portfolio_id': 29386070, 'created_at': datetime.datetime(2025, 12, 12, 19, 32, 58), 'result': '0.05010470356470441', 'result_long': None, 'result_double': None}] Qualite : 0.05010470356470441 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29386070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29386070_12-12-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29386070 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_P29386070_12-12-2025_19_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29386075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29386076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29386077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29386078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29386079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29386080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29386081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29386082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29386083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29386084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29386085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29386086, 'pht': 3726}}" where mtr_portfolio_id = 29386070 and dashboard_run_id = 2738529 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`=29386070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332747, 0.05010470356470441, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29386070_12-12-2025_19_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29386075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29386076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29386077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29386078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29386079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29386080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29386081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29386082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29386083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29386084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29386085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29386086, '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 = 29386542 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': 4216423, 'mtr_portfolio_id': 29386542, 'created_at': datetime.datetime(2025, 12, 12, 19, 47), 'result': '0.056922700273905315', 'result_long': None, 'result_double': None}] Qualite : 0.056922700273905315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29386542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29386542_12-12-2025_19_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29386542 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_P29386542_12-12-2025_19_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29386561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29386562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29386563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29386564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29386565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29386566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29386567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29386568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29386569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29386570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29386571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29386572, 'pht': 3726}}" where mtr_portfolio_id = 29386542 and dashboard_run_id = 2738529 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`=29386542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332748, 0.056922700273905315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29386542_12-12-2025_19_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29386561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29386562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29386563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29386564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29386565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29386566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29386567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29386568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29386569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29386570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29386571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29386572, '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 = 29387002 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': 4216482, 'mtr_portfolio_id': 29387002, 'created_at': datetime.datetime(2025, 12, 12, 20, 4, 59), 'result': '0.0303499440488534', 'result_long': None, 'result_double': None}] Qualite : 0.0303499440488534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29387002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29387002_12-12-2025_20_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29387002 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_P29387002_12-12-2025_20_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29387034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387039, 'pht': 3726}}" where mtr_portfolio_id = 29387002 and dashboard_run_id = 2738529 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`=29387002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332749, 0.0303499440488534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29387002_12-12-2025_20_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29387034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387039, '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 = 29387422 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': 4216565, 'mtr_portfolio_id': 29387422, 'created_at': datetime.datetime(2025, 12, 12, 20, 17), 'result': '0.05255280852897725', 'result_long': None, 'result_double': None}] Qualite : 0.05255280852897725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29387422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29387422_12-12-2025_20_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29387422 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_P29387422_12-12-2025_20_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29387452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387463, 'pht': 3726}}" where mtr_portfolio_id = 29387422 and dashboard_run_id = 2738529 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`=29387422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332750, 0.05255280852897725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29387422_12-12-2025_20_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29387452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387463, '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 = 29387928 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': 4216628, 'mtr_portfolio_id': 29387928, 'created_at': datetime.datetime(2025, 12, 12, 20, 33, 32), 'result': '0.050100654120902754', 'result_long': None, 'result_double': None}] Qualite : 0.050100654120902754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29387928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29387928_12-12-2025_20_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29387928 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_P29387928_12-12-2025_20_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29387942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387947, 'pht': 3726}}" where mtr_portfolio_id = 29387928 and dashboard_run_id = 2738529 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`=29387928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332751, 0.050100654120902754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29387928_12-12-2025_20_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29387936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29387937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29387938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29387939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29387940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29387941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29387942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29387943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29387944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29387945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29387946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29387947, '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 = 29388477 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': 4216710, 'mtr_portfolio_id': 29388477, 'created_at': datetime.datetime(2025, 12, 12, 20, 48, 59), 'result': '0.059019383918045246', 'result_long': None, 'result_double': None}] Qualite : 0.059019383918045246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29388477 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29388477_12-12-2025_20_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29388477 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_P29388477_12-12-2025_20_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29388483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29388484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29388485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29388486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29388487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29388488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29388489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29388490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29388491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29388492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29388493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29388494, 'pht': 3726}}" where mtr_portfolio_id = 29388477 and dashboard_run_id = 2738529 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`=29388477 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332752, 0.059019383918045246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29388477_12-12-2025_20_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29388483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29388484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29388485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29388486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29388487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29388488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29388489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29388490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29388491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29388492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29388493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29388494, '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 = 29389201 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': 4216828, 'mtr_portfolio_id': 29389201, 'created_at': datetime.datetime(2025, 12, 12, 21, 16, 58), 'result': '0.04169894443912525', 'result_long': None, 'result_double': None}] Qualite : 0.04169894443912525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29389201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29389201_12-12-2025_21_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29389201 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_P29389201_12-12-2025_21_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29389209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389213, 'pht': 3726}}" where mtr_portfolio_id = 29389201 and dashboard_run_id = 2738529 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`=29389201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332753, 0.04169894443912525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29389201_12-12-2025_21_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29389209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389213, '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 = 29389375 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': 4216853, 'mtr_portfolio_id': 29389375, 'created_at': datetime.datetime(2025, 12, 12, 21, 37, 2), 'result': '0.04207083090323906', 'result_long': None, 'result_double': None}] Qualite : 0.04207083090323906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29389375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29389375_12-12-2025_21_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29389375 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_P29389375_12-12-2025_21_37_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29389391, 'pht': 3726}}" where mtr_portfolio_id = 29389375 and dashboard_run_id = 2738531 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`=29389375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332754, 0.04207083090323906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29389375_12-12-2025_21_37_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29389391, '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 = 29389867 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': 4216913, 'mtr_portfolio_id': 29389867, 'created_at': datetime.datetime(2025, 12, 12, 21, 46, 58), 'result': '0.029194930820146594', 'result_long': None, 'result_double': None}] Qualite : 0.029194930820146594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29389867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29389867_12-12-2025_21_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29389867 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_P29389867_12-12-2025_21_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29389869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389880, 'pht': 3726}}" where mtr_portfolio_id = 29389867 and dashboard_run_id = 2738531 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`=29389867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332755, 0.029194930820146594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29389867_12-12-2025_21_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29389869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29389870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29389871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29389872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29389873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29389874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29389875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29389876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29389877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29389878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29389879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29389880, '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 = 29390079 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': 4216941, 'mtr_portfolio_id': 29390079, 'created_at': datetime.datetime(2025, 12, 12, 22, 2, 58), 'result': '0.051056131353316846', 'result_long': None, 'result_double': None}] Qualite : 0.051056131353316846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29390079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29390079_12-12-2025_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29390079 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_P29390079_12-12-2025_22_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29390085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29390086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29390087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29390088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29390089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29390090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29390091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29390092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29390093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29390094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29390095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29390096, 'pht': 3726}}" where mtr_portfolio_id = 29390079 and dashboard_run_id = 2738531 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`=29390079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332756, 0.051056131353316846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29390079_12-12-2025_22_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29390085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29390086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29390087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29390088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29390089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29390090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29390091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29390092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29390093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29390094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29390095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29390096, '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 = 29390568 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': 4217054, 'mtr_portfolio_id': 29390568, 'created_at': datetime.datetime(2025, 12, 12, 22, 10, 59), 'result': '0.024705779435958926', 'result_long': None, 'result_double': None}] Qualite : 0.024705779435958926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29390568 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29390568_12-12-2025_22_10_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29390568 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_P29390568_12-12-2025_22_10_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29390580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29390581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29390582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29390583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29390584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29390585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29390586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29390587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29390588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29390589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29390590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29390591, 'pht': 3726}}" where mtr_portfolio_id = 29390568 and dashboard_run_id = 2738531 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`=29390568 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18332757, 0.024705779435958926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29390568_12-12-2025_22_10_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29390580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29390581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29390582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29390583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29390584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29390585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29390586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29390587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29390588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29390589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29390590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29390591, '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 (29353967,29354414,29354703,29355153,29356369,29356788,29357162,29357697,29358082,29358557,29358933,29359035,29359405,29359799,29360191,29361267,29361419,29361719,29362085,29362407,29362854,29363295,29363773,29364180,29364786,29365262,29365724,29366368,29366602,29367216,29367911,29369385,29369990,29370446,29370838,29371214,29371672,29372129,29372543,29373212,29373878,29374651,29377140,29377556,29377785,29378344,29378900,29379334,29379624,29380128,29380559,29381059,29381436,29382417,29382677,29382919,29383504,29384031,29384459,29384932,29385363,29386070,29386542,29387002,29387422,29387928,29388477,29389201,29389375,29389867,29390079,29390568) result : ((1398955948,), (1398955951,), (1398955953,), (1398955955,), (1398955958,), (1398956174,), (1398956207,), (1398956248,), (1398956287,), (1398956299,), (1398956413,), (1398956414,), (1398956417,), (1398956419,), (1398956458,), (1398956462,), (1398956499,), (1398956502,), (1398956535,), (1398956537,), (1398956569,), (1398956573,), (1398956728,), (1398956766,), (1398956802,), (1398956837,), (1398956876,), (1398957235,), (1398957280,), (1398957314,), (1398957359,), (1398957581,), (1398957616,), (1398957651,), (1398957685,), (1398958081,), (1398958115,), (1398958178,), (1398958243,), (1398959056,), (1398959095,), (1398959129,), (1398959259,), (1398959260,), (1398959262,), (1398959263,), (1398959265,), (1398959499,), (1398959536,), (1398959576,), (1398959611,), (1398959646,), (1398959782,), (1398959784,), (1398959786,), (1398959788,), (1398959791,), (1398959815,), (1398959816,), (1398959817,), (1398959827,), (1398959828,), (1398959831,), (1398959836,), (1398959839,), (1398959850,), (1398959852,), (1398959854,), (1398959861,), (1398959868,), (1398959881,), (1398959918,), (1398959934,), (1398959936,), (1398959938,), (1398959940,), (1398959977,), (1398959980,), (1398959981,), (1398959982,), (1398959985,), (1398959995,), (1398959997,), (1398959999,), (1398960001,), (1398960232,), (1398960233,), (1398960234,), (1398960235,), (1398960248,), (1398960251,), (1398960254,), (1398960294,), (1398960337,), (1398960370,), (1398960409,), (1398960553,), (1398960556,), (1398960559,), (1398960563,), (1398960567,), (1398960571,), (1398960586,), (1398960587,), (1398960588,), (1398960589,), (1398960602,), (1398960604,), (1398960606,), (1398960608,), (1398960610,), (1398960612,), (1398960633,), (1398960634,), (1398960658,), (1398960695,), (1398960731,), (1398960771,), (1398960890,), (1398960924,), (1398961059,), (1398961510,), (1398961576,), (1398961611,), (1398961646,), (1398961900,), (1398961928,), (1398961997,), (1398961999,), (1398962015,), (1398961988,), (1398961990,), (1398961992,), (1398961994,), (1398962137,), (1398962172,), (1398962214,), (1398962250,), (1398962686,), (1398962758,), (1398962830,), (1398962906,), (1398962974,), (1398963510,), (1398963549,), (1398963586,), (1398964022,), (1398964056,), (1398964088,), (1398964125,), (1398964158,), (1398964196,), (1398964464,), (1398964629,), (1398964667,), (1398964710,), (1398964773,), (1398964798,), (1398964894,), (1398964896,), (1398964899,), (1398964924,), (1398964926,), (1398964928,), (1398964935,), (1398964941,), (1398964957,), (1398964959,), (1398964962,), (1398964966,), (1398964969,), (1398965265,), (1398965301,), (1398965339,), (1398965998,), (1398966065,), (1398966129,), (1398966191,), (1398966866,), (1398966869,), (1398966871,), (1398966873,), (1398966876,), (1398966879,), (1398967116,), (1398967151,), (1398967185,), (1398967251,), (1398967556,), (1398967558,), (1398967560,), (1398967562,), (1398967656,), (1398967659,), (1398967660,), (1398967663,), (1398967666,), (1398967669,), (1398967684,), (1398967673,), (1398967675,), (1398967677,), (1398967679,), (1398967681,), (1398968022,), (1398968059,), (1398968096,), (1398968132,), (1398968424,), (1398968425,), (1398968426,), (1398968427,), (1398968612,), (1398968647,), (1398968661,), (1398968663,), (1398968686,), (1398968689,), (1398968730,), (1398968734,), (1398968736,), (1398968949,), (1398968984,), (1398969018,), (1398969066,), (1398969102,), (1398969138,), (1398969480,), (1398969516,), (1398969553,), (1398969588,), (1398969628,), (1398969666,), (1398969784,), (1398969786,), (1398969787,), (1398969987,), (1398970023,), (1398970061,), (1398970095,), (1398970108,), (1398970111,), (1398970231,), (1398970232,), (1398970234,), (1398970236,), (1398970239,), (1398970242,), (1398970252,), (1398970253,), (1398970254,), (1398970268,), (1398970270,), (1398970272,), (1398970274,), (1398970277,), (1398970281,), (1398970290,), (1398970292,), (1398970294,), (1398970296,), (1398970299,), (1398970342,), (1398970344,), (1398970346,), (1398970349,), (1398971710,), (1398975733,), (1398975742,), (1398975770,), (1398975798,), (1398975799,), (1398975800,), (1398975801,), (1398975804,), (1398975817,), (1398975819,), (1398975830,), (1398975835,), (1398975840,), (1398975842,), (1398975845,), (1398975855,), (1398975857,), (1398975858,), (1398975875,), (1398975911,), (1398976270,), (1398976306,), (1398976341,), (1398976749,), (1398976750,), (1398976751,), (1398976752,), (1398976755,), (1398976954,), (1398976962,), (1398976983,), (1398977016,), (1398977041,), (1398977080,), (1398977082,), (1398977085,), (1398977088,), (1398977106,), (1398977108,), (1398977110,), (1398977111,), (1398977113,), (1398977123,), (1398977124,), (1398977126,), (1398977128,), (1398977131,), (1398977133,), (1398977150,), (1398977153,), (1398977160,), (1398977162,), (1398977486,), (1398977521,), (1398977551,), (1398977585,), (1398977620,), (1398977856,), (1398977858,), (1398977890,), (1398977928,), (1398977965,), (1398978183,), (1398978218,), (1398978251,), (1398978290,), (1398978326,), (1398978363,), (1398978734,), (1398978671,), (1398978704,), (1398979122,), (1398979124,), (1398979126,), (1398979128,), (1398979131,), (1398979134,), (1398979311,), (1398979343,), (1398979350,), (1398979352,), (1398979376,), (1398979435,), (1398979442,), (1398979446,), (1398979468,), (1398979469,), (1398979470,), (1398979471,), (1398979473,), (1398979487,), (1398979490,), (1398979492,), (1398979494,), (1398979497,), (1398979501,), (1398979508,), (1398979514,), (1398979523,), (1398979526,), (1398979527,), (1398979534,), (1398979536,), (1398979539,), (1398979540,), (1398979541,), (1398979542,), (1398979554,), (1398979556,), (1398979557,), (1398979560,), (1398979568,), (1398979580,), (1398979582,), (1398979584,), (1398979586,), (1398979604,), (1398979605,), (1398979606,), (1398979620,), (1398979622,), (1398979624,), (1398979626,), (1398979637,), (1398979642,), (1398979644,), (1398979662,), (1398979665,), (1398979668,), (1398979671,), (1398979672,), (1398979674,), (1398979691,), (1398979684,), (1398979687,), (1398979689,), (1398979704,), (1398979705,), (1398979706,), (1398979707,), (1398979709,), (1398979712,), (1398979719,), (1398979741,), (1398979775,), (1398979808,), (1398980178,), (1398980212,), (1398980236,), (1398980237,), (1398980240,), (1398980627,), (1398980689,), (1398980723,), (1398980764,), (1398981148,), (1398981149,), (1398981150,), (1398981183,), (1398981218,), (1398981253,), (1398981573,), (1398981608,), (1398981642,), (1398981681,), (1398981749,), (1398981810,), (1398981986,), (1398981998,), (1398982000,), (1398982003,), (1398982011,), (1398982013,), (1398982015,), (1398982017,), (1398982020,), (1398982022,), (1398982030,), (1398982034,), (1398982036,), (1398982037,), (1398982039,), (1398982050,), (1398982051,), (1398982052,), (1398982053,), (1398982072,), (1398982413,), (1398982448,), (1398982481,), (1398982516,), (1398982899,), (1398982943,), (1398982978,), (1398982980,), (1398982983,), (1398982986,), (1398983007,), (1398984295,), (1398984050,), (1398984628,), (1398984717,), (1398984727,), (1398984729,), (1398984731,), (1398984747,), (1398984748,), (1398984749,), (1398984750,), (1398984766,), (1398984768,), (1398984774,), (1398984783,), (1398984799,), (1398984800,), (1398984801,), (1398984802,), (1398984837,), (1398984839,), (1398984841,), (1398984843,), (1398984846,), (1398984855,), (1398984858,), (1398984861,), (1398984865,), (1398984867,), (1398984891,), (1398984892,), (1398984893,), (1398984894,), (1398984936,), (1398984937,), (1398984940,), (1398984941,), (1398984942,), (1398984943,), (1398984959,), (1398984960,), (1398984961,), (1398984962,), (1398984963,), (1398984964,), (1398984965,), (1398984966,), (1398984926,), (1398984927,), (1398984928,), (1398984929,), (1398984930,), (1398984931,), (1398984932,), (1398984933,), (1398984934,), (1398984935,), (1398984938,), (1398984939,), (1398984948,), (1398984950,), (1398984951,), (1398984952,), (1398984953,), (1398984954,), (1398984955,), (1398984956,), (1398984957,), (1398984958,), (1398984967,), (1398984968,), (1398984969,), (1398984970,), (1398984971,), (1398984972,), (1398984973,), (1398984974,), (1398984975,), (1398984976,), (1398984977,), (1398984978,), (1398984980,), (1398984981,), (1398984982,), (1398984983,), (1398984984,), (1398984995,), (1398984996,), (1398984997,), (1398984998,), (1398984999,), (1398985000,), (1398985001,), (1398985002,), (1398985003,), (1398985004,), (1398985015,), (1398985016,), (1398985017,), (1398985018,), (1398985019,), (1398985026,), (1398985027,), (1398985028,), (1398985029,), (1398985030,), (1398985037,), (1398985456,), (1398985466,), (1398985468,), (1398985470,), (1398985476,), (1398985477,), (1398985479,), (1398985481,), (1398985484,), (1398985487,), (1398985503,), (1398985504,), (1398985507,), (1398985510,), (1398985512,), (1398985517,), (1398985519,), (1398985111,), (1398985112,), (1398985113,), (1398985114,), (1398985115,), (1398985116,), (1398985117,), (1398985118,), (1398985120,), (1398985122,), (1398985124,), (1398985126,), (1398985129,), (1398985130,), (1398985131,), (1398985133,), (1398985135,), (1398985137,), (1398985149,), (1398985181,), (1398985213,), (1398985245,), (1398985279,), (1398985312,), (1398985390,), (1398985392,), (1398985395,), (1398985399,), (1398985402,), (1398985405,), (1398985410,), (1398985412,), (1398985415,), (1398985418,), (1398985421,), (1398985424,), (1398985427,), (1398985428,), (1398985431,), (1398985434,), (1398985438,), (1398985445,), (1398985450,), (1398985451,), (1398985688,), (1398985501,), (1398985679,), (1398985681,), (1398985683,), (1398985685,), (1398985703,), (1398985705,), (1398985706,), (1398985709,), (1398985712,), (1398985715,), (1398985727,), (1398985730,), (1398985732,), (1398985734,), (1398985736,), (1398985738,), (1398985744,), (1398985747,), (1398985748,), (1398985749,), (1398985751,), (1398985753,), (1398985755,), (1398985770,), (1398985772,), (1398985773,), (1398985774,), (1398985809,), (1398985797,), (1398985799,), (1398985801,), (1398985803,), (1398985806,), (1398985817,), (1398985818,), (1398985819,), (1398985820,), (1398985823,), (1398985826,), (1398985837,), (1398985839,), (1398985841,), (1398985844,), (1398985847,), (1398985849,), (1398985855,), (1398985856,), (1398985860,), (1398985864,), (1398985865,), (1398985866,), (1398985869,), (1398985872,), (1398985882,), (1398985884,), (1398985892,), (1398985900,), (1398985907,), (1398985919,), (1398985921,), (1398985925,), (1398985929,), (1398985966,), (1398985975,), (1398985979,), (1398985981,), (1398985983,), (1398985986,), (1398986001,), (1398986002,), (1398986004,), (1398986006,), (1398986021,), (1398986022,), (1398986023,), (1398986024,), (1398986026,), (1398986038,), (1398986040,), (1398986042,), (1398986044,), (1398986048,), (1398986051,), (1398986062,), (1398986064,), (1398986066,), (1398986068,), (1398986070,), (1398986091,), (1398986093,), (1398986095,), (1398986098,), (1398986101,), (1398986104,), (1398986134,), (1398986140,), (1398986142,), (1398986144,), (1398986147,), (1398986160,), (1398986161,), (1398986162,), (1398986163,), (1398986166,), (1398986187,), (1398986188,), (1398986191,), (1398986193,), (1398986196,), (1398986200,), (1398986218,), (1398986206,), (1398986212,), (1398986239,), (1398986241,), (1398986253,), (1398986261,), (1398986263,), (1398986265,), (1398986278,), (1398986279,), (1398986280,), (1398986281,), (1398986291,), (1398986294,), (1398986297,), (1398986318,), (1398986320,), (1398986321,), (1398986322,), (1398986324,), (1398986348,), (1398986352,), (1398986354,), (1398986356,), (1398986359,), (1398986365,), (1398986367,), (1398986369,), (1398986371,), (1398986386,), (1398986387,), (1398986388,), (1398986390,), (1398986393,), (1398986396,), (1398986405,), (1398986406,), (1398986414,), (1398986418,), (1398986423,), (1398986425,), (1398986429,), (1398986432,), (1398986436,), (1398986439,), (1398986445,), (1398986446,), (1398986447,), (1398986448,), (1398986463,), (1398986464,), (1398986466,), (1398986468,), (1398986471,), (1398986503,), (1398986507,), (1398986508,), (1398986509,), (1398986512,), (1398986524,), (1398986526,), (1398986528,), (1398986544,), (1398986546,), (1398986547,), (1398986548,), (1398986551,), (1398986553,), (1398986574,), (1398986581,), (1398986582,), (1398986584,), (1398986587,), (1398986590,), (1398986620,), (1398986616,), (1398986618,), (1398986619,), (1398986636,), (1398986640,), (1398986643,), (1398986647,), (1398986650,), (1398986652,), (1398986670,), (1398986671,), (1398986672,), (1398986673,), (1398986679,), (1398986681,), (1398986693,), (1398986695,), (1398986697,), (1398986726,), (1398986728,), (1398986730,), (1398986732,), (1398986735,), (1398986736,), (1398986750,), (1398986751,), (1398986752,), (1398986753,), (1398986756,), (1398986758,), (1398986774,), (1398986775,), (1398986777,), (1398986780,), (1398986783,), (1398986785,), (1398986795,), (1398986796,), (1398986799,), (1398986802,), (1398986804,), (1398986806,), (1398986812,), (1398986813,), (1398986815,), (1398986818,), (1398986821,), (1398986822,), (1398986834,), (1398986839,), (1398986842,), (1398986846,), (1398986854,), (1398986857,), (1398986867,), (1398986869,), (1398986890,), (1398986891,), (1398986899,), (1398986901,), (1398986903,), (1398986904,), (1398986909,), (1398986912,), (1398986914,), (1398986922,), (1398986924,), (1398986927,), (1398986930,), (1398986944,), (1398986947,), (1398986949,), (1398986965,), (1398986968,), (1398986971,), (1398986974,), (1398986976,), (1398987140,), (1398986991,), (1398987027,), (1398987063,), (1398987102,), (1398987562,), (1398987596,), (1398987632,), (1398987665,), (1398987732,), (1398987796,), (1398988690,), (1398988753,), (1398988816,), (1398989359,), (1398989391,), (1398989426,), (1398989461,), (1398989820,), (1398989821,), (1398989822,), (1398989857,), (1398989862,), (1398990176,), (1398990213,), (1398990216,), (1398990217,), (1398990344,), (1398990347,), (1398990350,), (1398990377,), (1398990413,), (1398990451,), (1398990589,), (1398990593,), (1398990595,), (1398990596,), (1398990599,), (1398990916,), (1398990951,), (1398991430,), (1398991463,), (1398991517,), (1398991574,), (1398991605,), (1398991751,), (1398991795,), (1398993212,), (1398997259,), (1398998062,), (1398998097,), (1398998117,), (1398998455,), (1398998457,), (1398998476,), (1398998646,), (1398998647,), (1398998664,), (1398998666,), (1398998668,), (1398998670,), (1398998673,), (1398998676,), (1398998685,), (1398998686,), (1398998712,), (1398998710,), (1398998711,), (1398998723,), (1398998725,), (1398998727,), (1398998729,), (1398998732,), (1398998735,), (1398998746,), (1398998748,), (1398998751,), (1398998753,), (1398998756,), (1398998769,), (1398998770,), (1398998771,), (1398998772,), (1398998775,), (1398998805,), (1398998807,), (1398998809,), (1398998811,), (1398998814,), (1398998828,), (1398998830,), (1398998832,), (1398998836,), (1398998857,), (1398998859,), (1398998861,), (1398998863,), (1398998866,), (1398998869,), (1398998877,), (1398998878,), (1398998880,), (1398998914,), (1398998915,), (1398998916,), (1398998917,), (1398998919,), (1398998922,), (1398998935,), (1398998936,), (1398998937,), (1398998938,), (1398998958,), (1398998960,), (1398998962,), (1398998964,), (1398998967,), (1398998968,), (1398998979,), (1398998981,), (1398998982,), (1398998984,), (1398998987,), (1398999000,), (1398999002,), (1398999003,), (1398999020,), (1398999022,), (1398999024,), (1398999026,), (1398999029,), (1398999032,), (1398999056,), (1398999064,), (1398999066,), (1398999067,), (1398999087,), (1398999079,), (1398999081,), (1398999083,), (1398999085,), (1398999116,), (1398999117,), (1398999124,), (1398999133,), (1398999136,), (1398999139,), (1398999161,), (1398999163,), (1398999165,), (1398999167,), (1398999186,), (1398999187,), (1398999188,), (1398999189,), (1398999192,), (1398999195,), (1398999208,), (1398999210,), (1398999212,), (1398999214,), (1398999238,), (1398999239,), (1398999240,), (1398999241,), (1398999244,), (1398999246,), (1398999259,), (1398999261,), (1398999263,), (1398999265,), (1398999268,), (1398999291,), (1398999294,), (1398999295,), (1398999296,), (1398999299,), (1398999313,), (1398999315,), (1398999317,), (1398999319,), (1398999322,), (1398999325,), (1398999349,), (1398999350,), (1398999351,), (1398999352,), (1398999368,), (1398999370,), (1398999372,), (1398999374,), (1398999377,), (1398999393,), (1398999394,), (1398999395,), (1398999407,), (1398999409,), (1398999411,), (1398999413,), (1398999416,), (1398999418,), (1398999448,), (1398999451,), (1398999455,), (1398999456,), (1398999472,), (1398999475,), (1398999479,), (1398999481,), (1398999484,), (1398999515,), (1398999504,), (1398999505,), (1398999509,), (1398999512,), (1398999528,), (1398999530,), (1398999532,), (1398999534,), (1398999537,), (1398999555,), (1398999560,), (1398999561,), (1398999564,), (1398999567,), (1398999570,), (1398999578,), (1398999580,), (1398999582,), (1398999584,), (1398999587,), (1398999588,), (1398999602,), (1398999604,), (1398999605,), (1398999606,), (1398999609,), (1398999623,), (1398999625,), (1398999627,), (1398999631,), (1398999635,), (1398999638,), (1398999646,), (1398999647,), (1398999648,), (1398999658,), (1398999660,), (1398999662,), (1398999665,), (1398999667,), (1398999668,), (1398999684,), (1398999686,), (1398999688,), (1398999691,), (1398999693,), (1398999708,), (1398999709,), (1398999710,), (1398999711,), (1398999727,), (1398999729,), (1398999731,), (1398999733,), (1398999736,), (1398999738,), (1398999777,), (1398999779,), (1398999781,), (1398999783,), (1398999786,), (1398999801,), (1398999802,), (1398999803,), (1398999804,), (1398999807,), (1398999818,), (1398999821,), (1398999824,), (1398999826,), (1398999829,), (1398999853,), (1398999856,), (1398999859,), (1398999866,), (1398999879,), (1398999880,), (1398999882,), (1398999883,), (1398999884,), (1398999885,), (1398999888,), (1398999889,), (1398999892,), (1398999893,), (1398999900,), (1398999897,), (1398999898,), (1398999899,), (1398999915,), (1398999917,), (1398999919,), (1398999921,), (1398999937,), (1398999940,), (1398999942,), (1398999946,), (1398999950,), (1398999976,), (1398999979,), (1398999981,), (1398999985,), (1398999988,), (1398999997,), (1398999999,), (1399000001,), (1399000003,), (1399000006,), (1399000008,), (1399000022,), (1399000023,), (1399000024,), (1399000025,), (1399000028,), (1399000049,), (1399000051,), (1399000053,), (1399000055,), (1399000058,), (1399000061,), (1399000080,), (1399000081,), (1399000083,), (1399000085,), (1399000107,), (1399000112,), (1399000114,), (1399000116,), (1399000119,), (1399000122,), (1399000158,), (1399000160,), (1399000162,), (1399000164,), (1399000177,), (1399000179,), (1399000181,), (1399000183,), (1399000186,), (1399000189,), (1399000216,), (1399000220,), (1399000221,), (1399000222,), (1399000225,), (1399000239,), (1399000241,), (1399000243,), (1399000248,), (1399000254,), (1399000256,), (1399000266,), (1399000268,), (1399000270,), (1399000272,), (1399000303,), (1399000307,), (1399000309,), (1399000310,), (1399000313,), (1399000315,), (1399000346,), (1399000338,), (1399000342,), (1399000363,), (1399000365,), (1399000367,), (1399000371,), (1399000375,), (1399000395,), (1399000397,), (1399000399,), (1399000400,), (1399000403,), (1399000420,), (1399000422,), (1399000424,), (1399000426,), (1399000443,), (1399000444,), (1399000445,), (1399000446,), (1399000448,), (1399000450,), (1399000473,), (1399000474,), (1399000475,), (1399000476,), (1399000479,), (1399000493,), (1399000506,), (1399000514,), (1399000518,), (1399000521,), (1399000530,), (1399000533,), (1399000535,), (1399000537,), (1399000541,), (1399000570,), (1399000572,), (1399000574,), (1399000576,), (1399000578,), (1399000580,), (1399000591,), (1399000592,), (1399000593,), (1399000594,), (1399000626,), (1399000628,), (1399000637,), (1399000645,), (1399000649,), (1399000651,), (1399000692,), (1399000693,), (1399000694,), (1399000695,), (1399000716,), (1399000717,), (1399000718,), (1399000719,), (1399000722,), (1399000724,), (1399000737,), (1399000739,), (1399000741,), (1399000743,), (1399000746,), (1399000788,), (1399000790,), (1399000814,), (1399000808,), (1399000810,), (1399000812,), (1399000833,), (1399000835,), (1399000836,), (1399000837,), (1399000839,), (1399000841,), (1399000869,), (1399000870,), (1399000871,), (1399000904,), (1399000906,), (1399000908,), (1399000910,), (1399000935,), (1399000936,), (1399000937,), (1399000957,), (1399000959,), (1399000961,), (1399000963,), (1399000966,), (1399000968,), (1399000976,), (1399000979,), (1399000982,), (1399000986,), (1399001005,), (1399001007,), (1399001009,), (1399001011,), (1399001035,), (1399001040,), (1399001041,), (1399001042,), (1399001045,), (1399001064,), (1399001066,), (1399001068,), (1399001070,), (1399001073,), (1399001074,), (1399001084,), (1399001087,), (1399001089,), (1399001092,), (1399001095,), (1399001096,), (1399001112,), (1399001115,), (1399001122,), (1399001123,), (1399001124,), (1399001125,), (1399001128,), (1399001130,), (1399001149,), (1399001151,), (1399001153,), (1399001155,), (1399001158,), (1399001161,), (1399001174,), (1399001175,), (1399001176,), (1399001205,), (1399001207,), (1399001209,), (1399001211,), (1399001216,), (1399001220,), (1399001261,), (1399001262,), (1399001265,), (1399001268,), (1399001271,), (1399001274,), (1399001277,), (1399001243,), (1399001253,), (1399001256,), (1399001259,), (1399001281,), (1399001283,), (1399001285,), (1399001310,), (1399001312,), (1399001318,), (1399001327,), (1399001330,), (1399001333,), (1399001341,), (1399001343,), (1399001345,), (1399001347,), (1399001350,), (1399001363,), (1399001366,), (1399001368,), (1399001370,), (1399001420,), (1399001426,), (1399001428,), (1399001431,), (1399001434,), (1399001436,), (1399001438,), (1399001448,), (1399001450,), (1399001452,), (1399001454,), (1399001456,), (1399001459,), (1399001466,), (1399001468,), (1399001471,), (1399001474,), (1399001476,), (1399001478,), (1399001525,), (1399001526,), (1399001528,), (1399001529,), (1399001530,), (1399001531,), (1399001533,), (1399001534,), (1399001553,), (1399001554,), (1399001581,), (1399001584,), (1399001589,), (1399001593,), (1399001597,), (1399001604,), (1399001615,), (1399001617,), (1399001619,), (1399001621,), (1399001623,), (1399001625,), (1399001654,), (1399001656,), (1399001658,), (1399001662,), (1399001665,), (1399001666,), (1399001687,), (1399001689,), (1399001718,), (1399001753,), (1399001788,), (1399001824,), (1399002278,), (1399002338,), (1399002384,), (1399002420,), (1399002452,), (1399002484,), (1399002628,), (1399002630,), (1399002649,), (1399002652,), (1399002682,), (1399002718,), (1399003056,), (1399003091,), (1399003239,), (1399003284,), (1399003320,), (1399003353,), (1399003386,), (1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,), (1399005544,), (1399005548,), (1399005551,), (1399005582,), (1399005578,), (1399005580,), (1399005625,), (1399005628,), (1399005655,), (1399005669,), (1399005676,), (1399005886,), (1399005897,), (1399005901,), (1399005939,), (1399006087,), (1399006089,), (1399006091,), (1399006093,), (1399006096,), (1399006110,), (1399006111,), (1399006113,), (1399006115,), (1399006118,), (1399006120,), (1399006130,), (1399006132,), (1399006135,), (1399006139,), (1399006175,), (1399006178,), (1399006181,), (1399006188,), (1399006193,), (1399006209,), (1399006210,), (1399006211,), (1399006212,), (1399006214,), (1399006235,), (1399006236,), (1399006237,), (1399006239,), (1399006241,), (1399006268,), (1399006256,), (1399006258,), (1399006260,), (1399006262,), (1399006265,), (1399006278,), (1399006279,), (1399006280,), (1399006281,), (1399006301,), (1399006303,), (1399006305,), (1399006307,), (1399006310,), (1399006448,), (1399006450,), (1399006452,), (1399006454,), (1399006576,), (1399006582,), (1399006583,), (1399006584,), (1399006586,), (1399006595,), (1399006618,), (1399006619,), (1399006621,), (1399006623,), (1399006733,), (1399006735,), (1399006737,), (1399006739,), (1399006742,), (1399006745,), (1399006756,), (1399006758,), (1399006760,), (1399006762,), (1399007061,), (1399007102,), (1399007108,), (1399007111,), (1399007114,), (1399007116,), (1399007141,), (1399007148,), (1399007150,), (1399007152,), (1399007155,), (1399007158,), (1399007309,), (1399007311,), (1399007313,), (1399007360,), (1399007361,), (1399007362,), (1399007363,), (1399007366,), (1399007368,), (1399007506,), (1399007508,), (1399007510,), (1399007512,), (1399007564,), (1399007573,), (1399007576,), (1399007579,), (1399007582,), (1399007619,), (1399007705,), (1399007712,), (1399007761,), (1399007906,), (1399007899,), (1399007900,), (1399007901,), (1399007902,), (1399007916,), (1399007918,), (1399007920,), (1399007922,), (1399007924,), (1399007927,), (1399007951,), (1399007952,), (1399007956,), (1399007961,), (1399007964,), (1399007967,), (1399007980,), (1399007981,), (1399007982,), (1399007983,), (1399007984,), (1399007993,), (1399007996,), (1399007998,), (1399008004,), (1399008012,), (1399008016,), (1399008021,), (1399008023,), (1399008025,), (1399008027,), (1399008044,), (1399008049,), (1399008059,), (1399008069,), (1399008073,), (1399008087,), (1399008090,), (1399008097,), (1399008105,), (1399008114,), (1399008121,), (1399008136,), (1399008137,), (1399008142,), (1399008158,), (1399008204,), (1399008212,), (1399008214,), (1399008216,), (1399008241,), (1399008278,), (1399008429,), (1399008488,), (1399008523,), (1399008526,), (1399008595,), (1399008596,), (1399008597,), (1399008598,), (1399008601,), (1399008604,), (1399008615,), (1399008624,), (1399008628,), (1399008630,), (1399008633,), (1399008645,), (1399008647,), (1399008679,), (1399008711,), (1399008714,), (1399008716,), (1399008743,), (1399008748,), (1399008756,), (1399008764,), (1399008767,), (1399008772,), (1399008773,), (1399008777,), (1399008779,), (1399008781,), (1399008794,), (1399008787,), (1399008789,), (1399008791,), (1399008808,), (1399008811,), (1399008818,), (1399008819,), (1399008822,), (1399008834,), (1399008835,), (1399008836,), (1399008837,), (1399008871,), (1399008876,), (1399008881,), (1399008883,), (1399008886,), (1399008898,), (1399008921,), (1399008924,), (1399008925,), (1399008928,), (1399008941,), (1399008943,), (1399008945,), (1399008947,), (1399008950,), (1399008953,), (1399008963,), (1399008966,), (1399008968,), (1399008971,), (1399009004,), (1399009006,), (1399009007,), (1399009008,), (1399009011,), (1399009014,), (1399009028,), (1399009037,), (1399009040,), (1399009042,), (1399009059,), (1399009060,), (1399009061,), (1399009062,), (1399009186,), (1399009224,), (1399009258,), (1399009292,), (1399009326,), (1399009347,), (1399009351,), (1399009354,), (1399009387,), (1399009497,), (1399009553,), (1399009555,), (1399009557,), (1399009559,), (1399009562,), (1399009565,), (1399009575,), (1399009577,), (1399009580,), (1399009583,), (1399009587,), (1399009783,), (1399009690,), (1399009723,), (1399009752,), (1399010204,), (1399010260,), (1399010303,), (1399010337,), (1399010376,), (1399010423,), (1399010751,), (1399010787,), (1399010809,), (1399010812,), (1399010819,), (1399010833,), (1399010834,), (1399010835,), (1399010836,), (1399010837,), (1399011187,), (1399011219,), (1399011237,), (1399011238,), (1399011255,), (1399011375,), (1399011376,), (1399011377,), (1399011378,), (1399011381,), (1399011739,), (1399011772,), (1399011805,), (1399011837,), (1399012196,), (1399012311,), (1399012343,), (1399012379,), (1399012412,), (1399012445,), (1399012468,), (1399012470,), (1399012472,), (1399012474,), (1399012477,), (1399012683,), (1399012739,), (1399012810,), (1399012875,), (1399012944,), (1399012986,), (1399013349,), (1399013383,), (1399013415,), (1399013448,), (1399013482,), (1399013516,), (1399013930,), (1399013993,), (1399014058,), (1399014117,), (1399014153,), (1399014244,), (1399014246,), (1399014248,), (1399014250,), (1399014253,), (1399014256,), (1399014594,), (1399014611,), (1399014613,), (1399014622,), (1399014675,), (1399014708,), (1399014927,), (1399014949,), (1399014979,), (1399015006,), (1399015066,), (1399015051,), (1399015053,), (1399015056,), (1399015059,), (1399015062,), (1399015085,), (1399015094,), (1399015095,), (1399015129,), (1399015175,), (1399015215,), (1399015401,), (1399015421,), (1399015428,), (1399015432,), (1399015436,), (1399015438,), (1399015440,), (1399015442,), (1399015444,), (1399015448,), (1399015450,), (1399015451,), (1399015452,), (1399015455,), (1399015463,), (1399015465,), (1399015467,), (1399015469,), (1399015472,), (1399015632,), (1399015665,), (1399015693,), (1399015695,), (1399015698,), (1399015699,), (1399015795,), (1399015797,), (1399015799,), (1399015801,), (1399015846,), (1399015848,), (1399015850,), (1399015852,), (1399015855,), (1399015867,), (1399015902,), (1399015904,), (1399015907,), (1399015910,), (1399015913,), (1399015917,), (1399015981,), (1399015987,), (1399015988,), (1399016150,), (1399016152,), (1399016165,), (1399016198,), (1399016206,), (1399016209,), (1399016358,), (1399016360,), (1399016362,), (1399016374,), (1399016377,), (1399016379,), (1399016381,), (1399016384,), (1399016388,), (1399016679,), (1399016723,), (1399016777,), (1399016811,), (1399016842,), (1399016874,), (1399017170,), (1399017203,), (1399017236,), (1399017270,), (1399017495,), (1399017389,), (1399017423,), (1399017455,), (1399017471,), (1399017476,), (1399017576,), (1399017578,), (1399017586,), (1399017590,), (1399017593,), (1399017867,), (1399017897,), (1399017905,), (1399017940,), (1399017942,), (1399017944,), (1399017946,), (1399017949,), (1399017951,), (1399017958,), (1399017961,), (1399017963,), (1399017991,), (1399017999,), (1399018001,), (1399018003,), (1399018006,), (1399018008,), (1399018032,), (1399018034,), (1399018035,), (1399018037,), (1399018124,), (1399018136,), (1399018151,), (1399018161,), (1399018173,), (1399018204,), (1399018239,), (1399018252,), (1399018254,), (1399018256,), (1399018265,), (1399018322,), (1399018324,), (1399018327,), (1399018330,), (1399018354,), (1399018552,), (1399018567,), (1399018568,), (1399018592,), (1399018605,), (1399018614,), (1399018631,), (1399018633,), (1399018635,), (1399018637,), (1399018640,), (1399018655,), (1399018657,), (1399018659,), (1399018661,), (1399018664,), (1399019074,), (1399019084,), (1399019120,), (1399019155,), (1399019188,), (1399019796,), (1399032712,), (1399032847,), (1399032853,), (1399032860,), (1399032863,), (1399032866,), (1399032878,), (1399032881,), (1399032884,), (1399032895,), (1399033230,), (1399033288,), (1399033317,), (1399033347,), (1399033383,), (1399033417,), (1399033933,), (1399034020,), (1399034114,), (1399034192,), (1399034254,), (1399034832,), (1399034862,), (1399034877,), (1399034878,), (1399034881,), (1399034883,), (1399035153,), (1399035186,), (1399035220,), (1399035256,), (1399035287,), (1399035376,), (1399035406,), (1399035454,), (1399035522,), (1399035615,), (1399036063,), (1399036102,), (1399036164,), (1399036233,), (1399036300,), (1399036337,), (1399036527,), (1399036529,), (1399036531,), (1399036533,), (1399036560,), (1399036562,), (1399036564,), (1399036566,), (1399036568,), (1399036569,), (1399036584,), (1399036585,), (1399036586,), (1399036587,), (1399036602,), (1399036604,), (1399036606,), (1399036608,), (1399036612,), (1399036615,), (1399036657,), (1399036791,), (1399036792,), (1399036793,), (1399036794,), (1399036800,), (1399036816,), (1399036858,), (1399036846,), (1399036848,), (1399036850,), (1399036852,), (1399036855,), (1399036952,), (1399036987,), (1399037027,), (1399037065,), (1399037076,), (1399037095,), (1399037102,), (1399037103,), (1399037104,), (1399037106,), (1399037160,), (1399037162,), (1399037164,), (1399037166,), (1399037169,), (1399037193,), (1399037194,), (1399037200,), (1399037203,), (1399037206,), (1399037258,), (1399037291,), (1399037326,), (1399037361,), (1399037393,), (1399037424,), (1399037754,), (1399037791,), (1399037817,), (1399037819,), (1399037822,), (1399038003,), (1399038021,), (1399038044,), (1399038085,), (1399038416,), (1399038451,), (1399038485,), (1399038522,), (1399038556,), (1399038593,), (1399038684,), (1399038687,), (1399038690,), (1399038789,), (1399038791,), (1399038793,), (1399038795,), (1399038798,), (1399038809,), (1399038810,), (1399038811,), (1399038812,), (1399038815,), (1399038834,), (1399038836,), (1399038865,), (1399038921,), (1399038931,), (1399039176,), (1399039181,), (1399039190,), (1399039283,), (1399039274,), (1399039276,), (1399039278,), (1399039280,), (1399039299,), (1399039300,), (1399039302,), (1399039304,), (1399039322,), (1399039327,), (1399039329,), (1399039331,), (1399039334,), (1399039337,), (1399039455,), (1399039458,), (1399039462,), (1399039465,), (1399039468,), (1399039471,), (1399039486,), (1399039488,), (1399039490,), (1399039492,), (1399039527,), (1399039536,), (1399039551,), (1399039556,), (1399039559,), (1399039602,), (1399039774,), (1399039777,), (1399039781,), (1399039785,), (1399039788,), (1399039807,), (1399039809,), (1399039811,), (1399039813,), (1399039816,), (1399039823,), (1399039906,), (1399039907,), (1399039909,), (1399039911,), (1399039914,), (1399039922,), (1399039979,), (1399039981,), (1399039983,), (1399039985,), (1399039998,), (1399040001,), (1399040004,), (1399040007,), (1399040010,), (1399040012,), (1399040028,), (1399040029,), (1399040030,), (1399040202,), (1399040208,), (1399040212,), (1399040234,), (1399040236,), (1399040238,), (1399040411,), (1399040448,), (1399040450,), (1399040452,), (1399040475,), (1399040478,), (1399040480,), (1399040482,), (1399040486,), (1399040489,), (1399040548,), (1399040538,), (1399040541,), (1399040543,), (1399040545,), (1399040619,), (1399040652,), (1399040688,), (1399040728,), (1399040762,), (1399040783,), (1399040864,), (1399040881,), (1399040883,), (1399040885,), (1399040990,), (1399040991,), (1399040995,), (1399040997,), (1399041002,), (1399041007,), (1399041027,), (1399041030,), (1399041033,), (1399041036,), (1399041124,), (1399041133,), (1399041134,), (1399041139,), (1399041152,), (1399041155,), (1399041191,), (1399041218,), (1399041258,), (1399041292,), (1399041327,), (1399041583,), (1399041585,), (1399041587,), (1399041591,), (1399041595,), (1399041599,), (1399041616,), (1399041620,), (1399041624,), (1399041628,), (1399041632,), (1399041651,), (1399041655,), (1399041657,), (1399041659,), (1399041702,), (1399041703,), (1399041704,), (1399041705,), (1399041708,), (1399041711,), (1399041728,), (1399041730,), (1399041733,), (1399041736,), (1399041789,), (1399041794,), (1399041798,), (1399041810,), (1399041813,), (1399041829,), (1399041830,), (1399041832,), (1399041834,), (1399041837,), (1399041852,), (1399041854,), (1399041856,), (1399041864,), (1399041874,), (1399041876,), (1399041923,), (1399041918,), (1399041919,), (1399041921,), (1399041949,), (1399041950,), (1399041952,), (1399041954,), (1399041957,), (1399041960,), (1399041979,), (1399041981,), (1399041983,), (1399041985,), (1399041988,), (1399042010,), (1399042041,), (1399042075,), (1399042135,), (1399042172,), (1399042361,), (1399042383,), (1399042403,), (1399042407,), (1399042466,), (1399042468,), (1399042471,), (1399042475,), (1399042480,), (1399042482,), (1399042495,), (1399042497,), (1399042499,), (1399042501,), (1399042532,), (1399042546,), (1399042585,), (1399042623,), (1399042660,), (1399042791,), (1399042794,), (1399042796,), (1399042798,), (1399042801,), (1399042838,), (1399042840,), (1399042842,), (1399042860,), (1399042894,), (1399043060,), (1399043093,), (1399043129,), (1399043179,), (1399043193,), (1399043207,), (1399043265,), (1399043266,), (1399043268,), (1399043270,), (1399043289,), (1399043290,), (1399043291,), (1399043292,), (1399043295,), (1399043307,), (1399043310,), (1399043313,), (1399043316,), (1399043317,), (1399043359,), (1399043391,), (1399043423,), (1399043459,), (1399043494,), (1399043779,), (1399043740,), (1399043766,), (1399043771,), (1399043774,), (1399043777,), (1399043942,), (1399043943,), (1399043944,), (1399043945,), (1399044025,), (1399044058,), (1399044093,), (1399044127,), (1399044158,), (1399044396,), (1399044398,), (1399044401,), (1399044424,), (1399044461,), (1399044543,), (1399044545,), (1399044552,), (1399044592,), (1399044626,), (1399044633,), (1399044725,), (1399044727,), (1399044728,), (1399044729,), (1399044766,), (1399044768,), (1399044770,), (1399044773,), (1399044776,), (1399044777,), (1399044792,), (1399044793,), (1399044796,), (1399044799,), (1399044802,), (1399044811,), (1399044834,), (1399044835,), (1399044841,), (1399044848,), (1399044850,), (1399044853,), (1399044859,), (1399044861,), (1399044890,), (1399044927,), (1399044960,), (1399044996,), (1399045027,), (1399045050,), (1399045078,), (1399045097,), (1399045099,), (1399045101,), (1399045109,), (1399045110,), (1399045303,), (1399045307,), (1399045312,), (1399045374,), (1399045392,), (1399045394,), (1399045403,), (1399045406,), (1399045438,), (1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,), (1399048285,), (1399048320,), (1399048361,), (1399048397,), (1399048399,), (1399048497,), (1399048498,), (1399048499,), (1399048500,), (1399048503,), (1399048539,), (1399048785,), (1399048846,), (1399048879,), (1399048914,), (1399048949,), (1399049193,), (1399049225,), (1399049251,), (1399049252,), (1399049536,), (1399049377,), (1399049389,), (1399049421,), (1399049460,), (1399049504,), (1399049809,), (1399049972,), (1399050025,), (1399050081,), (1399050350,), (1399050352,), (1399050364,), (1399050396,), (1399050429,), (1399050462,), (1399050738,), (1399050775,), (1399050798,), (1399050799,), (1399050987,), (1399050993,), (1399051011,), (1399051022,), (1399051042,), (1399051057,), (1399051058,), (1399051090,), (1399051206,), (1399051214,), (1399051225,), (1399051259,), (1399051266,), (1399051531,), (1399051565,), (1399051624,), (1399051665,), (1399051747,), (1399051750,), (1399051753,), (1399051757,), (1399051760,), (1399051764,), (1399051780,), (1399051787,), (1399051788,), (1399051790,), (1399051807,), (1399051809,), (1399051811,), (1399051832,), (1399051869,), (1399051906,), (1399052381,), (1399052457,), (1399052504,), (1399052520,), (1399052668,), (1399052670,), (1399052671,), (1399052695,), (1399052746,), (1399052798,), (1399052885,), (1399052943,), (1399052979,), (1399053012,), (1399053047,), (1399053292,), (1399053237,), (1399053239,), (1399053266,), (1399053290,), (1399053329,), (1399053367,), (1399053405,), (1399053431,), (1399053533,), (1399053535,), (1399053537,), (1399053539,), (1399053542,), (1399053545,), (1399053567,), (1399053568,), (1399053569,), (1399053570,), (1399053572,), (1399053614,), (1399053616,), (1399053620,), (1399053627,), (1399053630,), (1399053638,), (1399053812,), (1399053842,), (1399053848,), (1399053849,), (1399053932,), (1399053934,), (1399053951,), (1399053994,), (1399054275,), (1399054308,), (1399054339,), (1399054383,), (1399054735,), (1399054772,), (1399054778,), (1399054780,), (1399054942,), (1399054953,), (1399054960,), (1399054962,), (1399054976,), (1399055140,), (1399055216,), (1399055268,), (1399055310,), (1399055346,), (1399055363,), (1399055432,), (1399055464,), (1399055498,), (1399055534,), (1399055925,), (1399055959,), (1399055991,), (1399056026,), (1399056061,), (1399056096,), (1399056379,), (1399056471,), (1399056474,), (1399056478,), (1399056482,), (1399056617,), (1399056621,), (1399056624,), (1399056669,), (1399056709,), (1399057199,), (1399057070,), (1399057108,), (1399057145,), (1399057195,), (1399057310,), (1399057312,), (1399057338,), (1399057394,), (1399057809,), (1399057811,), (1399057813,), (1399057863,), (1399057880,), (1399057948,), (1399058386,), (1399058499,), (1399058502,), (1399058604,), (1399059827,), (1399059818,), (1399059821,), (1399059824,), (1399060178,), (1399060219,), (1399060262,), (1399060274,), (1399060276,), (1399060312,), (1399060485,), (1399060493,), (1399060496,), (1399060498,), (1399060516,), (1399060518,), (1399060520,), (1399060522,), (1399060525,), (1399060528,), (1399060549,), (1399060553,), (1399060558,), (1399060562,), (1399060631,), (1399060633,), (1399060635,), (1399060636,), (1399060675,), (1399060678,), (1399060680,), (1399060682,), (1399060685,), (1399060688,), (1399060702,), (1399060705,), (1399060708,), (1399060721,), (1399060737,), (1399060752,), (1399060766,), (1399060774,), (1399060779,), (1399060788,), (1399060818,), (1399060819,), (1399060820,), (1399060821,), (1399060827,), (1399060838,), (1399060840,), (1399060892,), (1399063181,), (1399078396,), (1399078483,), (1399078485,), (1399078648,), (1399078735,), (1399078750,), (1399078778,), (1399078786,), (1399078872,), (1399078874,), (1399078876,), (1399078878,), (1399078881,), (1399078921,), (1399078953,), (1399078954,), (1399078967,), (1399078972,), (1399079005,), (1399079034,), (1399079036,), (1399079040,), (1399079074,), (1399079107,), (1399079525,), (1399079470,), (1399079488,), (1399079494,), (1399079500,), (1399079622,), (1399079624,), (1399079626,), (1399079628,), (1399079650,), (1399079653,), (1399079655,), (1399079686,), (1399079688,), (1399079690,), (1399079692,), (1399079695,), (1399079712,), (1399079715,), (1399079716,), (1399079718,), (1399079721,), (1399079966,), (1399080001,), (1399080035,), (1399080068,), (1399080123,), (1399080125,), (1399080127,), (1399080129,), (1399080132,), (1399080135,), (1399080161,), (1399080163,), (1399080169,), (1399080185,), (1399080189,), (1399080511,), (1399080525,), (1399080528,), (1399080530,), (1399080568,), (1399080570,), (1399080572,), (1399080574,), (1399080577,), (1399080579,), (1399080599,), (1399080602,), (1399080605,), (1399080607,), (1399080629,), (1399080630,), (1399080631,), (1399080632,), (1399080674,), (1399080676,), (1399080678,), (1399080680,), (1399080683,), (1399080686,), (1399080712,), (1399080716,), (1399080719,), (1399080729,), (1399080731,), (1399080732,), (1399080733,), (1399080737,), (1399081076,), (1399080902,), (1399080939,), (1399080972,), (1399081010,), (1399081044,), (1399081288,), (1399081291,), (1399081293,), (1399081295,), (1399081514,), (1399081518,), (1399081522,), (1399081526,), (1399081530,), (1399081532,), (1399081550,), (1399081558,), (1399081560,), (1399081562,), (1399081565,), (1399081567,), (1399081581,), (1399081584,), (1399081586,), (1399081588,), (1399081709,), (1399081745,), (1399081779,), (1399081815,), (1399081850,), (1399081883,), (1399082206,), (1399082242,), (1399082276,), (1399082933,), (1399082966,), (1399083000,), (1399083033,), (1399083451,), (1399083498,), (1399083535,), (1399083568,), (1399083602,), (1399083844,), (1399083877,), (1399083938,), (1399083988,), (1399084034,), (1399084224,), (1399084232,), (1399084234,), (1399084236,), (1399084260,), (1399084262,), (1399084282,), (1399084319,), (1399084353,), (1399084388,), (1399084990,), (1399085022,), (1399085054,), (1399085088,), (1399085120,), (1399085663,), (1399085731,), (1399085793,), (1399086258,), (1399086293,), (1399086322,), (1399086352,), (1399086395,), (1399086430,), (1399086932,), (1399086738,), (1399086772,), (1399086830,), (1399086896,), (1399087087,), (1399087089,), (1399087113,), (1399087115,), (1399087116,), (1399087117,), (1399087120,), (1399087142,), (1399087144,), (1399087146,), (1399087148,), (1399087151,), (1399087153,), (1399087177,), (1399087179,), (1399087181,), (1399087183,), (1399087186,), (1399087200,), (1399087201,), (1399087281,), (1399087283,), (1399087285,), (1399087288,), (1399087314,), (1399087380,), (1399087389,), (1399087391,), (1399087393,), (1399087396,), (1399087398,), (1399087400,), (1399087415,), (1399087417,), (1399087419,), (1399087429,), (1399087430,), (1399087432,), (1399087434,), (1399087437,), (1399087470,), (1399087473,), (1399087476,), (1399087478,), (1399087480,), (1399087508,), (1399087510,), (1399087511,), (1399087527,), (1399087529,), (1399087531,), (1399087533,), (1399087576,), (1399087578,), (1399087579,), (1399087591,), (1399087625,), (1399087653,), (1399087656,), (1399087682,), (1399087724,), (1399087722,), (1399087752,), (1399087753,), (1399087767,), (1399087769,), (1399087856,), (1399088022,), (1399088155,), (1399088159,), (1399088284,), (1399088279,), (1399088282,), (1399088307,), (1399088309,), (1399088311,), (1399088313,), (1399088323,), (1399088324,), (1399088325,), (1399088326,), (1399088374,), (1399088375,), (1399088378,), (1399088381,), (1399088413,), (1399088534,), (1399088660,), (1399088713,), (1399088715,), (1399089580,), (1399089568,), (1399089573,), (1399089577,), (1399089929,), (1399089981,), (1399090023,), (1399090096,), (1399090132,), (1399090171,), (1399090554,), (1399090600,), (1399090662,), (1399090728,), (1399091241,), (1399091244,), (1399091247,), (1399091266,), (1399091281,), (1399091291,), (1399091382,), (1399091414,), (1399091449,), (1399091484,), (1399091738,), (1399091781,), (1399091794,), (1399091799,), (1399091802,), (1399091805,), (1399091831,), (1399091836,), (1399091847,), (1399091852,), (1399091939,), (1399091973,), (1399092006,), (1399092142,), (1399092143,), (1399092152,), (1399092153,), (1399092212,), (1399092214,), (1399092216,), (1399092222,), (1399092256,), (1399092288,), (1399092329,), (1399092350,), (1399092381,), (1399092413,), (1399092493,), (1399092498,), (1399092531,), (1399092535,), (1399092538,), (1399092542,), (1399092607,), (1399092609,), (1399092611,), (1399092613,), (1399092654,), (1399092687,), (1399092710,), (1399092713,), (1399092715,), (1399092717,), (1399092749,), (1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,), (1399093726,), (1399093728,), (1399093730,), (1399093738,), (1399093741,), (1399093745,), (1399093818,), (1399093819,), (1399093821,), (1399093823,), (1399093846,), (1399093848,), (1399093851,), (1399093853,), (1399093855,), (1399093859,), (1399093879,), (1399093869,), (1399093873,), (1399093876,), (1399093902,), (1399093904,), (1399093905,), (1399093907,), (1399093910,), (1399093912,), (1399093927,), (1399093929,), (1399093931,), (1399093953,), (1399093975,), (1399093982,), (1399093988,), (1399094040,), (1399094048,), (1399094051,), (1399094071,), (1399094073,), (1399094075,), (1399094077,), (1399094080,), (1399094083,), (1399094107,), (1399094108,), (1399094109,), (1399094110,), (1399094112,), (1399094135,), (1399094136,), (1399094137,), (1399094181,), (1399094183,), (1399094185,), (1399094187,), (1399094190,), (1399094203,), (1399094205,), (1399094208,), (1399094211,), (1399094214,), (1399094216,), (1399094249,), (1399094251,), (1399094253,), (1399094274,), (1399094277,), (1399094279,), (1399094281,), (1399094284,), (1399094287,), (1399094310,), (1399094320,), (1399094322,), (1399094324,), (1399094327,), (1399094354,), (1399094356,), (1399094358,), (1399094406,), (1399094389,), (1399094396,), (1399094398,), (1399094400,), (1399094403,), (1399094426,), (1399094428,), (1399094430,), (1399094434,), (1399094438,), (1399094474,), (1399094475,), (1399094478,), (1399094481,), (1399094484,), (1399094487,), (1399094491,), (1399094492,), (1399094495,), (1399094497,), (1399094499,), (1399094502,), (1399094505,), (1399094517,), (1399094518,), (1399094519,), (1399094520,), (1399094521,), (1399094544,), (1399094545,), (1399094547,), (1399094549,), (1399094581,), (1399094583,), (1399094585,), (1399094587,), (1399094589,), (1399094591,), (1399094606,), (1399094608,), (1399094616,), (1399094622,), (1399094691,), (1399094692,), (1399094693,), (1399094694,), (1399094697,), (1399094700,), (1399094710,), (1399094712,), (1399094714,), (1399094716,), (1399094718,), (1399094721,), (1399094738,), (1399094739,), (1399094740,), (1399094764,), (1399094766,), (1399094768,), (1399094770,), (1399094773,), (1399094780,), (1399094806,), (1399094808,), (1399094809,), (1399094810,), (1399094813,), (1399094815,), (1399094852,), (1399094855,), (1399094858,), (1399095605,), (1399095359,), (1399095436,), (1399095507,), (1399095569,), (1399095931,), (1399095954,), (1399096276,), (1399096291,), (1399096293,), (1399096295,), (1399096298,), (1399096311,), (1399096312,), (1399096313,), (1399096314,), (1399096317,), (1399096320,), (1399096355,), (1399096357,), (1399096359,), (1399096376,), (1399096483,), (1399096486,), (1399096548,), (1399096550,), (1399096552,), (1399096554,), (1399096558,), (1399096562,), (1399096595,), (1399096598,), (1399096601,), (1399096604,), (1399096606,), (1399096608,), (1399096611,), (1399096613,), (1399098011,), (1399098708,), (1399098901,), (1399098910,), (1399098913,), (1399098915,), (1399098917,), (1399098954,), (1399098986,), (1399098998,), (1399099234,), (1399100562,), (1399102833,), (1399102280,), (1399102795,), (1399103184,), (1399103188,), (1399103190,), (1399103301,), (1399103304,), (1399103307,), (1399103326,), (1399103327,), (1399103328,), (1399103345,), (1399103347,), (1399103349,), (1399103351,), (1399103378,), (1399103380,), (1399103381,), (1399103382,), (1399103384,), (1399103417,), (1399103419,), (1399103421,), (1399103423,), (1399103426,), (1399103429,), (1399103444,), (1399103445,), (1399103446,), (1399103447,), (1399103450,), (1399103451,), (1399103465,), (1399103467,), (1399103511,), (1399103502,), (1399103504,), (1399103506,), (1399103508,), (1399103526,), (1399103527,), (1399103528,), (1399103529,), (1399103531,), (1399103533,), (1399103581,), (1399103582,), (1399103583,), (1399103585,), (1399103587,), (1399103588,), (1399103596,), (1399103600,), (1399103607,), (1399103608,), (1399103609,), (1399103619,), (1399103657,), (1399103790,), (1399103792,), (1399103794,), (1399103796,), (1399103799,), (1399103801,), (1399103823,), (1399103824,), (1399103825,), (1399103826,), (1399103851,), (1399103853,), (1399103855,), (1399103857,), (1399103860,), (1399103863,), (1399103876,), (1399103878,), (1399103880,), (1399103884,), (1399103887,), (1399103890,), (1399103913,), (1399103935,), (1399103936,), (1399103937,), (1399103975,), (1399103978,), (1399103980,), (1399103999,), (1399104000,), (1399104001,), (1399104002,), (1399104005,), (1399104007,), (1399104037,), (1399104039,), (1399104041,), (1399104043,), (1399104046,), (1399104058,), (1399104059,), (1399104060,), (1399105589,), (1399105605,), (1399105607,), (1399105609,), (1399105611,), (1399105643,), (1399105676,), (1399105984,), (1399106017,), (1399106047,), (1399106802,), (1399106865,), (1399107436,), (1399107469,), (1399107503,), (1399107535,), (1399107566,), (1399108054,), (1399108118,), (1399108176,), (1399108212,), (1399108250,), (1399109220,), (1399109311,), (1399109421,), (1399110410,), (1399110445,), (1399110479,), (1399110514,), (1399110547,), (1399110583,), (1399110713,), (1399110747,), (1399110845,), (1399110873,), (1399110909,), (1399110943,), (1399110978,), (1399111017,), (1399111334,), (1399111383,), (1399111452,), (1399111692,), (1399111726,), (1399111761,), (1399111772,), (1399111794,), (1399111796,), (1399111799,), (1399111801,), (1399111803,), (1399111841,), (1399111843,), (1399111844,), (1399111845,), (1399111863,), (1399111865,), (1399111867,), (1399111886,), (1399111889,), (1399111926,), (1399111915,), (1399111917,), (1399111919,), (1399111921,), (1399111924,), (1399111949,), (1399111950,), (1399111963,), (1399111970,), (1399111973,), (1399111976,), (1399112264,), (1399112267,), (1399112269,), (1399112291,), (1399112325,), (1399112550,), (1399112551,), (1399112552,), (1399112567,), (1399112684,), (1399112686,), (1399112688,), (1399112690,), (1399112708,), (1399112709,), (1399112710,), (1399112711,), (1399112714,), (1399112772,), (1399112777,), (1399112779,), (1399112781,), (1399112784,), (1399112796,), (1399112797,), (1399112798,), (1399112799,), (1399112819,), (1399112821,), (1399112823,), (1399112825,), (1399112828,), (1399112831,), (1399112879,), (1399112880,), (1399112881,), (1399112901,), (1399112903,), (1399112923,), (1399112925,), (1399112927,), (1399112931,), (1399112935,), (1399112959,), (1399112961,), (1399112963,), (1399112965,), (1399112968,), (1399112984,), (1399112985,), (1399112986,), (1399112987,), (1399112989,), (1399113024,), (1399113026,), (1399113027,), (1399113028,), (1399113030,), (1399113032,), (1399113055,), (1399113045,), (1399113047,), (1399113048,), (1399113049,), (1399113052,), (1399113079,), (1399113081,), (1399113083,), (1399113101,), (1399113102,), (1399113103,), (1399113104,), (1399113107,), (1399113130,), (1399113132,), (1399113134,), (1399113136,), (1399113139,), (1399113142,), (1399113154,), (1399113157,), (1399113159,), (1399113161,), (1399113184,), (1399113185,), (1399113186,), (1399113187,), (1399113190,), (1399113191,), (1399113205,), (1399113207,), (1399113209,), (1399113211,), (1399113214,), (1399113216,), (1399113244,), (1399113245,), (1399113246,), (1399113247,), (1399113263,), (1399113265,), (1399113267,), (1399113269,), (1399113272,), (1399113275,), (1399113297,), (1399113298,), (1399113299,), (1399113315,), (1399113317,), (1399113319,), (1399113321,), (1399113324,), (1399113360,), (1399113361,), (1399113362,), (1399113363,), (1399113366,), (1399113368,), (1399113382,), (1399113384,), (1399113386,), (1399113388,), (1399113414,), (1399113415,), (1399113416,), (1399113417,), (1399113418,), (1399113421,), (1399113438,), (1399113441,), (1399113443,), (1399113481,), (1399113469,), (1399113472,), (1399113474,), (1399113476,), (1399113479,), (1399113490,), (1399113492,), (1399113494,), (1399113496,), (1399113499,), (1399113502,), (1399113517,), (1399113518,), (1399113519,), (1399113520,), (1399113548,), (1399113553,), (1399113555,), (1399113557,), (1399113560,), (1399113564,), (1399113578,), (1399113580,), (1399113582,), (1399113584,), (1399113587,), (1399113590,), (1399113603,), (1399113604,), (1399113605,), (1399113606,), (1399113609,), (1399113626,), (1399113628,), (1399113630,), (1399113632,), (1399113635,), (1399113647,), (1399113649,), (1399113651,), (1399113675,), (1399113676,), (1399113677,), (1399113678,), (1399113704,), (1399113706,), (1399113708,), (1399113710,), (1399113713,), (1399113716,), (1399113728,), (1399113729,), (1399113730,), (1399113731,), (1399113749,), (1399113751,), (1399113753,), (1399113755,), (1399113758,), (1399113779,), (1399113781,), (1399113783,), (1399113785,), (1399113788,), (1399113791,), (1399114054,), (1399114066,), (1399114087,), (1399114132,), (1399114655,), (1399114573,), (1399114614,), (1399114650,), (1399114651,), (1399114781,), (1399114819,), (1399114844,), (1399114846,), (1399114865,), (1399114921,), (1399114922,), (1399114923,), (1399114945,), (1399114947,), (1399114949,), (1399114951,), (1399114952,), (1399114955,), (1399114975,), (1399114976,), (1399114977,), (1399114978,), (1399114981,), (1399114984,), (1399115000,), (1399115026,), (1399115059,), (1399115095,), (1399115133,), (1399115500,), (1399115533,), (1399115566,), (1399115599,), (1399115636,), (1399115672,), (1399116064,), (1399116117,), (1399116118,), (1399116144,), (1399116178,), (1399116211,), (1399116246,), (1399116282,), (1399116316,), (1399116502,), (1399116544,), (1399116565,), (1399116575,), (1399116578,), (1399116591,), (1399116593,), (1399116595,), (1399116597,), (1399116600,), (1399116639,), (1399116640,), (1399116641,), (1399116642,), (1399116645,), (1399116648,), (1399116822,), (1399116852,), (1399116854,), (1399116870,), (1399116955,), (1399116968,), (1399117008,), (1399117042,), (1399117079,), (1399117108,), (1399117116,), (1399117120,), (1399117123,), (1399117127,), (1399117132,), (1399117135,), (1399117153,), (1399117151,), (1399117217,), (1399117218,), (1399117219,), (1399117220,), (1399117246,), (1399117248,), (1399117250,), (1399117257,), (1399117314,), (1399117619,), (1399117620,), (1399117621,), (1399117647,), (1399117649,), (1399117651,), (1399117653,), (1399117655,), (1399117687,), (1399117776,), (1399117794,), (1399117796,), (1399117814,), (1399117815,), (1399117840,), (1399117871,), (1399117905,), (1399117941,), (1399118085,), (1399118093,), (1399118100,), (1399118200,), (1399118201,), (1399118202,), (1399118203,), (1399118227,), (1399118229,), (1399118231,), (1399118233,), (1399118236,), (1399118238,), (1399118344,), (1399118271,), (1399118305,), (1399118326,), (1399118330,), (1399118335,), (1399118418,), (1399118420,), (1399118421,), (1399118424,), (1399118436,), (1399118438,), (1399118440,), (1399118442,), (1399118445,), (1399118464,), (1399118465,), (1399118466,), (1399118467,), (1399118470,), (1399118473,), (1399118490,), (1399118492,), (1399118494,), (1399118525,), (1399118528,), (1399118530,), (1399118532,), (1399118535,), (1399118557,), (1399118559,), (1399118561,), (1399118563,), (1399118566,), (1399118587,), (1399118588,), (1399118589,), (1399118590,), (1399118593,), (1399118596,), (1399118609,), (1399118611,), (1399118613,), (1399118615,), (1399118685,), (1399118702,), (1399118710,), (1399118712,), (1399118715,), (1399118717,), (1399118731,), (1399118748,), (1399118773,), (1399118819,), (1399118853,), (1399118940,), (1399118942,), (1399118944,), (1399119045,), (1399119046,), (1399119047,), (1399119048,), (1399119050,), (1399119098,), (1399119099,), (1399119100,), (1399119101,), (1399119103,), (1399119105,), (1399119254,), (1399119256,), (1399119258,), (1399119260,), (1399119263,), (1399119285,), (1399119280,), (1399119283,), (1399119315,), (1399119317,), (1399119324,), (1399119326,), (1399119329,), (1399119340,), (1399119342,), (1399119343,), (1399119344,), (1399119346,), (1399119348,), (1399119417,), (1399119418,), (1399119419,), (1399119420,), (1399119449,), (1399119451,), (1399119453,), (1399119455,), (1399119458,), (1399119476,), (1399119477,), (1399119478,), (1399119479,), (1399119482,), (1399119501,), (1399119502,), (1399119503,), (1399119504,), (1399119526,), (1399119528,), (1399119530,), (1399119532,), (1399119535,), (1399119559,), (1399119560,), (1399119561,), (1399119562,), (1399119564,), (1399119566,), (1399119579,), (1399119581,), (1399119583,), (1399119585,), (1399119608,), (1399119609,), (1399119610,), (1399119611,), (1399119627,), (1399119629,), (1399119631,), (1399119633,), (1399119636,), (1399119639,), (1399119648,), (1399119651,), (1399119654,), (1399119656,), (1399119673,), (1399119676,), (1399119677,), (1399119679,), (1399119680,), (1399119683,), (1399119704,), (1399119708,), (1399119711,), (1399119734,), (1399119767,), (1399119805,), (1399119844,), (1399119879,), (1399119912,), (1399120174,), (1399120214,), (1399119698,), (1399119700,), (1399119702,), (1399120033,), (1399120070,), (1399120106,), (1399120141,), (1399120421,), (1399120455,), (1399120492,), (1399120529,), (1399120566,), (1399121171,), (1399121205,), (1399121238,), (1399121271,), (1399121307,), (1399121341,), (1399121682,), (1399121756,), (1399121817,), (1399121882,), (1399122518,), (1399122545,), (1399122582,), (1399122589,), (1399122591,), (1399122688,), (1399122695,), (1399122727,), (1399122758,), (1399122793,), (1399122827,), (1399123053,), (1399123079,), (1399123080,), (1399123172,), (1399123173,), (1399123176,), (1399123186,), (1399123189,), (1399123207,), (1399123208,), (1399123209,), (1399123210,), (1399123213,), (1399123227,), (1399123228,), (1399123262,), (1399123263,), (1399123264,), (1399123265,), (1399123268,), (1399123270,), (1399123282,), (1399123283,), (1399123284,), (1399123285,), (1399123288,), (1399123291,), (1399123315,), (1399123316,), (1399123338,), (1399123340,), (1399123341,), (1399123342,), (1399123345,), (1399123381,), (1399123375,), (1399123376,), (1399123377,), (1399123378,), (1399123395,), (1399123396,), (1399123397,), (1399123398,), (1399123401,), (1399123417,), (1399123418,), (1399123419,), (1399123432,), (1399123433,), (1399123434,), (1399123435,), (1399123438,), (1399123440,), (1399123460,), (1399123461,), (1399123462,), (1399123463,), (1399123466,), (1399123479,), (1399123480,), (1399123481,), (1399123512,), (1399123513,), (1399123514,), (1399123515,), (1399123518,), (1399123521,), (1399123537,), (1399123539,), (1399123543,), (1399123545,), (1399123578,), (1399123579,), (1399123580,), (1399123581,), (1399123584,), (1399123596,), (1399123597,), (1399123598,), (1399123599,), (1399123602,), (1399123619,), (1399123620,), (1399123621,), (1399123622,), (1399123641,), (1399123642,), (1399123643,), (1399123644,), (1399123647,), (1399123676,), (1399123678,), (1399123679,), (1399123680,), (1399123682,), (1399123685,), (1399123702,), (1399123703,), (1399123725,), (1399123727,), (1399123728,), (1399123729,), (1399123732,), (1399123758,), (1399123752,), (1399123753,), (1399123754,), (1399123755,), (1399123782,), (1399123784,), (1399123785,), (1399123786,), (1399123789,), (1399123792,), (1399123799,), (1399123800,), (1399123801,), (1399123825,), (1399123826,), (1399123827,), (1399123828,), (1399123831,), (1399123833,), (1399123851,), (1399123852,), (1399123853,), (1399123891,), (1399123892,), (1399123893,), (1399123894,), (1399123897,), (1399123910,), (1399123911,), (1399124102,), (1399124117,), (1399124118,), (1399124119,), (1399124140,), (1399124141,), (1399124142,), (1399124143,), (1399124146,), (1399124148,), (1399124166,), (1399124255,), (1399124283,), (1399124335,), (1399124590,), (1399124624,), (1399124727,), (1399124775,), (1399124947,), (1399125007,), (1399125064,), (1399125065,), (1399125067,), (1399125070,), (1399125110,), (1399125111,), (1399125113,), (1399125114,), (1399125117,), (1399125289,), (1399125159,), (1399125170,), (1399125203,), (1399125259,), (1399125313,), (1399125331,), (1399125332,), (1399125343,), (1399125350,), (1399125353,), (1399125389,), (1399125390,), (1399125391,), (1399125913,), (1399125927,), (1399125935,), (1399125969,), (1399125972,), (1399126058,), (1399126059,), (1399126060,), (1399126061,), (1399126064,), (1399126070,), (1399126071,), (1399126072,), (1399126073,), (1399126121,), (1399126340,), (1399126376,), (1399126411,), (1399126445,), (1399126481,), (1399126635,), (1399126636,), (1399126637,), (1399126638,), (1399126641,), (1399126643,), (1399126654,), (1399126656,), (1399126657,), (1399126658,), (1399126678,), (1399126679,), (1399126682,), (1399126694,), (1399126702,), (1399126704,), (1399126713,), (1399126715,), (1399126717,), (1399126847,), (1399126838,), (1399126839,), (1399126840,), (1399126841,), (1399126844,), (1399126861,), (1399126862,), (1399126863,), (1399126864,), (1399126867,), (1399126881,), (1399126883,), (1399126885,), (1399126900,), (1399126901,), (1399126902,), (1399126903,), (1399126906,), (1399126921,), (1399126922,), (1399126923,), (1399126924,), (1399126926,), (1399126930,), (1399126951,), (1399126953,), (1399126954,), (1399126955,), (1399126958,), (1399126970,), (1399126971,), (1399126972,), (1399126973,), (1399126976,), (1399126978,), (1399127005,), (1399127006,), (1399127007,), (1399127008,), (1399127011,), (1399127025,), (1399127026,), (1399127027,), (1399127028,), (1399127055,), (1399127056,), (1399127057,), (1399127058,), (1399127061,), (1399127064,), (1399127071,), (1399127072,), (1399127074,), (1399127075,), (1399127077,), (1399127104,), (1399127102,), (1399127103,), (1399127120,), (1399127121,), (1399127122,), (1399127123,), (1399127126,), (1399127128,), (1399127147,), (1399127148,), (1399127149,), (1399127150,), (1399127153,), (1399127166,), (1399127167,), (1399127168,), (1399127169,), (1399127190,), (1399127192,), (1399127193,), (1399127194,), (1399127197,), (1399127200,), (1399127209,), (1399127210,), (1399127211,), (1399127212,), (1399127215,), (1399127238,), (1399127239,), (1399127240,), (1399127241,), (1399127243,), (1399127244,), (1399127256,), (1399127257,), (1399127258,), (1399127284,), (1399127305,), (1399127306,), (1399127307,), (1399127308,), (1399127311,), (1399127313,), (1399127327,), (1399127328,), (1399127329,), (1399127342,), (1399127343,), (1399127344,), (1399127345,), (1399127348,), (1399127350,), (1399127383,), (1399127387,), (1399127388,), (1399127389,), (1399127392,), (1399127394,), (1399127646,), (1399127667,), (1399127683,), (1399128171,), (1399128044,), (1399128077,), (1399128107,), (1399128138,), (1399128528,), (1399128563,), (1399128583,), (1399128696,), (1399128729,), (1399128761,), (1399128795,), (1399128801,), (1399128804,), (1399128918,), (1399128919,), (1399128957,), (1399128989,), (1399129022,), (1399129054,), (1399129645,), (1399129710,), (1399129769,), (1399130590,), (1399130653,), (1399130689,), (1399130720,), (1399130754,), (1399131022,), (1399131023,), (1399131024,), (1399131041,), (1399131855,), (1399131913,), (1399131979,), (1399132048,), (1399132125,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12122025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29390568]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] map_info['map_portfolio_photo'] : {29390568: [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590, 1399129769, 1399129710, 1399129645, 1399129054, 1399129022, 1399128989, 1399128957, 1399128919, 1399128918, 1399128804, 1399128801, 1399128795, 1399128761, 1399128729, 1399128696, 1399128583, 1399128563, 1399128528, 1399128138, 1399128107, 1399128077, 1399128044]} final : True mtd_id 4302 list_pids : [1399132125, 1399132048, 1399131979, 1399131913, 1399131855, 1399131041, 1399131024, 1399131023, 1399131022, 1399130754, 1399130720, 1399130689, 1399130653, 1399130590] Looping around the photos to save general results len do output : 1 /29390568Didn'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, '4217054') ('4302', '29390568', '1399132125', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399132048', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131979', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131913', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131855', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131041', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131024', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131023', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399131022', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130754', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130720', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130689', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130653', None, None, None, None, None, '4217054') ('4302', None, None, None, None, None, None, None, '4217054') ('4302', '29390568', '1399130590', None, None, None, None, None, '4217054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29390568', 'None', None, None, None, None, '4217054'), ('4302', '29390568', '1399132125', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399132048', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131979', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131913', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131855', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131041', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131024', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131023', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399131022', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130754', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130720', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130689', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130653', None, None, None, None, None, '4217054'), ('4302', '29390568', '1399130590', None, None, None, None, None, '4217054')] time used for this insertion : 0.01799631118774414 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.355134963989258 time spend to save output : 0.018272876739501953 total time spend for step 5 : 5.37340784072876 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 (4217054) 2.41user 2.42system 0:13.00elapsed 37%CPU (0avgtext+0avgdata 168324maxresident)k 88inputs+12048outputs (2major+71301minor)pagefaults 0swaps