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 : 2666827 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 (3806938) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3806938) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401557 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3806938'] with mtr_portfolio_ids : ['27401557'] and first list_photo_ids : [] new path : /proc/2666827/ Name: python3 Umask: 0002 State: R (running) Tgid: 2666827 Ngid: 0 Pid: 2666827 PPid: 2666826 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2666827 NSpid: 2666827 NSpgid: 2649790 NSsid: 2649790 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98248 kB VmRSS: 98248 kB RssAnon: 59844 kB RssFile: 38404 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 52 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2666827', 'Ngid': '0', 'Pid': '2666827', 'PPid': '2666826', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2666827', 'NSpid': '2666827', 'NSpgid': '2649790', 'NSsid': '2649790', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98248 kB', 'VmRSS': '98248 kB', 'RssAnon': '59844 kB', 'RssFile': '38404 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '52', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '2666827', '1106856', '0', '1106856', '865608', '98248', b'', 'marlene', '3806938') 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 (27401557) 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 (3806938 ) ) 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 (27401557) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387169071, 'portfolio_id': 27401557}, {'photo_id': 1387152771, 'portfolio_id': 27401557}, {'photo_id': 1387152769, 'portfolio_id': 27401557}, {'photo_id': 1387152753, 'portfolio_id': 27401557}, {'photo_id': 1387152750, 'portfolio_id': 27401557}, {'photo_id': 1387152748, 'portfolio_id': 27401557}, {'photo_id': 1387152744, 'portfolio_id': 27401557}, {'photo_id': 1387152739, 'portfolio_id': 27401557}, {'photo_id': 1387152719, 'portfolio_id': 27401557}, {'photo_id': 1387152716, 'portfolio_id': 27401557}, {'photo_id': 1387152714, 'portfolio_id': 27401557}, {'photo_id': 1387152709, 'portfolio_id': 27401557}, {'photo_id': 1387152434, 'portfolio_id': 27401557}, {'photo_id': 1387152431, 'portfolio_id': 27401557}, {'photo_id': 1387152428, 'portfolio_id': 27401557}, {'photo_id': 1387152424, 'portfolio_id': 27401557}, {'photo_id': 1387152420, 'portfolio_id': 27401557}, {'photo_id': 1387152418, 'portfolio_id': 27401557}, {'photo_id': 1387152410, 'portfolio_id': 27401557}, {'photo_id': 1387151917, 'portfolio_id': 27401557}, {'photo_id': 1387151706, 'portfolio_id': 27401557}, {'photo_id': 1387151701, 'portfolio_id': 27401557}, {'photo_id': 1387151697, 'portfolio_id': 27401557}, {'photo_id': 1387151682, 'portfolio_id': 27401557}, {'photo_id': 1387151677, 'portfolio_id': 27401557}, {'photo_id': 1387151668, 'portfolio_id': 27401557}, {'photo_id': 1387151662, 'portfolio_id': 27401557}, {'photo_id': 1387151639, 'portfolio_id': 27401557}, {'photo_id': 1387151635, 'portfolio_id': 27401557}, {'photo_id': 1387151632, 'portfolio_id': 27401557}, {'photo_id': 1387151629, 'portfolio_id': 27401557}, {'photo_id': 1387151625, 'portfolio_id': 27401557}, {'photo_id': 1387151621, 'portfolio_id': 27401557}, {'photo_id': 1387151615, 'portfolio_id': 27401557}, {'photo_id': 1387151613, 'portfolio_id': 27401557}, {'photo_id': 1387151609, 'portfolio_id': 27401557}, {'photo_id': 1387151605, 'portfolio_id': 27401557}, {'photo_id': 1387151601, 'portfolio_id': 27401557}, {'photo_id': 1387151597, 'portfolio_id': 27401557}, {'photo_id': 1387151584, 'portfolio_id': 27401557}, {'photo_id': 1387151575, 'portfolio_id': 27401557}, {'photo_id': 1387151533, 'portfolio_id': 27401557}, {'photo_id': 1387151529, 'portfolio_id': 27401557}, {'photo_id': 1387151477, 'portfolio_id': 27401557}, {'photo_id': 1387151476, 'portfolio_id': 27401557}, {'photo_id': 1387151274, 'portfolio_id': 27401557}, {'photo_id': 1387151258, 'portfolio_id': 27401557}, {'photo_id': 1387151116, 'portfolio_id': 27401557}, {'photo_id': 1387150603, 'portfolio_id': 27401557}, {'photo_id': 1387150590, 'portfolio_id': 27401557}, {'photo_id': 1387150586, 'portfolio_id': 27401557}, {'photo_id': 1387150328, 'portfolio_id': 27401557}, {'photo_id': 1387150325, 'portfolio_id': 27401557}, {'photo_id': 1387150321, 'portfolio_id': 27401557}, {'photo_id': 1387150317, 'portfolio_id': 27401557}, {'photo_id': 1387150313, 'portfolio_id': 27401557}, {'photo_id': 1387149535, 'portfolio_id': 27401557}, {'photo_id': 1387149531, 'portfolio_id': 27401557}, {'photo_id': 1387149528, 'portfolio_id': 27401557}, {'photo_id': 1387149525, 'portfolio_id': 27401557}, {'photo_id': 1387149521, 'portfolio_id': 27401557}] map_portfolio_id_photo_id: {27401557: [1387169071, 1387152771, 1387152769, 1387152753, 1387152750, 1387152748, 1387152744, 1387152739, 1387152719, 1387152716, 1387152714, 1387152709, 1387152434, 1387152431, 1387152428, 1387152424, 1387152420, 1387152418, 1387152410, 1387151917, 1387151706, 1387151701, 1387151697, 1387151682, 1387151677, 1387151668, 1387151662, 1387151639, 1387151635, 1387151632, 1387151629, 1387151625, 1387151621, 1387151615, 1387151613, 1387151609, 1387151605, 1387151601, 1387151597, 1387151584, 1387151575, 1387151533, 1387151529, 1387151477, 1387151476, 1387151274, 1387151258, 1387151116, 1387150603, 1387150590, 1387150586, 1387150328, 1387150325, 1387150321, 1387150317, 1387150313, 1387149535, 1387149531, 1387149528, 1387149525, 1387149521]} ##### 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.053957462310791016 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Oct 1 14:00: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27401557) 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 : 27401557 get user id for portfolio 27401557 get sub ptf for main ptf 27401557, type 3726 and hashtags ['cartonnette', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'autre_refus', 'Carton_brun', 'environnement', 'plastique', 'mal_croppe', 'papier', 'flou', 'Carton_gris'] 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`=27401557 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','metal','Teint_Dans_La_Masse','autre_refus','Carton_brun','environnement','plastique','mal_croppe','papier','flou','Carton_gris')) 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`=27401557 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','metal','Teint_Dans_La_Masse','autre_refus','Carton_brun','environnement','plastique','mal_croppe','papier','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 27401557, 'sub_port_id': 27401581, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515483, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'cartonnette': {'main_port_id': 27401557, 'sub_port_id': 27401582, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515484, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'plastique': {'main_port_id': 27401557, 'sub_port_id': 27401584, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515485, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'metal': {'main_port_id': 27401557, 'sub_port_id': 27401585, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515486, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'papier': {'main_port_id': 27401557, 'sub_port_id': 27401586, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515487, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'flou': {'main_port_id': 27401557, 'sub_port_id': 27401587, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515488, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'autre_refus': {'main_port_id': 27401557, 'sub_port_id': 27401588, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515489, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'environnement': {'main_port_id': 27401557, 'sub_port_id': 27401589, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515490, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'mal_croppe': {'main_port_id': 27401557, 'sub_port_id': 27401590, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515491, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 27401557, 'sub_port_id': 27401591, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515492, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'Carton_gris': {'main_port_id': 27401557, 'sub_port_id': 27401592, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515493, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}, 'kraft': {'main_port_id': 27401557, 'sub_port_id': 27401593, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515494, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27401581 , 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=27401557 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 (27401581) result : ((1387152783,), (1387152784,), (1387155205,), (1387157291,), (1387157292,), (1387157430,), (1387157513,), (1387157642,), (1387157738,), (1387157739,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401582 , 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=27401557 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 (27401582) result : ((1387152125,), (1387152127,), (1387152782,), (1387155204,), (1387157243,), (1387157245,), (1387157247,), (1387157249,), (1387157251,), (1387157511,), (1387157641,), (1387157735,), (1387157736,), (1387157737,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401584 , 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=27401557 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 (27401584) result : ((1387152786,), (1387154313,), (1387155206,), (1387157300,), (1387157301,), (1387157365,), (1387157741,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401585 , 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=27401557 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 (27401585) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401586 , 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=27401557 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 (27401586) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401587 , 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=27401557 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 (27401587) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401588 , 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=27401557 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 (27401588) result : ((1387152779,), (1387157507,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401589 , 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=27401557 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 (27401589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401590 , 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=27401557 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 (27401590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401591 , 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=27401557 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 (27401591) result : ((1387151824,), (1387157141,), (1387157142,), (1387157143,), (1387157144,), (1387157363,), (1387157504,), (1387157505,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401592 , 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=27401557 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 (27401592) result : ((1387152000,), (1387152002,), (1387152780,), (1387152781,), (1387154311,), (1387154312,), (1387155200,), (1387155201,), (1387155202,), (1387157145,), (1387157146,), (1387157509,), (1387157510,), (1387157637,), (1387157638,), (1387157639,), (1387157731,), (1387157732,), (1387157733,), (1387157734,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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 27401593 , 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=27401557 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 (27401593) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27401557) result : ((1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,)) 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`=27401557 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','metal','Teint_Dans_La_Masse','autre_refus','Carton_brun','environnement','plastique','mal_croppe','papier','flou','Carton_gris')) 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`=27401557 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','metal','Teint_Dans_La_Masse','autre_refus','Carton_brun','environnement','plastique','mal_croppe','papier','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 27401557, 'sub_port_id': 27401596, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515495, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'cartonnette': {'main_port_id': 27401557, 'sub_port_id': 27401597, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515496, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'plastique': {'main_port_id': 27401557, 'sub_port_id': 27401598, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515497, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'metal': {'main_port_id': 27401557, 'sub_port_id': 27401599, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515498, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'papier': {'main_port_id': 27401557, 'sub_port_id': 27401600, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515499, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'flou': {'main_port_id': 27401557, 'sub_port_id': 27401601, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515500, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'autre_refus': {'main_port_id': 27401557, 'sub_port_id': 27401602, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515501, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'environnement': {'main_port_id': 27401557, 'sub_port_id': 27401603, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515502, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'mal_croppe': {'main_port_id': 27401557, 'sub_port_id': 27401604, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515503, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 27401557, 'sub_port_id': 27401605, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515504, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'Carton_gris': {'main_port_id': 27401557, 'sub_port_id': 27401606, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515505, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}, 'kraft': {'main_port_id': 27401557, 'sub_port_id': 27401607, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18515506, 'last_updated_at': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 12, 13, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 12, 5, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401581 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401582 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27401607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27401593 lien utilise dans velours : https://marlene.fotonower.com/velours/27401596,27401597,27401598,27401599,27401600,27401601,27401602,27401603,27401604,27401605,27401606,27401607?tags=Carton_brun,cartonnette,plastique,metal,papier,flou,autre_refus,environnement,mal_croppe,Teint_Dans_La_Masse,Carton_gris,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27401557]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387169071] map_info['map_portfolio_photo'] : {27401557: [1387169071, 1387152771, 1387152769, 1387152753, 1387152750, 1387152748, 1387152744, 1387152739, 1387152719, 1387152716, 1387152714, 1387152709, 1387152434, 1387152431, 1387152428, 1387152424, 1387152420, 1387152418, 1387152410, 1387151917, 1387151706, 1387151701, 1387151697, 1387151682, 1387151677, 1387151668, 1387151662, 1387151639, 1387151635, 1387151632, 1387151629, 1387151625, 1387151621, 1387151615, 1387151613, 1387151609, 1387151605, 1387151601, 1387151597, 1387151584, 1387151575, 1387151533, 1387151529, 1387151477, 1387151476, 1387151274, 1387151258, 1387151116, 1387150603, 1387150590, 1387150586, 1387150328, 1387150325, 1387150321, 1387150317, 1387150313, 1387149535, 1387149531, 1387149528, 1387149525, 1387149521]} final : False mtd_id 4302 list_pids : [1387169071] Looping around the photos to save general results len do output : 1 /27401557. 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, '3806938') ('4302', '27401557', '1387169071', None, None, None, None, None, '3806938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '27401557', "{'Carton_brun': 27401581, 'cartonnette': 27401582, 'plastique': 27401584, 'metal': 27401585, 'papier': 27401586, 'flou': 27401587, 'autre_refus': 27401588, 'environnement': 27401589, 'mal_croppe': 27401590, 'Teint_Dans_La_Masse': 27401591, 'Carton_gris': 27401592, 'kraft': 27401593}", None, None, None, None, '3806938'), ('4302', '27401557', '1387169071', None, None, None, None, None, '3806938')] time used for this insertion : 0.0368649959564209 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.696013450622559 time spend to save output : 0.03715634346008301 total time spend for step 1 : 6.733169794082642 step2:final Wed Oct 1 14:01:06 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 (27401557) 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 27401557 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387149535,1387149531,1387149528,1387149525,1387149521,1387150328,1387150325,1387150321,1387150317,1387150313,1387151682,1387151677,1387151668,1387151662,1387151639,1387151615,1387151274,1387151613,1387151258,1387151609,1387151605,1387151116,1387151601,1387150603,1387151597,1387150590,1387151584,1387150586,1387151575,1387151533,1387151529,1387151477,1387151476,1387151635,1387151632,1387151629,1387151625,1387151621,1387152410,1387151917,1387151706,1387151701,1387151697,1387152434,1387152431,1387152428,1387152424,1387152420,1387152418,1387152719,1387152716,1387152714,1387152709,1387152753,1387152750,1387152748,1387152744,1387152739,1387152771,1387152769,1387169071); 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([27401557]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387169071: ('0.06869781155440395',)} new output for save of step final : {1387169071: ('0.06869781155440395',)} [1387169071] map_info['map_portfolio_photo'] : {27401557: [1387169071, 1387152771, 1387152769, 1387152753, 1387152750, 1387152748, 1387152744, 1387152739, 1387152719, 1387152716, 1387152714, 1387152709, 1387152434, 1387152431, 1387152428, 1387152424, 1387152420, 1387152418, 1387152410, 1387151917, 1387151706, 1387151701, 1387151697, 1387151682, 1387151677, 1387151668, 1387151662, 1387151639, 1387151635, 1387151632, 1387151629, 1387151625, 1387151621, 1387151615, 1387151613, 1387151609, 1387151605, 1387151601, 1387151597, 1387151584, 1387151575, 1387151533, 1387151529, 1387151477, 1387151476, 1387151274, 1387151258, 1387151116, 1387150603, 1387150590, 1387150586, 1387150328, 1387150325, 1387150321, 1387150317, 1387150313, 1387149535, 1387149531, 1387149528, 1387149525, 1387149521]} final : False mtd_id 4302 list_pids : [1387169071] Looping around the photos to save general results len do output : 1 /1387169071.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, '3806938') ('4302', '27401557', '1387169071', None, None, None, None, None, '3806938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '27401557', '1387169071', '0.06869781155440395', None, None, None, None, '3806938')] time used for this insertion : 0.03718924522399902 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.26549577713012695 time spend to save output : 0.03746652603149414 total time spend for step 2 : 0.3029623031616211 step3:velours_tree Wed Oct 1 14:01:06 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 : {27401557: [{'Carton_brun': 27401581, 'cartonnette': 27401582, 'plastique': 27401584, 'metal': 27401585, 'papier': 27401586, 'flou': 27401587, 'autre_refus': 27401588, 'environnement': 27401589, 'mal_croppe': 27401590, 'Teint_Dans_La_Masse': 27401591, 'Carton_gris': 27401592, 'kraft': 27401593}]} input_args_next_step : {27401557: ()} output_args : {27401557: [{'Carton_brun': 27401581, 'cartonnette': 27401582, 'plastique': 27401584, 'metal': 27401585, 'papier': 27401586, 'flou': 27401587, 'autre_refus': 27401588, 'environnement': 27401589, 'mal_croppe': 27401590, 'Teint_Dans_La_Masse': 27401591, 'Carton_gris': 27401592, 'kraft': 27401593}]} args : 27401557 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 27401581, 'cartonnette': 27401582, 'plastique': 27401584, 'metal': 27401585, 'papier': 27401586, 'flou': 27401587, 'autre_refus': 27401588, 'environnement': 27401589, 'mal_croppe': 27401590, 'Teint_Dans_La_Masse': 27401591, 'Carton_gris': 27401592, 'kraft': 27401593},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27401557) 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([27401557]) 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.3565495014190674 time spend to save output : 4.220008850097656e-05 total time spend for step 3 : 0.35659170150756836 step4:send_mail_cod Wed Oct 1 14:01:06 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 : {1387169071: ('0.06869781155440395',)} input_args_next_step : {1387169071: ()} output_args : {1387169071: ('0.06869781155440395',)} args : 1387169071 depend.output_id : 0 complete output_args for input 3 : {27401557: [{'Carton_brun': 27401581, 'cartonnette': 27401582, 'plastique': 27401584, 'metal': 27401585, 'papier': 27401586, 'flou': 27401587, 'autre_refus': 27401588, 'environnement': 27401589, 'mal_croppe': 27401590, 'Teint_Dans_La_Masse': 27401591, 'Carton_gris': 27401592, 'kraft': 27401593}]} input_args_next_step : {1387169071: ('0.06869781155440395',), 27401557: ()} output_args : {27401557: [{'Carton_brun': 27401581, 'cartonnette': 27401582, 'plastique': 27401584, 'metal': 27401585, 'papier': 27401586, 'flou': 27401587, 'autre_refus': 27401588, 'environnement': 27401589, 'mal_croppe': 27401590, 'Teint_Dans_La_Masse': 27401591, 'Carton_gris': 27401592, 'kraft': 27401593}]} args : 27401557 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 :2, first value : ('0.06869781155440395',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27401557) 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 (1387169071) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387169071 download finish for photo 1387169071 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P27401557_01-10-2025_14_01_07.pdf 27401582 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=27401582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387152125: '1759313227_1587219_1387150328_fd26a7e0be1e6d6738e77daef39684bf_rle_crop_3982235859_0.png', 1387152127: '1759313227_1587219_1387149525_4803e34e1be2ad9f933e115ebf332c92_rle_crop_3982235905_0.png', 1387152782: '1759313466_1594684_1387151477_649f801c8d9519ec5b7eeda4cfddcf42_rle_crop_3982249221_0.png', 1387155204: '1759313705_1603990_1387152428_0eacf7c333275b0fe1f28576f13d0a2b_rle_crop_3982251649_0.png', 1387157243: '1759314185_1621304_1387152410_7d56e812c7eeb5011addd6ad71e66af3_rle_crop_3982261526_0.png', 1387157245: '1759314185_1621304_1387151632_1e3caff3f518b8d7fcd65a4159be0603_rle_crop_3982261540_0.png', 1387157247: '1759314185_1621304_1387151629_2c92e5209022bc6c08af17f3d0fa3ae9_rle_crop_3982261556_0.png', 1387157249: '1759314185_1621304_1387151629_2c92e5209022bc6c08af17f3d0fa3ae9_rle_crop_3982261560_0.png', 1387157251: '1759314185_1621304_1387151629_2c92e5209022bc6c08af17f3d0fa3ae9_rle_crop_3982261555_0.png', 1387157511: '1759314546_1634292_1387151682_82221cdc83428eaca65c5740ba2416c7_rle_crop_3982263101_0.png', 1387157641: '1759314666_1637170_1387151575_97f8a9091a1ff53223adea3b3db24836_rle_crop_3982264095_0.png', 1387157735: '1759314786_1642016_1387151677_0e705aecacefd67e54fbaf7df62b2a5b_rle_crop_3982264590_0.png', 1387157736: '1759314786_1642016_1387151677_0e705aecacefd67e54fbaf7df62b2a5b_rle_crop_3982264593_0.png', 1387157737: '1759314786_1642016_1387151668_ae15171c845f548bf0818995eaa5d644_rle_crop_3982264606_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6dc89693b6bb16f1e051971d68908770_77686500.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b1445969c6cdf47a87bb35e3ad2d835a_33026974.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b2efef9ef053a085c84aa4f599990ff4_90290433.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/01bd246186d8f00eb4d135653687d2ab_68121871.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b0cdc59058ae80c18a4381abee989188_35865116.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/bc210d64236c8d34d9cd4e2a2aa91bf9_23781186.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/c8d12e788950ca96966bbd519d9a8061_95409287.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/eaeaf6ebefab56be1ac912b68583cee8_5300487.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/0961f86b3d109a7be9b06743d11dcb46_65528401.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/63bbc6a21865117887de25036901b271_94100449.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d2d39fa48133aa52af3a4314886d8095_80526798.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/209e9077da010cfbedc2ae840f473628_97428073.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/3d6d5e232a356b19c4a49db945a87c7a_65866976.png change filename to text .imagette274015821759320067/ imagette274015821759320067/1759314786_1642016_1387151677_0e705aecacefd67e54fbaf7df62b2a5b_rle_crop_3982264590_0.png.png imagette274015821759320067/1759314666_1637170_1387151575_97f8a9091a1ff53223adea3b3db24836_rle_crop_3982264095_0.png.png imagette274015821759320067/1759314185_1621304_1387151629_2c92e5209022bc6c08af17f3d0fa3ae9_rle_crop_3982261560_0.png.png imagette274015821759320067/1759313705_1603990_1387152428_0eacf7c333275b0fe1f28576f13d0a2b_rle_crop_3982251649_0.png.png imagette274015821759320067/1759314185_1621304_1387151629_2c92e5209022bc6c08af17f3d0fa3ae9_rle_crop_3982261555_0.png.png imagette274015821759320067/1759313227_1587219_1387149525_4803e34e1be2ad9f933e115ebf332c92_rle_crop_3982235905_0.png.png imagette274015821759320067/1759314185_1621304_1387152410_7d56e812c7eeb5011addd6ad71e66af3_rle_crop_3982261526_0.png.png imagette274015821759320067/1759314786_1642016_1387151677_0e705aecacefd67e54fbaf7df62b2a5b_rle_crop_3982264593_0.png.png imagette274015821759320067/1759314546_1634292_1387151682_82221cdc83428eaca65c5740ba2416c7_rle_crop_3982263101_0.png.png imagette274015821759320067/1759314185_1621304_1387151632_1e3caff3f518b8d7fcd65a4159be0603_rle_crop_3982261540_0.png.png imagette274015821759320067/1759314185_1621304_1387151629_2c92e5209022bc6c08af17f3d0fa3ae9_rle_crop_3982261556_0.png.png imagette274015821759320067/1759314786_1642016_1387151668_ae15171c845f548bf0818995eaa5d644_rle_crop_3982264606_0.png.png imagette274015821759320067/1759313466_1594684_1387151477_649f801c8d9519ec5b7eeda4cfddcf42_rle_crop_3982249221_0.png.png imagette274015821759320067/1759313227_1587219_1387150328_fd26a7e0be1e6d6738e77daef39684bf_rle_crop_3982235859_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f186ce9e0be76e8f999c858ea16d106b_21848086.png imagette274015821759320067 27401584 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=27401584 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387152786: '1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249190_0.png', 1387154313: '1759313584_1600227_1387151697_e68363ba58b156c671c9effd53de0e1b_rle_crop_3982249974_0.png', 1387155206: '1759313705_1603990_1387152424_f104eaaa176210284a618baaef7e4939_rle_crop_3982251667_0.png', 1387157300: '1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261578_0.png', 1387157301: '1759314185_1621304_1387151621_b8e9676e0e63f3540ba38f3525cf5978_rle_crop_3982261589_0.png', 1387157365: '1759314306_1624879_1387152753_1b468e833bfb5390fd8b9be4ea5ff243_rle_crop_3982261729_0.png', 1387157741: '1759314786_1642016_1387151615_dd7f1fb136bd62779cec2248add5c282_rle_crop_3982264634_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/22f7f243c8b92df9603962d7a0bd6abc_70692772.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/a2f6218b3f7607f1e7d92ac3cac518fd_74533214.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f2922ec781c1eef22631621704d807e3_56041520.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/124daff4e150a7f3993d2dfa3ec09f37_21275985.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/8a679cddc850c8cf9163ad3910078b1e_55400523.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b71b8dcccf64db26b329dfe396842e1e_23471006.png change filename to text .imagette274015841759320068/ imagette274015841759320068/1759314786_1642016_1387151615_dd7f1fb136bd62779cec2248add5c282_rle_crop_3982264634_0.png.png imagette274015841759320068/1759313584_1600227_1387151697_e68363ba58b156c671c9effd53de0e1b_rle_crop_3982249974_0.png.png imagette274015841759320068/1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249190_0.png.png imagette274015841759320068/1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261578_0.png.png imagette274015841759320068/1759314306_1624879_1387152753_1b468e833bfb5390fd8b9be4ea5ff243_rle_crop_3982261729_0.png.png imagette274015841759320068/1759314185_1621304_1387151621_b8e9676e0e63f3540ba38f3525cf5978_rle_crop_3982261589_0.png.png imagette274015841759320068/1759313705_1603990_1387152424_f104eaaa176210284a618baaef7e4939_rle_crop_3982251667_0.png.png imagette274015851759320069/ imagette274015871759320069/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f2dcd41e5ec262789180cac012442178_1176072.png imagette274015841759320068 27401585 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=27401585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274015851759320069 27401587 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=27401587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274015871759320069 27401588 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=27401588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387152779: '1759313466_1594684_1387151529_ae7f690285471a0fff653f01ea30bef0_rle_crop_3982249206_0.png', 1387157507: '1759314546_1634292_1387151682_82221cdc83428eaca65c5740ba2416c7_rle_crop_3982263103_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/0b7d0cfe1f5969f5329fa7dc87839428_18972200.png change filename to text .imagette274015881759320069/ imagette274015881759320069/1759314546_1634292_1387151682_82221cdc83428eaca65c5740ba2416c7_rle_crop_3982263103_0.png.png imagette274015881759320069/1759313466_1594684_1387151529_ae7f690285471a0fff653f01ea30bef0_rle_crop_3982249206_0.png.png imagette274015901759320069/ imagette274015931759320069/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1dc0212449d31701856017b11a36e3e5_59605046.png imagette274015881759320069 27401590 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=27401590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274015901759320069 27401593 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=27401593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274015931759320069 27401581 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=27401581 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387152783: '1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249197_0.png', 1387152784: '1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249193_0.png', 1387155205: '1759313705_1603990_1387152719_55604b86a457d0bd433f6bf0c5a53582_rle_crop_3982251635_0.png', 1387157291: '1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261575_0.png', 1387157292: '1759314185_1621304_1387151621_b8e9676e0e63f3540ba38f3525cf5978_rle_crop_3982261594_0.png', 1387157430: '1759314424_1629285_1387152771_9d1411bae8594d1f14d11ba8643e9af0_rle_crop_3982262856_0.png', 1387157513: '1759314546_1634292_1387150317_8a0a603d132a8d8fd925c98e22aefeb6_rle_crop_3982263117_0.png', 1387157642: '1759314666_1637170_1387151575_97f8a9091a1ff53223adea3b3db24836_rle_crop_3982264097_0.png', 1387157738: '1759314786_1642016_1387151639_de70f21aae29fb5705988fa05d4d22ac_rle_crop_3982264629_0.png', 1387157739: '1759314786_1642016_1387151615_dd7f1fb136bd62779cec2248add5c282_rle_crop_3982264635_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f3ba8cc1db46e68b47b757709e6d5f87_63719063.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/c47fcfc8740010f4499dd4bee4a1f867_37508846.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/702a394c03ff8c0a90f59fff6d377219_58991071.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7b530b9d2f4d93a19d461f3671fe34c5_55066608.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/3b6e80d8ef300636c5d0ce812e573ff6_54877102.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/a6f58357dd0b668355a7bd96eedcaf5e_27184235.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/77b364af490a8fcbde3de199940c4357_32182925.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/05a1ebd5bb4208a88c47f91f3b4237dc_34465765.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/22fd9c45cae9831b2c4897910e052a63_8236576.png change filename to text .imagette274015811759320069/ imagette274015811759320069/1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249197_0.png.png imagette274015811759320069/1759314185_1621304_1387151621_b8e9676e0e63f3540ba38f3525cf5978_rle_crop_3982261594_0.png.png imagette274015811759320069/1759313705_1603990_1387152719_55604b86a457d0bd433f6bf0c5a53582_rle_crop_3982251635_0.png.png imagette274015811759320069/1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249193_0.png.png imagette274015811759320069/1759314666_1637170_1387151575_97f8a9091a1ff53223adea3b3db24836_rle_crop_3982264097_0.png.png imagette274015811759320069/1759314546_1634292_1387150317_8a0a603d132a8d8fd925c98e22aefeb6_rle_crop_3982263117_0.png.png imagette274015811759320069/1759314786_1642016_1387151615_dd7f1fb136bd62779cec2248add5c282_rle_crop_3982264635_0.png.png imagette274015811759320069/1759314424_1629285_1387152771_9d1411bae8594d1f14d11ba8643e9af0_rle_crop_3982262856_0.png.png imagette274015811759320069/1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261575_0.png.png imagette274015811759320069/1759314786_1642016_1387151639_de70f21aae29fb5705988fa05d4d22ac_rle_crop_3982264629_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d8c723ce81d1b258a23275625b530380_28047767.png imagette274015811759320069 27401591 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=27401591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387151824: '1759313227_1587219_1387149531_55b66d479c5c5dd6c37544416c3db7fb_rle_crop_3982235889_0.png', 1387157141: '1759314185_1621304_1387152410_7d56e812c7eeb5011addd6ad71e66af3_rle_crop_3982261532_0.png', 1387157142: '1759314185_1621304_1387151632_1e3caff3f518b8d7fcd65a4159be0603_rle_crop_3982261550_0.png', 1387157143: '1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261580_0.png', 1387157144: '1759314185_1621304_1387151621_b8e9676e0e63f3540ba38f3525cf5978_rle_crop_3982261595_0.png', 1387157363: '1759314306_1624879_1387152753_1b468e833bfb5390fd8b9be4ea5ff243_rle_crop_3982261731_0.png', 1387157504: '1759314546_1634292_1387150317_8a0a603d132a8d8fd925c98e22aefeb6_rle_crop_3982263118_0.png', 1387157505: '1759314546_1634292_1387150313_e219ce37b62368b5d36093d606e152fd_rle_crop_3982263130_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/756eb978a354752371057fc1a0fb0287_61086665.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/2844dc27ed3cd613ebe0b703df0579e3_56114101.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d2a2e647269359096f5692b9b60d2ba1_20277080.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/0184347812f2cfeffcbd314ce947f4dd_12754472.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/ce474b82f3fb0da4ef51551d2d60a872_57436835.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/5e77a55ecb0536e6eb0ed24993e9a4a7_80413054.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/48fa8e8430bd70a58e1b881a4290759c_44571501.png change filename to text .imagette274015911759320070/ imagette274015911759320070/1759314546_1634292_1387150317_8a0a603d132a8d8fd925c98e22aefeb6_rle_crop_3982263118_0.png.png imagette274015911759320070/1759314306_1624879_1387152753_1b468e833bfb5390fd8b9be4ea5ff243_rle_crop_3982261731_0.png.png imagette274015911759320070/1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261580_0.png.png imagette274015911759320070/1759313227_1587219_1387149531_55b66d479c5c5dd6c37544416c3db7fb_rle_crop_3982235889_0.png.png imagette274015911759320070/1759314546_1634292_1387150313_e219ce37b62368b5d36093d606e152fd_rle_crop_3982263130_0.png.png imagette274015911759320070/1759314185_1621304_1387152410_7d56e812c7eeb5011addd6ad71e66af3_rle_crop_3982261532_0.png.png imagette274015911759320070/1759314185_1621304_1387151621_b8e9676e0e63f3540ba38f3525cf5978_rle_crop_3982261595_0.png.png imagette274015911759320070/1759314185_1621304_1387151632_1e3caff3f518b8d7fcd65a4159be0603_rle_crop_3982261550_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e292b30a5ee4ca6a1a996b63d7cc604a_2426178.png imagette274015911759320070 27401592 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=27401592 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387157146: '1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261574_0.png', 1387157734: '1759314786_1642016_1387151274_53dc63e4b2747fa8a937565d2c4da725_rle_crop_3982264654_0.png', 1387157733: '1759314786_1642016_1387151274_53dc63e4b2747fa8a937565d2c4da725_rle_crop_3982264655_0.png', 1387157732: '1759314786_1642016_1387151613_0d6848232d1cfb38ffc68cd23cb01404_rle_crop_3982264644_0.png', 1387157731: '1759314786_1642016_1387151613_0d6848232d1cfb38ffc68cd23cb01404_rle_crop_3982264645_0.png', 1387157639: '1759314666_1637170_1387151258_e322e65e0e825af736405d5d5e08ab8e_rle_crop_3982264108_0.png', 1387157638: '1759314666_1637170_1387151575_97f8a9091a1ff53223adea3b3db24836_rle_crop_3982264096_0.png', 1387157637: '1759314666_1637170_1387151609_811c3229fbed94bd5efd33bc4c6d6be4_rle_crop_3982264055_0.png', 1387157510: '1759314546_1634292_1387150317_8a0a603d132a8d8fd925c98e22aefeb6_rle_crop_3982263114_0.png', 1387157509: '1759314546_1634292_1387151682_82221cdc83428eaca65c5740ba2416c7_rle_crop_3982263098_0.png', 1387152000: '1759313227_1587219_1387149531_55b66d479c5c5dd6c37544416c3db7fb_rle_crop_3982235882_0.png', 1387157145: '1759314185_1621304_1387152410_7d56e812c7eeb5011addd6ad71e66af3_rle_crop_3982261527_0.png', 1387155202: '1759313705_1603990_1387152418_968b3578d08292342820d2980f8a636d_rle_crop_3982251689_0.png', 1387155201: '1759313705_1603990_1387152420_1a2ecfdbd212bc9219f51b99760625ad_rle_crop_3982251678_0.png', 1387155200: '1759313705_1603990_1387152431_d201634f4c823a531944dc30309febb0_rle_crop_3982251642_0.png', 1387154312: '1759313584_1600227_1387151697_e68363ba58b156c671c9effd53de0e1b_rle_crop_3982249981_0.png', 1387154311: '1759313584_1600227_1387151706_2e412b0b495637515bc7ad8832d6047c_rle_crop_3982249963_0.png', 1387152781: '1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249189_0.png', 1387152780: '1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249199_0.png', 1387152002: '1759313227_1587219_1387149531_55b66d479c5c5dd6c37544416c3db7fb_rle_crop_3982235884_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/200397618cccd1b183298c4234bffe8b_32853215.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b4d3977508bdf3f48c0796a3ca46acb1_66406209.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/01ba37de388089241bc2ce1fdba7160c_43748956.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b4d3977508bdf3f48c0796a3ca46acb1_20434968.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/01ba37de388089241bc2ce1fdba7160c_25489129.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/daa8cb4af1054e27f81a7baf78aaa483_33931304.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1b7eb7cdb28e89ebccacbe206f731437_62329872.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/daa8cb4af1054e27f81a7baf78aaa483_75701845.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/2dac45ae69f1fcca4e3ddbbc7342cb26_88955532.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/137984ee529b5c05b8381b946a201323_30831428.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b31d58599e80007d365940f014253e18_30626118.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e5597b6b37b5ddc481be48a7a81781de_39586964.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/91133166dad26d89ab5b5e8182e00c31_69761820.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b4351443d4ba79398a7aab1d93d3fed9_26322686.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/10fb863a64dda37a51b075bf8d6b5e8e_90983368.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b73de54e82d6d41d66c7825837a24ca3_3042690.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/74c6f842bde862eeb7541c8cceab2a6f_16829439.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6d3b0e8c8d787ad36e2db8391bf9ed24_22495847.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6a848f686299187c6ac24f0f906fb594_17710893.png change filename to text .imagette274015921759320071/ imagette274015921759320071/1759313705_1603990_1387152420_1a2ecfdbd212bc9219f51b99760625ad_rle_crop_3982251678_0.png.png imagette274015921759320071/1759314666_1637170_1387151575_97f8a9091a1ff53223adea3b3db24836_rle_crop_3982264096_0.png.png imagette274015921759320071/1759313584_1600227_1387151706_2e412b0b495637515bc7ad8832d6047c_rle_crop_3982249963_0.png.png imagette274015921759320071/1759314786_1642016_1387151613_0d6848232d1cfb38ffc68cd23cb01404_rle_crop_3982264644_0.png.png imagette274015921759320071/1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249189_0.png.png imagette274015921759320071/1759314786_1642016_1387151274_53dc63e4b2747fa8a937565d2c4da725_rle_crop_3982264655_0.png.png imagette274015921759320071/1759314546_1634292_1387150317_8a0a603d132a8d8fd925c98e22aefeb6_rle_crop_3982263114_0.png.png imagette274015921759320071/1759314185_1621304_1387151625_063c46f145c7762f17fd951007952d3e_rle_crop_3982261574_0.png.png imagette274015921759320071/1759314666_1637170_1387151258_e322e65e0e825af736405d5d5e08ab8e_rle_crop_3982264108_0.png.png imagette274015921759320071/1759314786_1642016_1387151613_0d6848232d1cfb38ffc68cd23cb01404_rle_crop_3982264645_0.png.png imagette274015921759320071/1759313227_1587219_1387149531_55b66d479c5c5dd6c37544416c3db7fb_rle_crop_3982235882_0.png.png imagette274015921759320071/1759313466_1594684_1387151533_5fb9b0b56e5a2208d04bdce5024d3521_rle_crop_3982249199_0.png.png imagette274015921759320071/1759313227_1587219_1387149531_55b66d479c5c5dd6c37544416c3db7fb_rle_crop_3982235884_0.png.png imagette274015921759320071/1759314546_1634292_1387151682_82221cdc83428eaca65c5740ba2416c7_rle_crop_3982263098_0.png.png imagette274015921759320071/1759313584_1600227_1387151697_e68363ba58b156c671c9effd53de0e1b_rle_crop_3982249981_0.png.png imagette274015921759320071/1759314786_1642016_1387151274_53dc63e4b2747fa8a937565d2c4da725_rle_crop_3982264654_0.png.png imagette274015921759320071/1759313705_1603990_1387152418_968b3578d08292342820d2980f8a636d_rle_crop_3982251689_0.png.png imagette274015921759320071/1759314666_1637170_1387151609_811c3229fbed94bd5efd33bc4c6d6be4_rle_crop_3982264055_0.png.png imagette274015921759320071/1759313705_1603990_1387152431_d201634f4c823a531944dc30309febb0_rle_crop_3982251642_0.png.png imagette274015921759320071/1759314185_1621304_1387152410_7d56e812c7eeb5011addd6ad71e66af3_rle_crop_3982261527_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6ceafbc4d4bb8bfdfccc753b6f67faec_79123758.png imagette274015921759320071 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27401557 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27401596,27401597,27401598,27401599,27401600,27401601,27401602,27401603,27401604,27401605,27401606,27401607?tags=Carton_brun,cartonnette,plastique,metal,papier,flou,autre_refus,environnement,mal_croppe,Teint_Dans_La_Masse,Carton_gris,kraft your option no_mail is active, we will not send the real mail to your client args[1387169071] : ('0.06869781155440395',) no score found for photo 1387169071 We are sending mail with results at report@fotonower.com refus_total : 0.06869781155440395 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=27401557 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_P27401557_01-10-2025_14_01_07.pdf results_Auto_P27401557_01-10-2025_14_01_07.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27401557_01-10-2025_14_01_07.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','27401557','results_Auto_P27401557_01-10-2025_14_01_07.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27401557_01-10-2025_14_01_07.pdf','pdf','','0.27','0.06869781155440395') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27401557]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387169071] map_info['map_portfolio_photo'] : {27401557: [1387169071, 1387152771, 1387152769, 1387152753, 1387152750, 1387152748, 1387152744, 1387152739, 1387152719, 1387152716, 1387152714, 1387152709, 1387152434, 1387152431, 1387152428, 1387152424, 1387152420, 1387152418, 1387152410, 1387151917, 1387151706, 1387151701, 1387151697, 1387151682, 1387151677, 1387151668, 1387151662, 1387151639, 1387151635, 1387151632, 1387151629, 1387151625, 1387151621, 1387151615, 1387151613, 1387151609, 1387151605, 1387151601, 1387151597, 1387151584, 1387151575, 1387151533, 1387151529, 1387151477, 1387151476, 1387151274, 1387151258, 1387151116, 1387150603, 1387150590, 1387150586, 1387150328, 1387150325, 1387150321, 1387150317, 1387150313, 1387149535, 1387149531, 1387149528, 1387149525, 1387149521]} final : False mtd_id 4302 list_pids : [1387169071] 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, '3806938') ('4302', '27401557', '1387169071', None, None, None, None, None, '3806938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '27401557', '1387169071', None, None, None, None, None, '3806938')] time used for this insertion : 0.038923025131225586 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.301137447357178 time spend to save output : 0.039343833923339844 total time spend for step 4 : 7.340481281280518 step5:split_time_score Wed Oct 1 14:01:14 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 : ['27401557'] 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 : [('27401557',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27401557) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387169071: {'path': 'temp/1759320066_2666827_1387169071_27806bd375660cdf05fdd494cd24ba6d.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 = 27401557; (('arc_en_ciel_jrm_bis',), ('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 = 27401557 group by h (('12', 61),) 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=27401557 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 (27401557) 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 (27401557) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01102025 27401557 Nombre de photos uploadées : 61 / 23040 (0%) 01102025 27401557 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 01102025 27401557 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1387149535, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/fa669f0cc4f5814845103a86e89bb2fa.jpg', 'username': None, 'uploaded_at': 1759312867, 'text': 'image_01102025_12_00_05_010145m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387149531, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/55b66d479c5c5dd6c37544416c3db7fb.jpg', 'username': None, 'uploaded_at': 1759312867, 'text': 'image_01102025_12_00_15_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387149528, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/57d26d509931bb1c50f2ae1daed0530e.jpg', 'username': None, 'uploaded_at': 1759312867, 'text': 'image_01102025_12_00_25_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387149525, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/4803e34e1be2ad9f933e115ebf332c92.jpg', 'username': None, 'uploaded_at': 1759312867, 'text': 'image_01102025_12_00_34_009124m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028984546661376953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27401557, '2025-10-01' ) 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-10-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2369419,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6565704345703125 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= 2369419 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27375839, 'dashboard_result_id': 15869666, '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_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27376525, 'dashboard_result_id': 15869667, '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_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27376906, 'dashboard_result_id': 15869668, '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_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27377191, 'dashboard_result_id': 15869669, '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_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27378456, 'dashboard_result_id': 15869670, '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_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27378717, 'dashboard_result_id': 15869671, '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_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27378994, 'dashboard_result_id': 15869672, '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_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27379410, 'dashboard_result_id': 15869673, '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_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27379907, 'dashboard_result_id': 15869674, '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_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27380372, 'dashboard_result_id': 15869675, '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_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27380848, 'dashboard_result_id': 15869676, '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_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27381440, 'dashboard_result_id': 15869677, '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_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27381997, 'dashboard_result_id': 15869678, '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_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27382455, 'dashboard_result_id': 15869679, '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_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27382890, 'dashboard_result_id': 15869680, '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_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27384322, 'dashboard_result_id': 15869681, '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_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27384680, 'dashboard_result_id': 15869682, '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_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27384953, 'dashboard_result_id': 15869683, '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_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27385199, 'dashboard_result_id': 15869684, '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_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27385566, 'dashboard_result_id': 15869685, '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_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27385977, 'dashboard_result_id': 15869686, '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_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27386362, 'dashboard_result_id': 15869687, '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_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27386738, 'dashboard_result_id': 15869688, '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_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27387203, 'dashboard_result_id': 15869689, '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_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27387984, 'dashboard_result_id': 15869690, '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_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27388759, 'dashboard_result_id': 15869691, '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_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27389340, 'dashboard_result_id': 15869692, '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_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27390105, 'dashboard_result_id': 15869693, '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_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27390791, 'dashboard_result_id': 15869694, '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_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27391355, 'dashboard_result_id': 15869695, '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_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27392176, 'dashboard_result_id': 15869696, '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_P27392176_01-10-2025_09_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27392204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27392205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27392206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27392207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27392208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27392209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27392210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27392211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27392212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27392213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27392214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27392215, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27394659, 'dashboard_result_id': 15869697, '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_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27395242, 'dashboard_result_id': 15869698, '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_P27395242_01-10-2025_10_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395272, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27395913, 'dashboard_result_id': 15869699, '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_P27395913_01-10-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395935, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27396429, 'dashboard_result_id': 15869700, '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_P27396429_01-10-2025_10_33_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27396465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27396466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27396467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27396468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27396469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27396470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27396471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27396472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27396473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27396474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27396475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27396476, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27397076, 'dashboard_result_id': 15869701, '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_P27397076_01-10-2025_10_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397102, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27397673, 'dashboard_result_id': 15869702, '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_P27397673_01-10-2025_11_03_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397693, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27398369, 'dashboard_result_id': 15869703, '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_P27398369_01-10-2025_11_23_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27398446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27398447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27398448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27398449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27398450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27398451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27398452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27398453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27398454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27398455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27398456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27398457, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27399474, 'dashboard_result_id': 15869704, '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_P27399474_01-10-2025_11_33_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27399530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399541, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27399974, 'dashboard_result_id': 15869705, '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_P27399974_01-10-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400000, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27400780, 'dashboard_result_id': 15869706, '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_P27400780_01-10-2025_12_09_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27400837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27400838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27400839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27400840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27400841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27400843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27400844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27400845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27400847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27400848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27400849, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27401557, 'dashboard_result_id': 15869707, '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_P27401557_01-10-2025_12_13_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27401581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27401582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27401584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27401585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27401586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27401587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27401588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27401589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27401590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27401591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27401592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27401593, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27403699, 'dashboard_result_id': 15869708, '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_P27403699_01-10-2025_13_31_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27403736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403747, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27403901, 'dashboard_result_id': 15869709, '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_P27403901_01-10-2025_13_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27403921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403930, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381511, 'mtr_portfolio_id': 27404296, 'dashboard_result_id': 15869710, '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_P27404296_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404334, '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 = 27375839 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': 3801426, 'mtr_portfolio_id': 27375839, 'created_at': datetime.datetime(2025, 10, 1, 6, 16), 'result': '0.06789394242096429', 'result_long': None, 'result_double': None}] Qualite : 0.06789394242096429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27375839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_06_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27375839 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_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}" where mtr_portfolio_id = 27375839 and dashboard_run_id = 2381519 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`=27375839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869666, 0.06789394242096429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, '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 = 27376525 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': 3801427, 'mtr_portfolio_id': 27376525, 'created_at': datetime.datetime(2025, 10, 1, 6, 16, 5), 'result': '0.07886199448450112', 'result_long': None, 'result_double': None}] Qualite : 0.07886199448450112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27376525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_06_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27376525 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_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, 'pht': 3726}}" where mtr_portfolio_id = 27376525 and dashboard_run_id = 2381519 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`=27376525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869667, 0.07886199448450112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, '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 = 27376906 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': 3801428, 'mtr_portfolio_id': 27376906, 'created_at': datetime.datetime(2025, 10, 1, 6, 16, 32), 'result': '0.03770473165226238', 'result_long': None, 'result_double': None}] Qualite : 0.03770473165226238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27376906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376906_01-10-2025_06_16_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27376906 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_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, 'pht': 3726}}" where mtr_portfolio_id = 27376906 and dashboard_run_id = 2381519 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`=27376906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869668, 0.03770473165226238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, '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 = 27377191 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': 3801429, 'mtr_portfolio_id': 27377191, 'created_at': datetime.datetime(2025, 10, 1, 6, 17, 29), 'result': '0.0717714398830473', 'result_long': None, 'result_double': None}] Qualite : 0.0717714398830473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27377191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27377191_01-10-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27377191 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_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, 'pht': 3726}}" where mtr_portfolio_id = 27377191 and dashboard_run_id = 2381519 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`=27377191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869669, 0.0717714398830473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, '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 = 27378456 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': 3801430, 'mtr_portfolio_id': 27378456, 'created_at': datetime.datetime(2025, 10, 1, 6, 18, 3), 'result': '0.08043277079167623', 'result_long': None, 'result_double': None}] Qualite : 0.08043277079167623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378456_01-10-2025_06_18_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378456 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_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, 'pht': 3726}}" where mtr_portfolio_id = 27378456 and dashboard_run_id = 2381519 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`=27378456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869670, 0.08043277079167623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, '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 = 27378717 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': 3801431, 'mtr_portfolio_id': 27378717, 'created_at': datetime.datetime(2025, 10, 1, 6, 18, 32), 'result': '0.09620342357616525', 'result_long': None, 'result_double': None}] Qualite : 0.09620342357616525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378717_01-10-2025_06_18_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378717 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_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, 'pht': 3726}}" where mtr_portfolio_id = 27378717 and dashboard_run_id = 2381519 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`=27378717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869671, 0.09620342357616525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, '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 = 27378994 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': 3801432, 'mtr_portfolio_id': 27378994, 'created_at': datetime.datetime(2025, 10, 1, 6, 20, 2), 'result': '0.05679053781888002', 'result_long': None, 'result_double': None}] Qualite : 0.05679053781888002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378994_01-10-2025_06_20_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378994 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_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, 'pht': 3726}}" where mtr_portfolio_id = 27378994 and dashboard_run_id = 2381519 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`=27378994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869672, 0.05679053781888002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, '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 = 27379410 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': 3801433, 'mtr_portfolio_id': 27379410, 'created_at': datetime.datetime(2025, 10, 1, 6, 20, 34), 'result': '0.04770836897525871', 'result_long': None, 'result_double': None}] Qualite : 0.04770836897525871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27379410 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379410_01-10-2025_06_20_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27379410 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_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, 'pht': 3726}}" where mtr_portfolio_id = 27379410 and dashboard_run_id = 2381519 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`=27379410 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869673, 0.04770836897525871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, '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 = 27379907 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': 3801434, 'mtr_portfolio_id': 27379907, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 6), 'result': '0.06099107227027687', 'result_long': None, 'result_double': None}] Qualite : 0.06099107227027687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27379907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379907_01-10-2025_06_21_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27379907 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_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, 'pht': 3726}}" where mtr_portfolio_id = 27379907 and dashboard_run_id = 2381519 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`=27379907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869674, 0.06099107227027687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, '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 = 27380372 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': 3801435, 'mtr_portfolio_id': 27380372, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 35), 'result': '0.047009914209299924', 'result_long': None, 'result_double': None}] Qualite : 0.047009914209299924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27380372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380372_01-10-2025_06_21_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27380372 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_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, 'pht': 3726}}" where mtr_portfolio_id = 27380372 and dashboard_run_id = 2381519 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`=27380372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869675, 0.047009914209299924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, '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 = 27380848 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': 3801436, 'mtr_portfolio_id': 27380848, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 59), 'result': '0.040862898360302366', 'result_long': None, 'result_double': None}] Qualite : 0.040862898360302366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27380848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380848_01-10-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27380848 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_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, 'pht': 3726}}" where mtr_portfolio_id = 27380848 and dashboard_run_id = 2381519 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`=27380848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869676, 0.040862898360302366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, '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 = 27381440 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': 3801437, 'mtr_portfolio_id': 27381440, 'created_at': datetime.datetime(2025, 10, 1, 6, 22, 32), 'result': '0.05168652002226309', 'result_long': None, 'result_double': None}] Qualite : 0.05168652002226309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27381440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381440_01-10-2025_06_22_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27381440 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_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, 'pht': 3726}}" where mtr_portfolio_id = 27381440 and dashboard_run_id = 2381519 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`=27381440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869677, 0.05168652002226309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, '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 = 27381997 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': 3801438, 'mtr_portfolio_id': 27381997, 'created_at': datetime.datetime(2025, 10, 1, 6, 23, 33), 'result': '0.04641152411594666', 'result_long': None, 'result_double': None}] Qualite : 0.04641152411594666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27381997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381997_01-10-2025_06_23_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27381997 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_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, 'pht': 3726}}" where mtr_portfolio_id = 27381997 and dashboard_run_id = 2381519 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`=27381997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869678, 0.04641152411594666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, '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 = 27382455 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': 3801439, 'mtr_portfolio_id': 27382455, 'created_at': datetime.datetime(2025, 10, 1, 6, 24, 3), 'result': '0.055765434016933804', 'result_long': None, 'result_double': None}] Qualite : 0.055765434016933804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27382455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382455_01-10-2025_06_24_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27382455 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_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, 'pht': 3726}}" where mtr_portfolio_id = 27382455 and dashboard_run_id = 2381519 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`=27382455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869679, 0.055765434016933804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, '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 = 27382890 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': 3801440, 'mtr_portfolio_id': 27382890, 'created_at': datetime.datetime(2025, 10, 1, 6, 24, 34), 'result': '0.05617742493750273', 'result_long': None, 'result_double': None}] Qualite : 0.05617742493750273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27382890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382890_01-10-2025_06_24_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27382890 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_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, 'pht': 3726}}" where mtr_portfolio_id = 27382890 and dashboard_run_id = 2381519 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`=27382890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869680, 0.05617742493750273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, '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 = 27384322 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': 3801441, 'mtr_portfolio_id': 27384322, 'created_at': datetime.datetime(2025, 10, 1, 6, 25, 34), 'result': '0.056190374737689314', 'result_long': None, 'result_double': None}] Qualite : 0.056190374737689314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384322_01-10-2025_06_25_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384322 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_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, 'pht': 3726}}" where mtr_portfolio_id = 27384322 and dashboard_run_id = 2381519 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`=27384322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869681, 0.056190374737689314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, '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 = 27384680 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': 3801442, 'mtr_portfolio_id': 27384680, 'created_at': datetime.datetime(2025, 10, 1, 6, 26, 2), 'result': '0.027792684796642698', 'result_long': None, 'result_double': None}] Qualite : 0.027792684796642698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384680 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384680_01-10-2025_06_26_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384680 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_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, 'pht': 3726}}" where mtr_portfolio_id = 27384680 and dashboard_run_id = 2381519 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`=27384680 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869682, 0.027792684796642698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, '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 = 27384953 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': 3801337, 'mtr_portfolio_id': 27384953, 'created_at': datetime.datetime(2025, 10, 1, 5, 47, 1), 'result': '0.03587679899509765', 'result_long': None, 'result_double': None}] Qualite : 0.03587679899509765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384953_01-10-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384953 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_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, 'pht': 3726}}" where mtr_portfolio_id = 27384953 and dashboard_run_id = 2381519 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`=27384953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869683, 0.03587679899509765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, '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 = 27385199 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': 3801581, 'mtr_portfolio_id': 27385199, 'created_at': datetime.datetime(2025, 10, 1, 6, 5, 30), 'result': '0.06667589482955814', 'result_long': None, 'result_double': None}] Qualite : 0.06667589482955814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385199_01-10-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385199 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_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, 'pht': 3726}}" where mtr_portfolio_id = 27385199 and dashboard_run_id = 2381519 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`=27385199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869684, 0.06667589482955814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, '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 = 27385566 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': 3801705, 'mtr_portfolio_id': 27385566, 'created_at': datetime.datetime(2025, 10, 1, 6, 19, 35), 'result': '0.08794878679382613', 'result_long': None, 'result_double': None}] Qualite : 0.08794878679382613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385566_01-10-2025_06_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385566 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_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, 'pht': 3726}}" where mtr_portfolio_id = 27385566 and dashboard_run_id = 2381519 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`=27385566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869685, 0.08794878679382613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, '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 = 27385977 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': 3801822, 'mtr_portfolio_id': 27385977, 'created_at': datetime.datetime(2025, 10, 1, 6, 33, 33), 'result': '0.04726542234494339', 'result_long': None, 'result_double': None}] Qualite : 0.04726542234494339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385977_01-10-2025_06_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385977 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_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, 'pht': 3726}}" where mtr_portfolio_id = 27385977 and dashboard_run_id = 2381519 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`=27385977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869686, 0.04726542234494339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, '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 = 27386362 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': 3802022, 'mtr_portfolio_id': 27386362, 'created_at': datetime.datetime(2025, 10, 1, 6, 47), 'result': '0.05934289922956309', 'result_long': None, 'result_double': None}] Qualite : 0.05934289922956309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27386362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386362_01-10-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27386362 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_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, 'pht': 3726}}" where mtr_portfolio_id = 27386362 and dashboard_run_id = 2381519 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`=27386362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869687, 0.05934289922956309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, '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 = 27386738 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': 3802223, 'mtr_portfolio_id': 27386738, 'created_at': datetime.datetime(2025, 10, 1, 7, 2, 59), 'result': '0.04737731496260788', 'result_long': None, 'result_double': None}] Qualite : 0.04737731496260788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27386738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386738_01-10-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27386738 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_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, 'pht': 3726}}" where mtr_portfolio_id = 27386738 and dashboard_run_id = 2381519 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`=27386738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869688, 0.04737731496260788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, '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 = 27387203 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': 3802441, 'mtr_portfolio_id': 27387203, 'created_at': datetime.datetime(2025, 10, 1, 7, 17), 'result': '0.10709898913061865', 'result_long': None, 'result_double': None}] Qualite : 0.10709898913061865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27387203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387203_01-10-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27387203 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_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, 'pht': 3726}}" where mtr_portfolio_id = 27387203 and dashboard_run_id = 2381519 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`=27387203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869689, 0.10709898913061865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, '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 = 27387984 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': 3802704, 'mtr_portfolio_id': 27387984, 'created_at': datetime.datetime(2025, 10, 1, 7, 33, 36), 'result': '0.03432529522791524', 'result_long': None, 'result_double': None}] Qualite : 0.03432529522791524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27387984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387984_01-10-2025_07_33_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27387984 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_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, 'pht': 3726}}" where mtr_portfolio_id = 27387984 and dashboard_run_id = 2381519 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`=27387984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869690, 0.03432529522791524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, '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 = 27388759 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': 3802946, 'mtr_portfolio_id': 27388759, 'created_at': datetime.datetime(2025, 10, 1, 7, 47, 4), 'result': '0.029221342880138702', 'result_long': None, 'result_double': None}] Qualite : 0.029221342880138702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27388759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27388759_01-10-2025_07_47_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27388759 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_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, 'pht': 3726}}" where mtr_portfolio_id = 27388759 and dashboard_run_id = 2381519 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`=27388759 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869691, 0.029221342880138702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, '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 = 27389340 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': 3803167, 'mtr_portfolio_id': 27389340, 'created_at': datetime.datetime(2025, 10, 1, 8, 5, 31), 'result': '0.043546774742017916', 'result_long': None, 'result_double': None}] Qualite : 0.043546774742017916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27389340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27389340_01-10-2025_08_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27389340 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_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, 'pht': 3726}}" where mtr_portfolio_id = 27389340 and dashboard_run_id = 2381519 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`=27389340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869692, 0.043546774742017916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, '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 = 27390105 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': 3803495, 'mtr_portfolio_id': 27390105, 'created_at': datetime.datetime(2025, 10, 1, 8, 18, 59), 'result': '0.045633077260058254', 'result_long': None, 'result_double': None}] Qualite : 0.045633077260058254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27390105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390105_01-10-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27390105 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_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, 'pht': 3726}}" where mtr_portfolio_id = 27390105 and dashboard_run_id = 2381519 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`=27390105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869693, 0.045633077260058254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, '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 = 27390791 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': 3803728, 'mtr_portfolio_id': 27390791, 'created_at': datetime.datetime(2025, 10, 1, 8, 33, 28), 'result': '0.06617770179097766', 'result_long': None, 'result_double': None}] Qualite : 0.06617770179097766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27390791 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390791_01-10-2025_08_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27390791 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_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, 'pht': 3726}}" where mtr_portfolio_id = 27390791 and dashboard_run_id = 2381519 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`=27390791 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869694, 0.06617770179097766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, '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 = 27391355 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': 3803988, 'mtr_portfolio_id': 27391355, 'created_at': datetime.datetime(2025, 10, 1, 8, 47, 3), 'result': '0.08950805302203253', 'result_long': None, 'result_double': None}] Qualite : 0.08950805302203253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27391355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27391355_01-10-2025_08_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27391355 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_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, 'pht': 3726}}" where mtr_portfolio_id = 27391355 and dashboard_run_id = 2381519 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`=27391355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869695, 0.08950805302203253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, '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 = 27392176 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27392176 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27392176 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27392176 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27392176 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27392176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27392176_01-10-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27392176 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_P27392176_01-10-2025_09_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27392204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27392205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27392206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27392207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27392208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27392209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27392210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27392211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27392212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27392213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27392214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27392215, 'pht': 3726}}" where mtr_portfolio_id = 27392176 and dashboard_run_id = 2381519 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 = 27394659 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': 3804916, 'mtr_portfolio_id': 27394659, 'created_at': datetime.datetime(2025, 10, 1, 9, 47), 'result': '0.053429043929547525', 'result_long': None, 'result_double': None}] Qualite : 0.053429043929547525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27394659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27394659 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_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, 'pht': 3726}}" where mtr_portfolio_id = 27394659 and dashboard_run_id = 2381519 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`=27394659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869697, 0.053429043929547525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, '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 = 27395242 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': 3804968, 'mtr_portfolio_id': 27395242, 'created_at': datetime.datetime(2025, 10, 1, 10, 3, 33), 'result': '0.042913388907675626', 'result_long': None, 'result_double': None}] Qualite : 0.042913388907675626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27395242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395242_01-10-2025_10_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27395242 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_P27395242_01-10-2025_10_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395272, 'pht': 3726}}" where mtr_portfolio_id = 27395242 and dashboard_run_id = 2381519 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`=27395242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869698, 0.042913388907675626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395242_01-10-2025_10_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395272, '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 = 27395913 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': 3805088, 'mtr_portfolio_id': 27395913, 'created_at': datetime.datetime(2025, 10, 1, 10, 16, 58), 'result': '0.03279612333547262', 'result_long': None, 'result_double': None}] Qualite : 0.03279612333547262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27395913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395913_01-10-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27395913 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_P27395913_01-10-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395935, 'pht': 3726}}" where mtr_portfolio_id = 27395913 and dashboard_run_id = 2381519 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`=27395913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869699, 0.03279612333547262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395913_01-10-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395935, '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 = 27396429 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': 3805206, 'mtr_portfolio_id': 27396429, 'created_at': datetime.datetime(2025, 10, 1, 10, 33, 36), 'result': '0.043550904037359235', 'result_long': None, 'result_double': None}] Qualite : 0.043550904037359235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27396429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27396429_01-10-2025_10_33_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27396429 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_P27396429_01-10-2025_10_33_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27396465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27396466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27396467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27396468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27396469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27396470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27396471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27396472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27396473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27396474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27396475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27396476, 'pht': 3726}}" where mtr_portfolio_id = 27396429 and dashboard_run_id = 2381519 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`=27396429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869700, 0.043550904037359235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27396429_01-10-2025_10_33_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27396465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27396466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27396467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27396468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27396469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27396470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27396471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27396472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27396473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27396474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27396475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27396476, '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 = 27397076 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': 3805309, 'mtr_portfolio_id': 27397076, 'created_at': datetime.datetime(2025, 10, 1, 10, 47, 3), 'result': '0.04184023677921255', 'result_long': None, 'result_double': None}] Qualite : 0.04184023677921255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27397076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397076_01-10-2025_10_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27397076 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_P27397076_01-10-2025_10_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397102, 'pht': 3726}}" where mtr_portfolio_id = 27397076 and dashboard_run_id = 2381519 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`=27397076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869701, 0.04184023677921255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397076_01-10-2025_10_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397102, '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 = 27397673 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': 3805527, 'mtr_portfolio_id': 27397673, 'created_at': datetime.datetime(2025, 10, 1, 11, 3, 2), 'result': '0.04418884890634897', 'result_long': None, 'result_double': None}] Qualite : 0.04418884890634897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27397673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397673_01-10-2025_11_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27397673 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_P27397673_01-10-2025_11_03_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397693, 'pht': 3726}}" where mtr_portfolio_id = 27397673 and dashboard_run_id = 2381519 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`=27397673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869702, 0.04418884890634897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397673_01-10-2025_11_03_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397693, '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 = 27398369 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': 3805766, 'mtr_portfolio_id': 27398369, 'created_at': datetime.datetime(2025, 10, 1, 11, 23, 2), 'result': '0.03474066181206954', 'result_long': None, 'result_double': None}] Qualite : 0.03474066181206954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27398369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27398369_01-10-2025_11_23_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27398369 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_P27398369_01-10-2025_11_23_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27398446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27398447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27398448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27398449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27398450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27398451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27398452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27398453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27398454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27398455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27398456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27398457, 'pht': 3726}}" where mtr_portfolio_id = 27398369 and dashboard_run_id = 2381519 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`=27398369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869703, 0.03474066181206954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27398369_01-10-2025_11_23_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27398446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27398447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27398448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27398449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27398450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27398451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27398452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27398453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27398454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27398455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27398456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27398457, '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 = 27399474 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': 3806201, 'mtr_portfolio_id': 27399474, 'created_at': datetime.datetime(2025, 10, 1, 11, 33, 30), 'result': '0.010339588293553898', 'result_long': None, 'result_double': None}] Qualite : 0.010339588293553898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27399474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399474_01-10-2025_11_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27399474 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_P27399474_01-10-2025_11_33_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27399530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399541, 'pht': 3726}}" where mtr_portfolio_id = 27399474 and dashboard_run_id = 2381519 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`=27399474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869704, 0.010339588293553898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399474_01-10-2025_11_33_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27399530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399541, '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 = 27399974 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': 3806361, 'mtr_portfolio_id': 27399974, 'created_at': datetime.datetime(2025, 10, 1, 11, 49), 'result': '0.022585780139675566', 'result_long': None, 'result_double': None}] Qualite : 0.022585780139675566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27399974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399974_01-10-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27399974 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_P27399974_01-10-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400000, 'pht': 3726}}" where mtr_portfolio_id = 27399974 and dashboard_run_id = 2381519 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`=27399974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869705, 0.022585780139675566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399974_01-10-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400000, '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 = 27400780 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': 3806640, 'mtr_portfolio_id': 27400780, 'created_at': datetime.datetime(2025, 10, 1, 12, 9, 2), 'result': '0.036449492833167896', 'result_long': None, 'result_double': None}] Qualite : 0.036449492833167896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27400780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27400780_01-10-2025_12_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27400780 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_P27400780_01-10-2025_12_09_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27400837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27400838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27400839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27400840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27400841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27400843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27400844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27400845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27400847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27400848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27400849, 'pht': 3726}}" where mtr_portfolio_id = 27400780 and dashboard_run_id = 2381519 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`=27400780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869706, 0.036449492833167896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27400780_01-10-2025_12_09_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27400837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27400838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27400839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27400840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27400841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27400843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27400844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27400845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27400847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27400848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27400849, '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 = 27401557 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': 3806938, 'mtr_portfolio_id': 27401557, 'created_at': datetime.datetime(2025, 10, 1, 14, 1, 6), 'result': '0.06869781155440395', 'result_long': None, 'result_double': None}] Qualite : 0.06869781155440395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27401557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27401557_01-10-2025_14_01_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27401557 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_P27401557_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27401581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27401582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27401584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27401585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27401586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27401587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27401588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27401589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27401590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27401591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27401592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27401593, 'pht': 3726}}" where mtr_portfolio_id = 27401557 and dashboard_run_id = 2381519 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`=27401557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869707, 0.06869781155440395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27401557_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27401581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27401582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27401584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27401585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27401586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27401587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27401588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27401589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27401590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27401591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27401592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27401593, '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 = 27403699 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27403699 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27403699 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27403699 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27403699 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27403699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27403699_01-10-2025_13_31_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27403699 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_P27403699_01-10-2025_13_31_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27403736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403747, 'pht': 3726}}" where mtr_portfolio_id = 27403699 and dashboard_run_id = 2381511 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 = 27403901 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': 3807577, 'mtr_portfolio_id': 27403901, 'created_at': datetime.datetime(2025, 10, 1, 13, 49, 5), 'result': '0.0942114492669756', 'result_long': None, 'result_double': None}] Qualite : 0.0942114492669756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27403901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27403901_01-10-2025_13_49_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27403901 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_P27403901_01-10-2025_13_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27403921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403930, 'pht': 3726}}" where mtr_portfolio_id = 27403901 and dashboard_run_id = 2381519 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`=27403901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869709, 0.0942114492669756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27403901_01-10-2025_13_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27403921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403930, '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 = 27404296 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': 3807597, 'mtr_portfolio_id': 27404296, 'created_at': datetime.datetime(2025, 10, 1, 14, 1, 6), 'result': '0.0328742760799829', 'result_long': None, 'result_double': None}] Qualite : 0.0328742760799829 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27404296 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27404296_01-10-2025_14_01_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27404296 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_P27404296_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404334, 'pht': 3726}}" where mtr_portfolio_id = 27404296 and dashboard_run_id = 2381519 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`=27404296 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15869710, 0.0328742760799829, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27404296_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404334, '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 (27375839,27376525,27376906,27377191,27378456,27378717,27378994,27379410,27379907,27380372,27380848,27381440,27381997,27382455,27382890,27384322,27384680,27384953,27385199,27385566,27385977,27386362,27386738,27387203,27387984,27388759,27389340,27390105,27390791,27391355,27392176,27394659,27395242,27395913,27396429,27397076,27397673,27398369,27399474,27399974,27400780,27401557,27403699,27403901,27404296) result : ((1387049350,), (1387051024,), (1387051025,), (1387051027,), (1387051041,), (1387051044,), (1387051049,), (1387051073,), (1387051318,), (1387051321,), (1387051333,), (1387051551,), (1387051617,), (1387051623,), (1387052038,), (1387052041,), (1387052204,), (1387052206,), (1387052208,), (1387052211,), (1387052272,), (1387052289,), (1387052294,), (1387052297,), (1387052453,), (1387052457,), (1387052478,), (1387052500,), (1387052502,), (1387052504,), (1387052768,), (1387052851,), (1387052908,), (1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,), (1387054013,), (1387054047,), (1387054049,), (1387054069,), (1387054083,), (1387053999,), (1387054002,), (1387054003,), (1387054006,), (1387054009,), (1387054089,), (1387054091,), (1387054095,), (1387054137,), (1387054180,), (1387054182,), (1387054183,), (1387054201,), (1387054206,), (1387054210,), (1387054220,), (1387054223,), (1387054225,), (1387054229,), (1387054231,), (1387054234,), (1387054262,), (1387054270,), (1387054274,), (1387054277,), (1387054281,), (1387054289,), (1387054379,), (1387054382,), (1387054385,), (1387054420,), (1387054426,), (1387054427,), (1387054429,), (1387054454,), (1387054457,), (1387054459,), (1387054463,), (1387054467,), (1387054478,), (1387054481,), (1387054484,), (1387054487,), (1387054499,), (1387054502,), (1387054504,), (1387054506,), (1387054519,), (1387054521,), (1387054522,), (1387054525,), (1387054528,), (1387054565,), (1387054567,), (1387054569,), (1387054573,), (1387054577,), (1387054595,), (1387054598,), (1387054603,), (1387054609,), (1387054610,), (1387054612,), (1387054617,), (1387054620,), (1387054626,), (1387054628,), (1387054631,), (1387054634,), (1387054635,), (1387054636,), (1387054637,), (1387054638,), (1387054639,), (1387054651,), (1387054656,), (1387054658,), (1387054659,), (1387054660,), (1387054680,), (1387054678,), (1387054721,), (1387054745,), (1387054749,), (1387054752,), (1387054755,), (1387054821,), (1387054825,), (1387054828,), (1387054905,), (1387054916,), (1387054931,), (1387054934,), (1387054949,), (1387054959,), (1387054982,), (1387054985,), (1387054988,), (1387054992,), (1387054995,), (1387054997,), (1387055004,), (1387055006,), (1387055008,), (1387055011,), (1387055014,), (1387055017,), (1387055025,), (1387055028,), (1387055032,), (1387055035,), (1387055064,), (1387055075,), (1387055079,), (1387055129,), (1387055131,), (1387055134,), (1387055137,), (1387055146,), (1387055153,), (1387055155,), (1387055156,), (1387055162,), (1387055164,), (1387055167,), (1387055170,), (1387055174,), (1387055176,), (1387055193,), (1387055196,), (1387055200,), (1387055205,), (1387055210,), (1387055228,), (1387055231,), (1387055234,), (1387055249,), (1387055252,), (1387055255,), (1387055299,), (1387055310,), (1387055312,), (1387055315,), (1387055317,), (1387055335,), (1387055401,), (1387055404,), (1387055405,), (1387055579,), (1387055583,), (1387055585,), (1387055589,), (1387055593,), (1387055598,), (1387055599,), (1387055611,), (1387055613,), (1387055643,), (1387055645,), (1387055647,), (1387055655,), (1387056068,), (1387059050,), (1387059081,), (1387059084,), (1387059085,), (1387059087,), (1387059090,), (1387059093,), (1387059106,), (1387059109,), (1387059130,), (1387059138,), (1387059146,), (1387059155,), (1387059162,), (1387059163,), (1387059164,), (1387059169,), (1387059210,), (1387059231,), (1387059245,), (1387059249,), (1387059250,), (1387059251,), (1387059252,), (1387059257,), (1387059275,), (1387059277,), (1387059278,), (1387059281,), (1387059336,), (1387059342,), (1387059386,), (1387059392,), (1387059394,), (1387059397,), (1387059403,), (1387059416,), (1387059419,), (1387059425,), (1387059428,), (1387059432,), (1387059473,), (1387059475,), (1387059477,), (1387059480,), (1387059494,), (1387059501,), (1387059505,), (1387059509,), (1387059516,), (1387059527,), (1387059567,), (1387059574,), (1387059578,), (1387059585,), (1387059589,), (1387059613,), (1387059614,), (1387059616,), (1387059617,), (1387059626,), (1387059633,), (1387059640,), (1387059642,), (1387059644,), (1387059645,), (1387059646,), (1387059648,), (1387059664,), (1387059666,), (1387059668,), (1387059671,), (1387059712,), (1387059705,), (1387059707,), (1387059709,), (1387059755,), (1387059785,), (1387059788,), (1387059904,), (1387059908,), (1387059912,), (1387059975,), (1387059983,), (1387059985,), (1387060001,), (1387060004,), (1387060006,), (1387060008,), (1387060011,), (1387060030,), (1387060033,), (1387060036,), (1387060038,), (1387060065,), (1387060066,), (1387060069,), (1387060073,), (1387060077,), (1387060089,), (1387060093,), (1387060097,), (1387060142,), (1387060145,), (1387060148,), (1387060153,), (1387060229,), (1387060247,), (1387060250,), (1387060254,), (1387060258,), (1387060281,), (1387060284,), (1387060287,), (1387060291,), (1387060295,), (1387060299,), (1387060833,), (1387060835,), (1387060841,), (1387060843,), (1387060844,), (1387060850,), (1387060855,), (1387060864,), (1387060905,), (1387060906,), (1387061570,), (1387061589,), (1387060766,), (1387060769,), (1387060800,), (1387060804,), (1387060899,), (1387060901,), (1387060903,), (1387060930,), (1387060931,), (1387060944,), (1387060950,), (1387061450,), (1387061452,), (1387061459,), (1387061546,), (1387061593,), (1387061594,), (1387061597,), (1387061598,), (1387061602,), (1387061603,), (1387061607,), (1387061608,), (1387061616,), (1387061636,), (1387061638,), (1387061640,), (1387061641,), (1387061671,), (1387061683,), (1387061686,), (1387061690,), (1387061694,), (1387061716,), (1387061719,), (1387061721,), (1387061805,), (1387061997,), (1387061999,), (1387062001,), (1387062020,), (1387062022,), (1387062024,), (1387062040,), (1387062081,), (1387062086,), (1387062089,), (1387062093,), (1387062128,), (1387062130,), (1387062132,), (1387062134,), (1387062136,), (1387062145,), (1387062147,), (1387062149,), (1387062152,), (1387062156,), (1387062157,), (1387062159,), (1387062161,), (1387062163,), (1387062164,), (1387062168,), (1387062175,), (1387062177,), (1387062179,), (1387062181,), (1387062182,), (1387062188,), (1387062189,), (1387062191,), (1387062192,), (1387062199,), (1387062215,), (1387062269,), (1387062236,), (1387062238,), (1387062240,), (1387062327,), (1387062330,), (1387062333,), (1387062335,), (1387062338,), (1387062370,), (1387062384,), (1387062393,), (1387062401,), (1387062404,), (1387062405,), (1387062414,), (1387062416,), (1387062417,), (1387062419,), (1387062435,), (1387062442,), (1387062497,), (1387062499,), (1387062501,), (1387062504,), (1387062539,), (1387062542,), (1387062545,), (1387062547,), (1387062564,), (1387062566,), (1387062570,), (1387062584,), (1387062590,), (1387062591,), (1387062608,), (1387062613,), (1387062615,), (1387062616,), (1387062617,), (1387062631,), (1387062633,), (1387062635,), (1387062637,), (1387062647,), (1387062650,), (1387062653,), (1387062664,), (1387062666,), (1387062668,), (1387062670,), (1387062673,), (1387062676,), (1387062683,), (1387062685,), (1387062687,), (1387062690,), (1387062692,), (1387062694,), (1387062701,), (1387062704,), (1387062707,), (1387062719,), (1387062721,), (1387062723,), (1387062724,), (1387062727,), (1387062758,), (1387062738,), (1387062741,), (1387062744,), (1387062747,), (1387062751,), (1387062779,), (1387062805,), (1387062844,), (1387062850,), (1387062857,), (1387062861,), (1387062867,), (1387062929,), (1387062931,), (1387062933,), (1387062936,), (1387063039,), (1387063050,), (1387063055,), (1387063058,), (1387063082,), (1387063087,), (1387063088,), (1387063089,), (1387063097,), (1387063099,), (1387063100,), (1387063101,), (1387063103,), (1387063111,), (1387063127,), (1387063130,), (1387063132,), (1387063134,), (1387063137,), (1387063139,), (1387063145,), (1387063166,), (1387063170,), (1387063174,), (1387063177,), (1387063180,), (1387063186,), (1387063206,), (1387063208,), (1387063210,), (1387063212,), (1387063214,), (1387063229,), (1387063230,), (1387063231,), (1387063233,), (1387063240,), (1387063246,), (1387063248,), (1387063253,), (1387063258,), (1387063260,), (1387063283,), (1387063269,), (1387063271,), (1387063273,), (1387063278,), (1387063280,), (1387063289,), (1387063294,), (1387063295,), (1387063296,), (1387063298,), (1387063309,), (1387063311,), (1387063315,), (1387063325,), (1387063327,), (1387063329,), (1387063331,), (1387063333,), (1387063336,), (1387063354,), (1387063355,), (1387063356,), (1387063358,), (1387063368,), (1387063393,), (1387063394,), (1387063395,), (1387063397,), (1387063429,), (1387063431,), (1387063433,), (1387063447,), (1387063449,), (1387063453,), (1387063456,), (1387063458,), (1387063461,), (1387063469,), (1387063472,), (1387063476,), (1387063479,), (1387063482,), (1387063495,), (1387063498,), (1387063501,), (1387063515,), (1387063517,), (1387063518,), (1387063521,), (1387063530,), (1387063535,), (1387063572,), (1387063575,), (1387063581,), (1387063583,), (1387063587,), (1387063589,), (1387063609,), (1387063612,), (1387063614,), (1387063632,), (1387063635,), (1387063637,), (1387063647,), (1387063655,), (1387063658,), (1387063709,), (1387064365,), (1387063600,), (1387063602,), (1387063604,), (1387063664,), (1387063666,), (1387063690,), (1387063703,), (1387063752,), (1387063753,), (1387063766,), (1387063767,), (1387063770,), (1387063773,), (1387063776,), (1387063777,), (1387063781,), (1387063782,), (1387063784,), (1387063786,), (1387063789,), (1387064266,), (1387064359,), (1387064361,), (1387064363,), (1387064374,), (1387064378,), (1387064381,), (1387064384,), (1387064388,), (1387065043,), (1387065046,), (1387065049,), (1387065051,), (1387065053,), (1387065066,), (1387065068,), (1387065071,), (1387065075,), (1387065120,), (1387065586,), (1387065602,), (1387065605,), (1387065608,), (1387065620,), (1387065623,), (1387065626,), (1387065628,), (1387065647,), (1387065728,), (1387065725,), (1387065727,), (1387065748,), (1387065752,), (1387065755,), (1387065827,), (1387065830,), (1387065833,), (1387065835,), (1387065837,), (1387065838,), (1387065854,), (1387065856,), (1387065857,), (1387065858,), (1387065866,), (1387065906,), (1387065907,), (1387065908,), (1387065910,), (1387065913,), (1387065926,), (1387065930,), (1387065968,), (1387065972,), (1387065976,), (1387065980,), (1387066018,), (1387066021,), (1387066049,), (1387066051,), (1387066101,), (1387066103,), (1387066104,), (1387066107,), (1387066120,), (1387066122,), (1387066125,), (1387066133,), (1387066194,), (1387066198,), (1387066202,), (1387066205,), (1387066218,), (1387066220,), (1387066222,), (1387066225,), (1387066233,), (1387066241,), (1387066277,), (1387066279,), (1387066280,), (1387066283,), (1387066285,), (1387066287,), (1387066293,), (1387066296,), (1387066299,), (1387066305,), (1387066308,), (1387066310,), (1387066337,), (1387066316,), (1387066323,), (1387066326,), (1387066335,), (1387066343,), (1387066346,), (1387066351,), (1387066355,), (1387066374,), (1387066386,), (1387066387,), (1387066388,), (1387066389,), (1387066413,), (1387066418,), (1387066422,), (1387066424,), (1387066439,), (1387066442,), (1387066444,), (1387066447,), (1387066476,), (1387066478,), (1387066481,), (1387066484,), (1387066489,), (1387066493,), (1387066514,), (1387066518,), (1387066521,), (1387066528,), (1387066539,), (1387066572,), (1387066574,), (1387066597,), (1387066601,), (1387066604,), (1387066607,), (1387066609,), (1387066612,), (1387066634,), (1387066639,), (1387066642,), (1387066645,), (1387066647,), (1387066659,), (1387066661,), (1387066662,), (1387066663,), (1387066667,), (1387066687,), (1387066692,), (1387066696,), (1387066699,), (1387066702,), (1387066718,), (1387066721,), (1387066724,), (1387066727,), (1387066729,), (1387066755,), (1387066757,), (1387066758,), (1387066762,), (1387066768,), (1387066780,), (1387066785,), (1387066788,), (1387066823,), (1387066811,), (1387066814,), (1387066817,), (1387066819,), (1387066821,), (1387066840,), (1387066844,), (1387066846,), (1387066848,), (1387066850,), (1387066876,), (1387066879,), (1387066882,), (1387066885,), (1387066887,), (1387066901,), (1387066904,), (1387066907,), (1387066910,), (1387066914,), (1387066917,), (1387066958,), (1387066961,), (1387066962,), (1387066963,), (1387066965,), (1387066978,), (1387066979,), (1387066982,), (1387066986,), (1387066990,), (1387067016,), (1387067020,), (1387067023,), (1387067026,), (1387067030,), (1387067033,), (1387067065,), (1387067088,), (1387067090,), (1387067092,), (1387067119,), (1387067122,), (1387067123,), (1387067124,), (1387067126,), (1387067128,), (1387067145,), (1387067147,), (1387067149,), (1387067152,), (1387067173,), (1387067175,), (1387067178,), (1387067199,), (1387067203,), (1387067212,), (1387067220,), (1387067222,), (1387067231,), (1387067244,), (1387067248,), (1387067251,), (1387067255,), (1387067281,), (1387067284,), (1387067287,), (1387067289,), (1387067935,), (1387067939,), (1387067945,), (1387067949,), (1387067957,), (1387067313,), (1387067491,), (1387068157,), (1387068161,), (1387068164,), (1387068166,), (1387068170,), (1387068191,), (1387068195,), (1387068198,), (1387068540,), (1387068543,), (1387068727,), (1387068735,), (1387068739,), (1387068743,), (1387068754,), (1387068759,), (1387068950,), (1387069078,), (1387069081,), (1387069083,), (1387069085,), (1387069089,), (1387069114,), (1387069115,), (1387069118,), (1387069121,), (1387069125,), (1387069153,), (1387069158,), (1387069162,), (1387069182,), (1387069186,), (1387069190,), (1387069194,), (1387069197,), (1387069199,), (1387069221,), (1387069224,), (1387069227,), (1387069232,), (1387069250,), (1387069254,), (1387069286,), (1387071779,), (1387071773,), (1387071776,), (1387071897,), (1387071925,), (1387071948,), (1387071951,), (1387071973,), (1387072552,), (1387072576,), (1387072580,), (1387072586,), (1387072591,), (1387072609,), (1387072611,), (1387072615,), (1387072620,), (1387072640,), (1387072643,), (1387072646,), (1387072677,), (1387072681,), (1387072687,), (1387072705,), (1387072709,), (1387072712,), (1387072714,), (1387072734,), (1387072737,), (1387072742,), (1387072750,), (1387072780,), (1387072783,), (1387072786,), (1387072813,), (1387072841,), (1387072845,), (1387072849,), (1387072852,), (1387072874,), (1387072902,), (1387072906,), (1387072911,), (1387072918,), (1387072922,), (1387072925,), (1387072930,), (1387072934,), (1387072937,), (1387072940,), (1387072958,), (1387072960,), (1387072962,), (1387072964,), (1387072967,), (1387072971,), (1387072984,), (1387072986,), (1387072989,), (1387072993,), (1387072995,), (1387072997,), (1387073002,), (1387073005,), (1387073009,), (1387073012,), (1387073015,), (1387073016,), (1387073023,), (1387073031,), (1387073035,), (1387073039,), (1387073048,), (1387073050,), (1387073053,), (1387073056,), (1387073059,), (1387073062,), (1387073073,), (1387073077,), (1387073083,), (1387073114,), (1387073129,), (1387073206,), (1387073213,), (1387073218,), (1387073224,), (1387073228,), (1387073231,), (1387073251,), (1387073257,), (1387073261,), (1387073267,), (1387073269,), (1387073284,), (1387073288,), (1387073291,), (1387073292,), (1387073294,), (1387073295,), (1387073310,), (1387073314,), (1387073317,), (1387073320,), (1387073325,), (1387073328,), (1387073401,), (1387073405,), (1387073407,), (1387073425,), (1387073428,), (1387073429,), (1387073432,), (1387073485,), (1387073489,), (1387073517,), (1387073514,), (1387073515,), (1387073541,), (1387073544,), (1387073546,), (1387073570,), (1387073572,), (1387073575,), (1387073578,), (1387073583,), (1387073591,), (1387073593,), (1387073600,), (1387073604,), (1387073607,), (1387073610,), (1387073612,), (1387073627,), (1387073630,), (1387073631,), (1387073632,), (1387073634,), (1387073653,), (1387073655,), (1387073657,), (1387073688,), (1387073692,), (1387073696,), (1387073699,), (1387073702,), (1387073716,), (1387073739,), (1387073742,), (1387073744,), (1387073745,), (1387073747,), (1387073749,), (1387073765,), (1387073768,), (1387073769,), (1387073771,), (1387073776,), (1387073795,), (1387073798,), (1387073802,), (1387073805,), (1387073808,), (1387073810,), (1387073821,), (1387073824,), (1387073827,), (1387073830,), (1387073833,), (1387073836,), (1387073843,), (1387073860,), (1387073870,), (1387073880,), (1387073902,), (1387073905,), (1387073909,), (1387073913,), (1387073917,), (1387073920,), (1387073948,), (1387073952,), (1387073955,), (1387073958,), (1387073975,), (1387073977,), (1387073980,), (1387073984,), (1387073988,), (1387073990,), (1387073992,), (1387073993,), (1387073994,), (1387073999,), (1387074009,), (1387074013,), (1387074017,), (1387074019,), (1387074022,), (1387074025,), (1387074038,), (1387074032,), (1387074034,), (1387074036,), (1387074064,), (1387074099,), (1387074228,), (1387074231,), (1387074255,), (1387074259,), (1387074261,), (1387074264,), (1387074271,), (1387074287,), (1387074290,), (1387074293,), (1387074296,), (1387074299,), (1387074300,), (1387074302,), (1387074308,), (1387074310,), (1387074338,), (1387074340,), (1387074344,), (1387074347,), (1387074349,), (1387074352,), (1387074354,), (1387074355,), (1387074357,), (1387074359,), (1387074394,), (1387074396,), (1387074398,), (1387074401,), (1387074407,), (1387074424,), (1387074426,), (1387074430,), (1387074433,), (1387074454,), (1387074739,), (1387074817,), (1387074820,), (1387074915,), (1387074966,), (1387075000,), (1387075005,), (1387075010,), (1387075013,), (1387075019,), (1387075028,), (1387075047,), (1387075050,), (1387075053,), (1387075055,), (1387075492,), (1387075060,), (1387075489,), (1387075519,), (1387075522,), (1387075524,), (1387075526,), (1387075528,), (1387075537,), (1387075546,), (1387075549,), (1387075552,), (1387076018,), (1387076021,), (1387076024,), (1387076027,), (1387076240,), (1387076343,), (1387076346,), (1387076348,), (1387076351,), (1387076354,), (1387076365,), (1387076369,), (1387076373,), (1387076377,), (1387076402,), (1387076413,), (1387076415,), (1387076418,), (1387076434,), (1387076436,), (1387076439,), (1387076442,), (1387076454,), (1387076460,), (1387076485,), (1387076491,), (1387076495,), (1387076499,), (1387076515,), (1387076518,), (1387076522,), (1387076525,), (1387076547,), (1387076552,), (1387076554,), (1387076556,), (1387076558,), (1387076572,), (1387076575,), (1387076578,), (1387076580,), (1387076582,), (1387076584,), (1387076629,), (1387076612,), (1387076616,), (1387076621,), (1387076625,), (1387076645,), (1387076650,), (1387076652,), (1387076711,), (1387076715,), (1387076717,), (1387076721,), (1387076724,), (1387076728,), (1387076741,), (1387076744,), (1387076747,), (1387076750,), (1387076753,), (1387076760,), (1387076777,), (1387076780,), (1387076785,), (1387076788,), (1387076792,), (1387076795,), (1387076799,), (1387076801,), (1387076802,), (1387076806,), (1387076809,), (1387076815,), (1387076819,), (1387076827,), (1387076830,), (1387076849,), (1387076852,), (1387076853,), (1387076854,), (1387076869,), (1387076872,), (1387076873,), (1387076875,), (1387076878,), (1387076884,), (1387076901,), (1387076904,), (1387076907,), (1387076910,), (1387076913,), (1387076914,), (1387076918,), (1387076920,), (1387076922,), (1387076926,), (1387076927,), (1387076929,), (1387076932,), (1387076951,), (1387076956,), (1387076961,), (1387076965,), (1387076968,), (1387076981,), (1387076984,), (1387076986,), (1387076988,), (1387076990,), (1387076998,), (1387077034,), (1387077038,), (1387077091,), (1387077096,), (1387077098,), (1387077105,), (1387077119,), (1387077124,), (1387077127,), (1387077131,), (1387077134,), (1387077167,), (1387077151,), (1387077155,), (1387077157,), (1387077160,), (1387077164,), (1387077172,), (1387077175,), (1387077178,), (1387077188,), (1387077191,), (1387077196,), (1387077200,), (1387077210,), (1387077231,), (1387077233,), (1387077235,), (1387077237,), (1387077239,), (1387077241,), (1387077257,), (1387077260,), (1387077262,), (1387077289,), (1387077292,), (1387077295,), (1387077297,), (1387077300,), (1387077303,), (1387077311,), (1387077313,), (1387077316,), (1387077319,), (1387077323,), (1387077332,), (1387077347,), (1387077357,), (1387077359,), (1387077362,), (1387077379,), (1387077381,), (1387077383,), (1387077385,), (1387077393,), (1387077397,), (1387077416,), (1387077420,), (1387077423,), (1387077427,), (1387077440,), (1387077444,), (1387077447,), (1387077450,), (1387077453,), (1387077456,), (1387077484,), (1387077488,), (1387077509,), (1387077551,), (1387077570,), (1387077574,), (1387077630,), (1387077621,), (1387077627,), (1387077650,), (1387077653,), (1387077655,), (1387077657,), (1387077658,), (1387077667,), (1387077676,), (1387077680,), (1387077683,), (1387077686,), (1387077689,), (1387077692,), (1387077705,), (1387077707,), (1387077709,), (1387077731,), (1387077734,), (1387077737,), (1387077741,), (1387077744,), (1387077748,), (1387077750,), (1387077760,), (1387077762,), (1387077765,), (1387077770,), (1387077776,), (1387077782,), (1387077801,), (1387077805,), (1387077809,), (1387077813,), (1387077831,), (1387077835,), (1387077838,), (1387077839,), (1387077873,), (1387077876,), (1387077879,), (1387077883,), (1387077888,), (1387077891,), (1387077897,), (1387077898,), (1387077908,), (1387077913,), (1387077923,), (1387077927,), (1387077937,), (1387077945,), (1387077959,), (1387077961,), (1387077962,), (1387077964,), (1387077966,), (1387077994,), (1387077997,), (1387078000,), (1387078003,), (1387078006,), (1387078016,), (1387078036,), (1387078041,), (1387078044,), (1387078420,), (1387078478,), (1387078481,), (1387078485,), (1387078684,), (1387078686,), (1387078689,), (1387078696,), (1387078697,), (1387078673,), (1387078677,), (1387078681,), (1387078849,), (1387078851,), (1387078854,), (1387078856,), (1387078928,), (1387078959,), (1387078961,), (1387078962,), (1387078965,), (1387078970,), (1387078976,), (1387078996,), (1387078999,), (1387079002,), (1387079007,), (1387079010,), (1387079013,), (1387079019,), (1387079021,), (1387079026,), (1387079028,), (1387079031,), (1387079143,), (1387079413,), (1387079417,), (1387079421,), (1387079534,), (1387079537,), (1387079615,), (1387079621,), (1387079627,), (1387079704,), (1387079738,), (1387079742,), (1387079746,), (1387079780,), (1387079784,), (1387079788,), (1387079993,), (1387079997,), (1387080000,), (1387080009,), (1387080014,), (1387080123,), (1387080125,), (1387080127,), (1387080133,), (1387080140,), (1387080156,), (1387080179,), (1387080184,), (1387080188,), (1387080206,), (1387080289,), (1387080291,), (1387080295,), (1387080300,), (1387080304,), (1387080306,), (1387080311,), (1387080312,), (1387080314,), (1387080319,), (1387080331,), (1387080336,), (1387080346,), (1387080348,), (1387080351,), (1387080378,), (1387080361,), (1387080366,), (1387080398,), (1387080402,), (1387080404,), (1387080415,), (1387080421,), (1387080564,), (1387080580,), (1387080589,), (1387080592,), (1387080595,), (1387080602,), (1387080670,), (1387080680,), (1387080795,), (1387080798,), (1387080809,), (1387080811,), (1387080998,), (1387081003,), (1387081061,), (1387081065,), (1387081247,), (1387081260,), (1387081283,), (1387081311,), (1387081320,), (1387081414,), (1387081418,), (1387081423,), (1387081426,), (1387081455,), (1387081458,), (1387081462,), (1387081466,), (1387081469,), (1387081471,), (1387081476,), (1387081479,), (1387081485,), (1387081504,), (1387081507,), (1387081512,), (1387081516,), (1387081520,), (1387081644,), (1387081648,), (1387081652,), (1387081661,), (1387081669,), (1387081699,), (1387081705,), (1387081708,), (1387081712,), (1387081894,), (1387081908,), (1387081910,), (1387081912,), (1387081915,), (1387081918,), (1387081977,), (1387081979,), (1387081984,), (1387081987,), (1387081990,), (1387081994,), (1387082139,), (1387082152,), (1387082164,), (1387082168,), (1387082173,), (1387082217,), (1387082199,), (1387082215,), (1387082258,), (1387082262,), (1387082266,), (1387082281,), (1387082284,), (1387082371,), (1387082375,), (1387082379,), (1387082435,), (1387082437,), (1387082440,), (1387082443,), (1387082557,), (1387082703,), (1387082740,), (1387082743,), (1387082844,), (1387082896,), (1387082897,), (1387082999,), (1387083001,), (1387083003,), (1387083005,), (1387083009,), (1387083013,), (1387083035,), (1387083043,), (1387083045,), (1387083047,), (1387083049,), (1387083080,), (1387083082,), (1387083084,), (1387083111,), (1387083116,), (1387083120,), (1387083124,), (1387083127,), (1387083132,), (1387083160,), (1387083163,), (1387083165,), (1387083168,), (1387083171,), (1387083188,), (1387083193,), (1387083197,), (1387083248,), (1387083253,), (1387083255,), (1387083257,), (1387083260,), (1387083263,), (1387083430,), (1387083464,), (1387083469,), (1387083473,), (1387083589,), (1387083594,), (1387083597,), (1387083602,), (1387083607,), (1387083610,), (1387083612,), (1387083615,), (1387083622,), (1387083628,), (1387083632,), (1387083634,), (1387083674,), (1387083666,), (1387083669,), (1387083672,), (1387083756,), (1387083760,), (1387083763,), (1387083767,), (1387083771,), (1387083785,), (1387083803,), (1387083806,), (1387083808,), (1387083829,), (1387083835,), (1387083848,), (1387083884,), (1387083888,), (1387083890,), (1387083893,), (1387083914,), (1387083918,), (1387083921,), (1387083924,), (1387083928,), (1387083933,), (1387083983,), (1387083997,), (1387084002,), (1387084005,), (1387084027,), (1387084031,), (1387084063,), (1387084065,), (1387084068,), (1387084072,), (1387084077,), (1387084090,), (1387084096,), (1387084437,), (1387084441,), (1387084445,), (1387084446,), (1387085086,), (1387085092,), (1387085097,), (1387085100,), (1387085111,), (1387085310,), (1387085328,), (1387085332,), (1387085337,), (1387085005,), (1387085085,), (1387085458,), (1387085463,), (1387085467,), (1387085951,), (1387085966,), (1387085982,), (1387086206,), (1387086210,), (1387086215,), (1387086220,), (1387086226,), (1387086232,), (1387086239,), (1387086244,), (1387086248,), (1387086252,), (1387086255,), (1387086263,), (1387086293,), (1387086297,), (1387086300,), (1387086701,), (1387086730,), (1387086889,), (1387086893,), (1387086897,), (1387086995,), (1387087000,), (1387087037,), (1387087043,), (1387087048,), (1387087123,), (1387087128,), (1387087132,), (1387087172,), (1387087174,), (1387087177,), (1387087182,), (1387087185,), (1387087189,), (1387087211,), (1387087225,), (1387087229,), (1387087340,), (1387087344,), (1387087348,), (1387087352,), (1387087432,), (1387087435,), (1387087437,), (1387087440,), (1387087486,), (1387087489,), (1387087494,), (1387087497,), (1387087501,), (1387087504,), (1387087519,), (1387087523,), (1387087526,), (1387087531,), (1387087541,), (1387087547,), (1387087551,), (1387087556,), (1387087603,), (1387087588,), (1387087592,), (1387087595,), (1387087598,), (1387087601,), (1387087621,), (1387087624,), (1387087627,), (1387087631,), (1387087637,), (1387087680,), (1387087683,), (1387087684,), (1387087686,), (1387087691,), (1387087710,), (1387087730,), (1387087734,), (1387087756,), (1387087760,), (1387087763,), (1387087765,), (1387087859,), (1387087888,), (1387087889,), (1387087891,), (1387087895,), (1387087898,), (1387087924,), (1387087927,), (1387087931,), (1387087934,), (1387087940,), (1387087967,), (1387087973,), (1387087975,), (1387087980,), (1387088042,), (1387088044,), (1387088047,), (1387088051,), (1387088055,), (1387088059,), (1387088074,), (1387088100,), (1387088113,), (1387088117,), (1387088119,), (1387088121,), (1387088128,), (1387088162,), (1387088164,), (1387088165,), (1387088167,), (1387088171,), (1387088196,), (1387088199,), (1387088201,), (1387088205,), (1387088210,), (1387088432,), (1387088435,), (1387088437,), (1387088439,), (1387088477,), (1387088503,), (1387088507,), (1387088509,), (1387088527,), (1387088534,), (1387088670,), (1387088672,), (1387088674,), (1387088676,), (1387088679,), (1387088727,), (1387088730,), (1387088733,), (1387088735,), (1387088747,), (1387088751,), (1387088722,), (1387088725,), (1387088762,), (1387088782,), (1387088789,), (1387088838,), (1387088843,), (1387088846,), (1387088851,), (1387088856,), (1387088884,), (1387088887,), (1387088892,), (1387088898,), (1387088903,), (1387088907,), (1387088912,), (1387088916,), (1387088918,), (1387088921,), (1387088941,), (1387088943,), (1387088952,), (1387088959,), (1387088967,), (1387088989,), (1387088990,), (1387089044,), (1387089062,), (1387089065,), (1387089112,), (1387089114,), (1387089117,), (1387089131,), (1387089138,), (1387089141,), (1387089159,), (1387089162,), (1387089165,), (1387089169,), (1387089171,), (1387089216,), (1387089219,), (1387089221,), (1387089308,), (1387089316,), (1387089430,), (1387089444,), (1387089580,), (1387089582,), (1387089588,), (1387089595,), (1387089603,), (1387089608,), (1387089618,), (1387089620,), (1387089621,), (1387089656,), (1387089663,), (1387089671,), (1387089676,), (1387089729,), (1387089730,), (1387089731,), (1387089733,), (1387089735,), (1387089744,), (1387089781,), (1387089783,), (1387089830,), (1387090075,), (1387090091,), (1387090166,), (1387090156,), (1387090160,), (1387090164,), (1387090198,), (1387090201,), (1387090203,), (1387090205,), (1387090275,), (1387090281,), (1387090292,), (1387090297,), (1387090530,), (1387090544,), (1387090554,), (1387090558,), (1387090636,), (1387090642,), (1387090868,), (1387091284,), (1387091308,), (1387091311,), (1387091314,), (1387091318,), (1387091800,), (1387091803,), (1387091825,), (1387091828,), (1387092030,), (1387092035,), (1387092074,), (1387092081,), (1387092082,), (1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,), (1387105581,), (1387105647,), (1387105758,), (1387105761,), (1387105764,), (1387105768,), (1387106201,), (1387106207,), (1387106212,), (1387106216,), (1387106254,), (1387106270,), (1387106273,), (1387106276,), (1387106314,), (1387106316,), (1387106317,), (1387106320,), (1387106719,), (1387106724,), (1387106734,), (1387106737,), (1387106758,), (1387106907,), (1387106911,), (1387107207,), (1387107304,), (1387107367,), (1387107370,), (1387107373,), (1387107379,), (1387107383,), (1387107402,), (1387107407,), (1387107410,), (1387107413,), (1387107579,), (1387107582,), (1387107620,), (1387107645,), (1387107675,), (1387107749,), (1387107753,), (1387107963,), (1387108031,), (1387108036,), (1387108044,), (1387108099,), (1387108104,), (1387108108,), (1387108113,), (1387108514,), (1387108079,), (1387108839,), (1387108841,), (1387109000,), (1387109004,), (1387109149,), (1387109153,), (1387109157,), (1387109187,), (1387109400,), (1387109863,), (1387109866,), (1387109869,), (1387109873,), (1387109881,), (1387110074,), (1387110078,), (1387110121,), (1387110126,), (1387110185,), (1387110927,), (1387111225,), (1387111227,), (1387111229,), (1387111263,), (1387111268,), (1387111271,), (1387111628,), (1387111632,), (1387112156,), (1387112160,), (1387112163,), (1387112167,), (1387112171,), (1387112330,), (1387112335,), (1387112340,), (1387112675,), (1387112716,), (1387112738,), (1387112759,), (1387112781,), (1387112907,), (1387112949,), (1387112990,), (1387113010,), (1387113026,), (1387113030,), (1387113055,), (1387113066,), (1387113413,), (1387113418,), (1387113445,), (1387113744,), (1387113702,), (1387113716,), (1387113738,), (1387113768,), (1387113774,), (1387113968,), (1387114097,), (1387114228,), (1387114413,), (1387115265,), (1387115283,), (1387115347,), (1387115351,), (1387115668,), (1387115671,), (1387115704,), (1387115736,), (1387115767,), (1387115772,), (1387115777,), (1387115805,), (1387115809,), (1387115821,), (1387115824,), (1387115992,), (1387116006,), (1387116237,), (1387116239,), (1387116242,), (1387116263,), (1387116268,), (1387116271,), (1387116275,), (1387116308,), (1387116316,), (1387116321,), (1387116330,), (1387116726,), (1387116730,), (1387116733,), (1387116804,), (1387116815,), (1387116865,), (1387116870,), (1387116873,), (1387116877,), (1387116946,), (1387116950,), (1387116954,), (1387116956,), (1387116960,), (1387116999,), (1387117004,), (1387117007,), (1387117010,), (1387117243,), (1387117240,), (1387117253,), (1387117446,), (1387118235,), (1387118308,), (1387118313,), (1387118318,), (1387118323,), (1387118329,), (1387118331,), (1387118768,), (1387118769,), (1387118772,), (1387118774,), (1387118775,), (1387118777,), (1387118982,), (1387119077,), (1387119081,), (1387119379,), (1387119894,), (1387119897,), (1387119904,), (1387119936,), (1387119941,), (1387119945,), (1387119948,), (1387119952,), (1387120433,), (1387120458,), (1387120475,), (1387120484,), (1387120767,), (1387120770,), (1387120772,), (1387120775,), (1387120780,), (1387120798,), (1387120803,), (1387120807,), (1387120810,), (1387120837,), (1387120841,), (1387120844,), (1387120847,), (1387120868,), (1387120872,), (1387120875,), (1387120879,), (1387120887,), (1387121692,), (1387122161,), (1387122251,), (1387122255,), (1387122258,), (1387122298,), (1387122303,), (1387122858,), (1387122867,), (1387122870,), (1387122875,), (1387122897,), (1387122904,), (1387123094,), (1387123099,), (1387123457,), (1387123369,), (1387123481,), (1387123485,), (1387123486,), (1387123489,), (1387123508,), (1387123511,), (1387123514,), (1387123516,), (1387123548,), (1387123630,), (1387125003,), (1387125049,), (1387125595,), (1387125600,), (1387127209,), (1387127213,), (1387127215,), (1387127619,), (1387127639,), (1387127815,), (1387127822,), (1387127824,), (1387128236,), (1387128552,), (1387128554,), (1387128557,), (1387128559,), (1387128562,), (1387128565,), (1387128571,), (1387128574,), (1387128576,), (1387128578,), (1387128584,), (1387128880,), (1387128884,), (1387128888,), (1387128896,), (1387128941,), (1387128945,), (1387128980,), (1387128985,), (1387128989,), (1387129900,), (1387129932,), (1387129964,), (1387129966,), (1387130193,), (1387130433,), (1387130437,), (1387130520,), (1387130834,), (1387130852,), (1387131004,), (1387130981,), (1387130987,), (1387130998,), (1387131002,), (1387131191,), (1387131195,), (1387131200,), (1387131203,), (1387131207,), (1387131211,), (1387131223,), (1387131226,), (1387131228,), (1387131232,), (1387131238,), (1387131258,), (1387131260,), (1387131263,), (1387131267,), (1387131270,), (1387131273,), (1387131829,), (1387132005,), (1387132014,), (1387132019,), (1387132055,), (1387132058,), (1387132082,), (1387132289,), (1387132380,), (1387132382,), (1387132386,), (1387132390,), (1387132394,), (1387132415,), (1387132426,), (1387132455,), (1387132811,), (1387133294,), (1387133297,), (1387133430,), (1387133563,), (1387133570,), (1387133580,), (1387133700,), (1387133703,), (1387133706,), (1387133710,), (1387133719,), (1387133722,), (1387133738,), (1387133741,), (1387133743,), (1387133802,), (1387133821,), (1387133827,), (1387133837,), (1387133839,), (1387133869,), (1387133873,), (1387133875,), (1387133881,), (1387133885,), (1387133889,), (1387133892,), (1387133895,), (1387134965,), (1387135662,), (1387135822,), (1387135833,), (1387135942,), (1387136035,), (1387136058,), (1387136253,), (1387136257,), (1387136261,), (1387136870,), (1387136876,), (1387138986,), (1387138983,), (1387139192,), (1387139206,), (1387139398,), (1387139407,), (1387139429,), (1387139432,), (1387139509,), (1387139515,), (1387139521,), (1387139524,), (1387139528,), (1387139530,), (1387139586,), (1387139595,), (1387139610,), (1387139617,), (1387139629,), (1387139633,), (1387139637,), (1387139656,), (1387139662,), (1387139666,), (1387139671,), (1387139675,), (1387139677,), (1387140018,), (1387140034,), (1387140039,), (1387140041,), (1387140043,), (1387140554,), (1387140557,), (1387140565,), (1387140572,), (1387140701,), (1387140900,), (1387140906,), (1387140909,), (1387140911,), (1387140916,), (1387140972,), (1387140989,), (1387140995,), (1387141006,), (1387141034,), (1387141083,), (1387141056,), (1387141068,), (1387141071,), (1387141077,), (1387141080,), (1387141113,), (1387141116,), (1387141119,), (1387141123,), (1387141168,), (1387141783,), (1387141814,), (1387141831,), (1387141834,), (1387141868,), (1387142188,), (1387142192,), (1387142197,), (1387142202,), (1387142206,), (1387142208,), (1387142229,), (1387142263,), (1387142271,), (1387142275,), (1387142285,), (1387142290,), (1387142300,), (1387142308,), (1387142310,), (1387142439,), (1387142493,), (1387142502,), (1387142515,), (1387142848,), (1387142933,), (1387143249,), (1387143266,), (1387143279,), (1387143882,), (1387143886,), (1387144192,), (1387144196,), (1387144200,), (1387144228,), (1387144232,), (1387144235,), (1387144239,), (1387144244,), (1387144699,), (1387144752,), (1387144767,), (1387144838,), (1387144981,), (1387144998,), (1387145012,), (1387145035,), (1387145068,), (1387145071,), (1387145224,), (1387145227,), (1387145419,), (1387145422,), (1387145544,), (1387145566,), (1387145613,), (1387145616,), (1387145706,), (1387145710,), (1387145714,), (1387145719,), (1387145849,), (1387145831,), (1387145836,), (1387145839,), (1387145842,), (1387145845,), (1387145993,), (1387146022,), (1387146076,), (1387146094,), (1387146112,), (1387146126,), (1387146459,), (1387146463,), (1387146554,), (1387146558,), (1387146762,), (1387146769,), (1387146783,), (1387146786,), (1387146789,), (1387147142,), (1387147145,), (1387147172,), (1387147174,), (1387147178,), (1387147200,), (1387147204,), (1387147206,), (1387147237,), (1387147240,), (1387147264,), (1387147600,), (1387147608,), (1387147629,), (1387147632,), (1387147668,), (1387147688,), (1387147711,), (1387147713,), (1387147716,), (1387147720,), (1387147723,), (1387148128,), (1387148134,), (1387148137,), (1387148140,), (1387148142,), (1387148147,), (1387148280,), (1387148290,), (1387148295,), (1387148308,), (1387148485,), (1387148488,), (1387148489,), (1387148490,), (1387148838,), (1387148842,), (1387149035,), (1387149038,), (1387149040,), (1387149084,), (1387149344,), (1387149360,), (1387149371,), (1387149379,), (1387149418,), (1387149428,), (1387149452,), (1387149457,), (1387149463,), (1387149475,), (1387149479,), (1387149543,), (1387149612,), (1387150164,), (1387150269,), (1387150272,), (1387150275,), (1387150283,), (1387150471,), (1387150516,), (1387150522,), (1387150554,), (1387151688,), (1387151691,), (1387152413,), (1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,), (1387166063,), (1387168197,), (1387169330,), (1387169437,), (1387169854,), (1387169857,), (1387170390,), (1387170394,), (1387170398,), (1387170438,), (1387171005,), (1387171034,), (1387171329,), (1387171478,), (1387171480,), (1387171482,), (1387172120,), (1387172308,), (1387172339,), (1387172381,), (1387172425,), (1387172427,), (1387172430,), (1387172532,), (1387172621,), (1387172627,), (1387172631,), (1387172987,), (1387172992,), (1387172996,), (1387173001,), (1387173013,), (1387173025,), (1387173156,), (1387173160,), (1387173166,), (1387173168,), (1387173422,), (1387173424,), (1387173456,), (1387173461,), (1387173465,), (1387173469,), (1387173482,), (1387173483,), (1387173484,), (1387173509,), (1387173638,), (1387173657,), (1387173968,), (1387173979,), (1387174003,), (1387174053,), (1387174058,), (1387174063,), (1387174066,), (1387174070,), (1387175206,), (1387175211,), (1387175215,), (1387175217,), (1387175451,), (1387175497,), (1387175549,), (1387175769,), (1387175773,), (1387175778,), (1387175993,), (1387175998,), (1387176004,), (1387176007,), (1387176012,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01102025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27401557]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387169071] map_info['map_portfolio_photo'] : {27401557: [1387169071, 1387152771, 1387152769, 1387152753, 1387152750, 1387152748, 1387152744, 1387152739, 1387152719, 1387152716, 1387152714, 1387152709, 1387152434, 1387152431, 1387152428, 1387152424, 1387152420, 1387152418, 1387152410, 1387151917, 1387151706, 1387151701, 1387151697, 1387151682, 1387151677, 1387151668, 1387151662, 1387151639, 1387151635, 1387151632, 1387151629, 1387151625, 1387151621, 1387151615, 1387151613, 1387151609, 1387151605, 1387151601, 1387151597, 1387151584, 1387151575, 1387151533, 1387151529, 1387151477, 1387151476, 1387151274, 1387151258, 1387151116, 1387150603, 1387150590, 1387150586, 1387150328, 1387150325, 1387150321, 1387150317, 1387150313, 1387149535, 1387149531, 1387149528, 1387149525, 1387149521]} final : True mtd_id 4302 list_pids : [1387169071] Looping around the photos to save general results len do output : 1 /27401557Didn'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, '3806938') ('4302', '27401557', '1387169071', None, None, None, None, None, '3806938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '27401557', 'None', None, None, None, None, '3806938'), ('4302', '27401557', '1387169071', None, None, None, None, None, '3806938')] time used for this insertion : 0.037996768951416016 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.334989547729492 time spend to save output : 0.03819751739501953 total time spend for step 5 : 10.373187065124512 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 (3806938) 2.11user 2.03system 0:28.54elapsed 14%CPU (0avgtext+0avgdata 155716maxresident)k 480inputs+13592outputs (21major+74037minor)pagefaults 0swaps