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 : 3445789 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 (4246579) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4246579) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546661 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4246579'] with mtr_portfolio_ids : ['29546661'] and first list_photo_ids : [] new path : /proc/3445789/ Name: python3 Umask: 0002 State: R (running) Tgid: 3445789 Ngid: 0 Pid: 3445789 PPid: 3445788 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3445789 NSpid: 3445789 NSpgid: 3444532 NSsid: 3444532 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106044 kB VmRSS: 106044 kB RssAnon: 66292 kB RssFile: 39752 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 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: 39 nonvoluntary_ctxt_switches: 128 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3445789', 'Ngid': '0', 'Pid': '3445789', 'PPid': '3445788', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3445789', 'NSpid': '3445789', 'NSpgid': '3444532', 'NSsid': '3444532', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106044 kB', 'VmRSS': '106044 kB', 'RssAnon': '66292 kB', 'RssFile': '39752 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 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': '39', 'nonvoluntary_ctxt_switches': '128'} ('datou_batch_current', '3445789', '1113364', '0', '1113364', '872092', '106044', b'', 'marlene', '4246579') 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 (29546661) 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 (4246579 ) ) 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 (29546661) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399977697, 'portfolio_id': 29546661}, {'photo_id': 1399977695, 'portfolio_id': 29546661}, {'photo_id': 1399977693, 'portfolio_id': 29546661}, {'photo_id': 1399977691, 'portfolio_id': 29546661}, {'photo_id': 1399977655, 'portfolio_id': 29546661}, {'photo_id': 1399977648, 'portfolio_id': 29546661}, {'photo_id': 1399977644, 'portfolio_id': 29546661}, {'photo_id': 1399977642, 'portfolio_id': 29546661}, {'photo_id': 1399977641, 'portfolio_id': 29546661}, {'photo_id': 1399977638, 'portfolio_id': 29546661}, {'photo_id': 1399977621, 'portfolio_id': 29546661}, {'photo_id': 1399977620, 'portfolio_id': 29546661}, {'photo_id': 1399977618, 'portfolio_id': 29546661}, {'photo_id': 1399977617, 'portfolio_id': 29546661}, {'photo_id': 1399977613, 'portfolio_id': 29546661}, {'photo_id': 1399977612, 'portfolio_id': 29546661}, {'photo_id': 1399977608, 'portfolio_id': 29546661}, {'photo_id': 1399977607, 'portfolio_id': 29546661}, {'photo_id': 1399977604, 'portfolio_id': 29546661}, {'photo_id': 1399977595, 'portfolio_id': 29546661}, {'photo_id': 1399977590, 'portfolio_id': 29546661}, {'photo_id': 1399977589, 'portfolio_id': 29546661}, {'photo_id': 1399977581, 'portfolio_id': 29546661}, {'photo_id': 1399977579, 'portfolio_id': 29546661}, {'photo_id': 1399977576, 'portfolio_id': 29546661}, {'photo_id': 1399977573, 'portfolio_id': 29546661}, {'photo_id': 1399977571, 'portfolio_id': 29546661}, {'photo_id': 1399977569, 'portfolio_id': 29546661}, {'photo_id': 1399977540, 'portfolio_id': 29546661}, {'photo_id': 1399977537, 'portfolio_id': 29546661}, {'photo_id': 1399977534, 'portfolio_id': 29546661}, {'photo_id': 1399977533, 'portfolio_id': 29546661}, {'photo_id': 1399977532, 'portfolio_id': 29546661}, {'photo_id': 1399977531, 'portfolio_id': 29546661}, {'photo_id': 1399977511, 'portfolio_id': 29546661}, {'photo_id': 1399977510, 'portfolio_id': 29546661}, {'photo_id': 1399977509, 'portfolio_id': 29546661}, {'photo_id': 1399977508, 'portfolio_id': 29546661}, {'photo_id': 1399977487, 'portfolio_id': 29546661}, {'photo_id': 1399977483, 'portfolio_id': 29546661}, {'photo_id': 1399977480, 'portfolio_id': 29546661}, {'photo_id': 1399977478, 'portfolio_id': 29546661}, {'photo_id': 1399977477, 'portfolio_id': 29546661}, {'photo_id': 1399977475, 'portfolio_id': 29546661}, {'photo_id': 1399977459, 'portfolio_id': 29546661}, {'photo_id': 1399977455, 'portfolio_id': 29546661}, {'photo_id': 1399977453, 'portfolio_id': 29546661}, {'photo_id': 1399977451, 'portfolio_id': 29546661}, {'photo_id': 1399977427, 'portfolio_id': 29546661}, {'photo_id': 1399977424, 'portfolio_id': 29546661}, {'photo_id': 1399977420, 'portfolio_id': 29546661}, {'photo_id': 1399977416, 'portfolio_id': 29546661}, {'photo_id': 1399977413, 'portfolio_id': 29546661}, {'photo_id': 1399977410, 'portfolio_id': 29546661}, {'photo_id': 1399977378, 'portfolio_id': 29546661}, {'photo_id': 1399977375, 'portfolio_id': 29546661}, {'photo_id': 1399977374, 'portfolio_id': 29546661}, {'photo_id': 1399977373, 'portfolio_id': 29546661}, {'photo_id': 1399977371, 'portfolio_id': 29546661}, {'photo_id': 1399977348, 'portfolio_id': 29546661}, {'photo_id': 1399977345, 'portfolio_id': 29546661}, {'photo_id': 1399977342, 'portfolio_id': 29546661}, {'photo_id': 1399977341, 'portfolio_id': 29546661}, {'photo_id': 1399977336, 'portfolio_id': 29546661}, {'photo_id': 1399977324, 'portfolio_id': 29546661}, {'photo_id': 1399977321, 'portfolio_id': 29546661}, {'photo_id': 1399977320, 'portfolio_id': 29546661}, {'photo_id': 1399977278, 'portfolio_id': 29546661}, {'photo_id': 1399977277, 'portfolio_id': 29546661}, {'photo_id': 1399977056, 'portfolio_id': 29546661}, {'photo_id': 1399977054, 'portfolio_id': 29546661}, {'photo_id': 1399977052, 'portfolio_id': 29546661}, {'photo_id': 1399977049, 'portfolio_id': 29546661}] map_portfolio_id_photo_id: {29546661: [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638, 1399977621, 1399977620, 1399977618, 1399977617, 1399977613, 1399977612, 1399977608, 1399977607, 1399977604, 1399977595, 1399977590, 1399977589, 1399977581, 1399977579, 1399977576, 1399977573, 1399977571, 1399977569, 1399977540, 1399977537, 1399977534, 1399977533, 1399977532, 1399977531, 1399977511, 1399977510, 1399977509, 1399977508, 1399977487, 1399977483, 1399977480, 1399977478, 1399977477, 1399977475, 1399977459, 1399977455, 1399977453, 1399977451, 1399977427, 1399977424, 1399977420, 1399977416, 1399977413, 1399977410, 1399977378, 1399977375, 1399977374, 1399977373, 1399977371, 1399977348, 1399977345, 1399977342, 1399977341, 1399977336, 1399977324, 1399977321, 1399977320, 1399977278, 1399977277, 1399977056, 1399977054, 1399977052, 1399977049]} ##### 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.020602703094482422 #### 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 Thu Dec 18 15:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29546661) 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 : 29546661 get user id for portfolio 29546661 get sub ptf for main ptf 29546661, type 3726 and hashtags ['mal_croppe', 'plastique', 'environnement', 'Carton_brun', 'Teint_Dans_La_Masse', 'Carton_gris', 'autre_refus', 'flou', 'kraft', 'metal', 'cartonnette', 'papier'] 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`=29546661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','Carton_gris','autre_refus','flou','kraft','metal','cartonnette','papier')) 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`=29546661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','Carton_gris','autre_refus','flou','kraft','metal','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29546661, 'sub_port_id': 29546715, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157467, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'autre_refus': {'main_port_id': 29546661, 'sub_port_id': 29546716, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157468, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'Carton_brun': {'main_port_id': 29546661, 'sub_port_id': 29546717, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157469, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29546661, 'sub_port_id': 29546718, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157470, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'metal': {'main_port_id': 29546661, 'sub_port_id': 29546719, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157471, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'papier': {'main_port_id': 29546661, 'sub_port_id': 29546720, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157472, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'cartonnette': {'main_port_id': 29546661, 'sub_port_id': 29546721, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157473, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'kraft': {'main_port_id': 29546661, 'sub_port_id': 29546722, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157474, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'mal_croppe': {'main_port_id': 29546661, 'sub_port_id': 29546724, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157475, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'plastique': {'main_port_id': 29546661, 'sub_port_id': 29546725, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157476, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'environnement': {'main_port_id': 29546661, 'sub_port_id': 29546726, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157477, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}, 'flou': {'main_port_id': 29546661, 'sub_port_id': 29546727, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157478, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29546715 , 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=29546661 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 (29546715) result : ((1399977429,), (1399977545,), (1399977557,), (1399977558,), (1399977559,), (1399977560,), (1399977561,), (1399977596,), (1399977597,), (1399977598,), (1399977712,), (1399977713,), (1399977714,), (1399977715,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546716 , 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=29546661 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 (29546716) result : ((1399977593,), (1399977594,), (1399977631,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546717 , 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=29546661 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 (29546717) result : ((1399977547,), (1399977563,), (1399977564,), (1399977565,), (1399977566,), (1399977615,), (1399977616,), (1399977633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546718 , 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=29546661 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 (29546718) result : ((1399977592,), (1399977628,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546719 , 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=29546661 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 (29546719) result : ((1399977635,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546720 , 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=29546661 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 (29546720) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546721 , 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=29546661 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 (29546721) result : ((1399977546,), (1399977562,), (1399977601,), (1399977602,), (1399977603,), (1399977614,), (1399977632,), (1399977716,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546722 , 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=29546661 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 (29546722) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546724 , 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=29546661 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 (29546724) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546725 , 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=29546661 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 (29546725) result : ((1399977431,), (1399977634,), (1399977717,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546726 , 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=29546661 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 (29546726) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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 29546727 , 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=29546661 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 (29546727) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29546661) result : ((1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) 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`=29546661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','Carton_gris','autre_refus','flou','kraft','metal','cartonnette','papier')) 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`=29546661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','Carton_gris','autre_refus','flou','kraft','metal','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29546661, 'sub_port_id': 29546729, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157479, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'autre_refus': {'main_port_id': 29546661, 'sub_port_id': 29546730, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157480, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'Carton_brun': {'main_port_id': 29546661, 'sub_port_id': 29546731, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157481, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 29546661, 'sub_port_id': 29546732, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157482, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'metal': {'main_port_id': 29546661, 'sub_port_id': 29546733, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157483, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'papier': {'main_port_id': 29546661, 'sub_port_id': 29546734, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157484, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'cartonnette': {'main_port_id': 29546661, 'sub_port_id': 29546736, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157485, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'kraft': {'main_port_id': 29546661, 'sub_port_id': 29546737, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157486, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'mal_croppe': {'main_port_id': 29546661, 'sub_port_id': 29546738, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157487, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'plastique': {'main_port_id': 29546661, 'sub_port_id': 29546739, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157488, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'environnement': {'main_port_id': 29546661, 'sub_port_id': 29546740, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157489, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}, 'flou': {'main_port_id': 29546661, 'sub_port_id': 29546741, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20157490, 'last_updated_at': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 15, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546715 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546716 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546717 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546718 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546733,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546719 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546734,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546720 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546736,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546721 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546737,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546722 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546724 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546725 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546726 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29546741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29546727 lien utilise dans velours : https://marlene.fotonower.com/velours/29546729,29546730,29546731,29546732,29546733,29546734,29546736,29546737,29546738,29546739,29546740,29546741?tags=Carton_gris,autre_refus,Carton_brun,Teint_Dans_La_Masse,metal,papier,cartonnette,kraft,mal_croppe,plastique,environnement,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29546661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] map_info['map_portfolio_photo'] : {29546661: [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638, 1399977621, 1399977620, 1399977618, 1399977617, 1399977613, 1399977612, 1399977608, 1399977607, 1399977604, 1399977595, 1399977590, 1399977589, 1399977581, 1399977579, 1399977576, 1399977573, 1399977571, 1399977569, 1399977540, 1399977537, 1399977534, 1399977533, 1399977532, 1399977531, 1399977511, 1399977510, 1399977509, 1399977508, 1399977487, 1399977483, 1399977480, 1399977478, 1399977477, 1399977475, 1399977459, 1399977455, 1399977453, 1399977451, 1399977427, 1399977424, 1399977420, 1399977416, 1399977413, 1399977410, 1399977378, 1399977375, 1399977374, 1399977373, 1399977371, 1399977348, 1399977345, 1399977342, 1399977341, 1399977336, 1399977324, 1399977321, 1399977320, 1399977278, 1399977277, 1399977056, 1399977054, 1399977052, 1399977049]} final : False mtd_id 4302 list_pids : [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] Looping around the photos to save general results len do output : 1 /29546661. 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, '4246579') ('4302', '29546661', '1399977697', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977695', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977693', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977691', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977655', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977648', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977644', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977642', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977641', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977638', None, None, None, None, None, '4246579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '29546661', "{'Carton_gris': 29546715, 'autre_refus': 29546716, 'Carton_brun': 29546717, 'Teint_Dans_La_Masse': 29546718, 'metal': 29546719, 'papier': 29546720, 'cartonnette': 29546721, 'kraft': 29546722, 'mal_croppe': 29546724, 'plastique': 29546725, 'environnement': 29546726, 'flou': 29546727}", None, None, None, None, '4246579'), ('4302', '29546661', '1399977697', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977695', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977693', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977691', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977655', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977648', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977644', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977642', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977641', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977638', None, None, None, None, None, '4246579')] time used for this insertion : 0.017608165740966797 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.82554292678833 time spend to save output : 0.01791977882385254 total time spend for step 1 : 1.8434627056121826 step2:final Thu Dec 18 15:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29546661) 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 29546661 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399977056,1399977054,1399977052,1399977049,1399977324,1399977321,1399977320,1399977278,1399977277,1399977348,1399977345,1399977342,1399977341,1399977378,1399977336,1399977375,1399977374,1399977373,1399977371,1399977427,1399977424,1399977420,1399977416,1399977413,1399977410,1399977459,1399977455,1399977453,1399977451,1399977487,1399977483,1399977480,1399977478,1399977477,1399977475,1399977511,1399977510,1399977509,1399977508,1399977540,1399977608,1399977537,1399977607,1399977534,1399977604,1399977533,1399977595,1399977532,1399977590,1399977531,1399977589,1399977581,1399977579,1399977576,1399977573,1399977571,1399977569,1399977621,1399977620,1399977617,1399977618,1399977613,1399977612,1399977655,1399977648,1399977644,1399977642,1399977641,1399977638,1399977697,1399977695,1399977693,1399977691); 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([29546661]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} new output for save of step final : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] map_info['map_portfolio_photo'] : {29546661: [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638, 1399977621, 1399977620, 1399977618, 1399977617, 1399977613, 1399977612, 1399977608, 1399977607, 1399977604, 1399977595, 1399977590, 1399977589, 1399977581, 1399977579, 1399977576, 1399977573, 1399977571, 1399977569, 1399977540, 1399977537, 1399977534, 1399977533, 1399977532, 1399977531, 1399977511, 1399977510, 1399977509, 1399977508, 1399977487, 1399977483, 1399977480, 1399977478, 1399977477, 1399977475, 1399977459, 1399977455, 1399977453, 1399977451, 1399977427, 1399977424, 1399977420, 1399977416, 1399977413, 1399977410, 1399977378, 1399977375, 1399977374, 1399977373, 1399977371, 1399977348, 1399977345, 1399977342, 1399977341, 1399977336, 1399977324, 1399977321, 1399977320, 1399977278, 1399977277, 1399977056, 1399977054, 1399977052, 1399977049]} final : False mtd_id 4302 list_pids : [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] Looping around the photos to save general results len do output : 10 /1399977697.Didn't retrieve data . /1399977695.Didn't retrieve data . /1399977693.Didn't retrieve data . /1399977691.Didn't retrieve data . /1399977655.Didn't retrieve data . /1399977648.Didn't retrieve data . /1399977644.Didn't retrieve data . /1399977642.Didn't retrieve data . /1399977641.Didn't retrieve data . /1399977638.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, '4246579') ('4302', '29546661', '1399977697', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977695', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977693', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977691', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977655', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977648', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977644', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977642', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977641', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977638', None, None, None, None, None, '4246579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '29546661', '1399977697', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977695', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977693', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977691', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977655', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977648', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977644', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977642', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977641', '0.03067975972526448', None, None, None, None, '4246579'), ('4302', '29546661', '1399977638', '0.03067975972526448', None, None, None, None, '4246579')] time used for this insertion : 0.015688657760620117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08403325080871582 time spend to save output : 0.016201019287109375 total time spend for step 2 : 0.1002342700958252 step3:velours_tree Thu Dec 18 15:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29546661: [{'Carton_gris': 29546715, 'autre_refus': 29546716, 'Carton_brun': 29546717, 'Teint_Dans_La_Masse': 29546718, 'metal': 29546719, 'papier': 29546720, 'cartonnette': 29546721, 'kraft': 29546722, 'mal_croppe': 29546724, 'plastique': 29546725, 'environnement': 29546726, 'flou': 29546727}]} input_args_next_step : {29546661: ()} output_args : {29546661: [{'Carton_gris': 29546715, 'autre_refus': 29546716, 'Carton_brun': 29546717, 'Teint_Dans_La_Masse': 29546718, 'metal': 29546719, 'papier': 29546720, 'cartonnette': 29546721, 'kraft': 29546722, 'mal_croppe': 29546724, 'plastique': 29546725, 'environnement': 29546726, 'flou': 29546727}]} args : 29546661 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 29546715, 'autre_refus': 29546716, 'Carton_brun': 29546717, 'Teint_Dans_La_Masse': 29546718, 'metal': 29546719, 'papier': 29546720, 'cartonnette': 29546721, 'kraft': 29546722, 'mal_croppe': 29546724, 'plastique': 29546725, 'environnement': 29546726, 'flou': 29546727},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29546661) 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([29546661]) 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.30002665519714355 time spend to save output : 4.1484832763671875e-05 total time spend for step 3 : 0.3000681400299072 step4:send_mail_cod Thu Dec 18 15:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} input_args_next_step : {1399977697: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977697 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977695 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977693 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977691 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977655 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977648 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977644 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977642 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977641 depend.output_id : 0 input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ()} output_args : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',)} args : 1399977638 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29546661: [{'Carton_gris': 29546715, 'autre_refus': 29546716, 'Carton_brun': 29546717, 'Teint_Dans_La_Masse': 29546718, 'metal': 29546719, 'papier': 29546720, 'cartonnette': 29546721, 'kraft': 29546722, 'mal_croppe': 29546724, 'plastique': 29546725, 'environnement': 29546726, 'flou': 29546727}]} input_args_next_step : {1399977697: ('0.03067975972526448',), 1399977695: ('0.03067975972526448',), 1399977693: ('0.03067975972526448',), 1399977691: ('0.03067975972526448',), 1399977655: ('0.03067975972526448',), 1399977648: ('0.03067975972526448',), 1399977644: ('0.03067975972526448',), 1399977642: ('0.03067975972526448',), 1399977641: ('0.03067975972526448',), 1399977638: ('0.03067975972526448',), 29546661: ()} output_args : {29546661: [{'Carton_gris': 29546715, 'autre_refus': 29546716, 'Carton_brun': 29546717, 'Teint_Dans_La_Masse': 29546718, 'metal': 29546719, 'papier': 29546720, 'cartonnette': 29546721, 'kraft': 29546722, 'mal_croppe': 29546724, 'plastique': 29546725, 'environnement': 29546726, 'flou': 29546727}]} args : 29546661 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 :11, first value : ('0.03067975972526448',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29546661) 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 (1399977697,1399977695,1399977693,1399977691,1399977655,1399977648,1399977644,1399977642,1399977641,1399977638) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399977638 begin to download photo : 1399977644 begin to download photo : 1399977691 begin to download photo : 1399977697 download finish for photo 1399977691 begin to download photo : 1399977693 download finish for photo 1399977697 download finish for photo 1399977644 begin to download photo : 1399977648 download finish for photo 1399977638 begin to download photo : 1399977641 download finish for photo 1399977693 begin to download photo : 1399977695 download finish for photo 1399977648 begin to download photo : 1399977655 download finish for photo 1399977641 begin to download photo : 1399977642 download finish for photo 1399977695 download finish for photo 1399977655 download finish for photo 1399977642 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29546661_18-12-2025_15_14_59.pdf 29546716 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=29546716 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399977593: '1766067026_823496_1399977511_2b31c269104624bb18cd9fb6090bce64_rle_crop_4074222615_0.png', 1399977594: '1766067026_823496_1399977483_4d74b54098e2213d7e99e7ef0bef0b3c_rle_crop_4074222621_0.png', 1399977631: '1766067085_828655_1399977487_09e86a09e9a8a2d27d80e18efc6d8d21_rle_crop_4074222927_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/949ba25880fbae6cf66d1795841b9151_99260161.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4a1dbb56668b82b208b1a65baa6150f0_48393548.png change filename to text .imagette295467161766067299/ imagette295467161766067299/1766067026_823496_1399977511_2b31c269104624bb18cd9fb6090bce64_rle_crop_4074222615_0.png.png imagette295467161766067299/1766067026_823496_1399977483_4d74b54098e2213d7e99e7ef0bef0b3c_rle_crop_4074222621_0.png.png imagette295467161766067299/1766067085_828655_1399977487_09e86a09e9a8a2d27d80e18efc6d8d21_rle_crop_4074222927_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/06f0c6dd0bf096db4b5aeff0379f6f78_93977205.png imagette295467161766067299 29546719 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=29546719 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399977635: '1766067085_828655_1399977451_fbde6f4039e251fad0299b6a44611550_rle_crop_4074222970_0.png'} change filename to text .imagette295467191766067300/ imagette295467191766067300/1766067085_828655_1399977451_fbde6f4039e251fad0299b6a44611550_rle_crop_4074222970_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/30096ef720fafb8ec09c136d619ec459_87734901.png imagette295467191766067300 29546721 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=29546721 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399977546: '1766066947_819728_1399977416_a3e91fe328f545117f656d47dc954ff2_rle_crop_4074222047_0.png', 1399977562: '1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222203_0.png', 1399977601: '1766067026_823496_1399977480_8abe80cdb0fee1c9e61b5fa5eeca13cf_rle_crop_4074222634_0.png', 1399977602: '1766067026_823496_1399977477_5d4b2cdcba8c51f496b371b7289c83cf_rle_crop_4074222669_0.png', 1399977603: '1766067026_823496_1399977475_b7043e00b95b64346ed239153cf5d9b2_rle_crop_4074222680_0.png', 1399977614: '1766067067_826169_1399977508_9f6bc3c7bd072a08bddf7ad667e5c2a0_rle_crop_4074222790_0.png', 1399977632: '1766067085_828655_1399977451_fbde6f4039e251fad0299b6a44611550_rle_crop_4074222966_0.png', 1399977716: '1766067207_835636_1399977371_4cbaeb6dbbff3c3fa49f5f286d46f772_rle_crop_4074223496_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/84b3cb6ef4799e30291cc2f7a498cffc_51663897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/020bdcde6c5842e2a2fb9c0e2a950ee6_25742949.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c5490ac3908fe26772bdb55183d54650_23839715.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/55b67ae483e5888a3462928f3ccc8578_82237891.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/327e208ae1c0392b83a1c976a79fd034_81328750.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cb5d0a1b51f2086e2ddecb69f8952094_66138472.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a2fa7b95495498a166cf569d771289ec_80011553.png change filename to text .imagette295467211766067300/ imagette295467211766067300/1766067085_828655_1399977451_fbde6f4039e251fad0299b6a44611550_rle_crop_4074222966_0.png.png imagette295467211766067300/1766067067_826169_1399977508_9f6bc3c7bd072a08bddf7ad667e5c2a0_rle_crop_4074222790_0.png.png imagette295467211766067300/1766067207_835636_1399977371_4cbaeb6dbbff3c3fa49f5f286d46f772_rle_crop_4074223496_0.png.png imagette295467211766067300/1766066947_819728_1399977416_a3e91fe328f545117f656d47dc954ff2_rle_crop_4074222047_0.png.png imagette295467211766067300/1766067026_823496_1399977477_5d4b2cdcba8c51f496b371b7289c83cf_rle_crop_4074222669_0.png.png imagette295467211766067300/1766067026_823496_1399977475_b7043e00b95b64346ed239153cf5d9b2_rle_crop_4074222680_0.png.png imagette295467211766067300/1766067026_823496_1399977480_8abe80cdb0fee1c9e61b5fa5eeca13cf_rle_crop_4074222634_0.png.png imagette295467211766067300/1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222203_0.png.png imagette295467221766067300/ imagette295467241766067300/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fa3645f854fb512c261bb4bc05be0474_31597964.png imagette295467211766067300 29546722 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=29546722 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295467221766067300 29546724 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=29546724 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295467241766067300 29546725 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=29546725 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399977431: '1766066706_807402_1399977324_f2d6221c337e102a60f6e954df4dcf10_rle_crop_4074221118_0.png', 1399977634: '1766067085_828655_1399977453_17500b120ec6d2ffb3b3035fa5914e65_rle_crop_4074222949_0.png', 1399977717: '1766067207_835636_1399977427_75a858761fe6cdc4f0022dde251fa8ac_rle_crop_4074223444_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6d7fc3895584181e002acc79479fa162_71751800.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c1a27c86a2c752489b82e6fad7a1f2be_16329567.png change filename to text .imagette295467251766067300/ imagette295467251766067300/1766067207_835636_1399977427_75a858761fe6cdc4f0022dde251fa8ac_rle_crop_4074223444_0.png.png imagette295467251766067300/1766066706_807402_1399977324_f2d6221c337e102a60f6e954df4dcf10_rle_crop_4074221118_0.png.png imagette295467251766067300/1766067085_828655_1399977453_17500b120ec6d2ffb3b3035fa5914e65_rle_crop_4074222949_0.png.png imagette295467271766067301/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/678fe359227235a42c214ba1a5776595_99223179.png imagette295467251766067300 29546727 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=29546727 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295467271766067301 29546715 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=29546715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399977429: '1766066706_807402_1399977324_f2d6221c337e102a60f6e954df4dcf10_rle_crop_4074221122_0.png', 1399977545: '1766066947_819728_1399977424_e4869a0fcb68198a16f5d62ea5345730_rle_crop_4074222028_0.png', 1399977557: '1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222207_0.png', 1399977558: '1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222214_0.png', 1399977559: '1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222209_0.png', 1399977560: '1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222213_0.png', 1399977561: '1766066966_820086_1399977341_c6df7158eaf000ce94c51148cc0fb037_rle_crop_4074222242_0.png', 1399977596: '1766067026_823496_1399977483_4d74b54098e2213d7e99e7ef0bef0b3c_rle_crop_4074222627_0.png', 1399977597: '1766067026_823496_1399977480_8abe80cdb0fee1c9e61b5fa5eeca13cf_rle_crop_4074222635_0.png', 1399977598: '1766067026_823496_1399977477_5d4b2cdcba8c51f496b371b7289c83cf_rle_crop_4074222666_0.png', 1399977712: '1766067207_835636_1399977373_0f4a26406458ea3cd6116224a700e4f7_rle_crop_4074223466_0.png', 1399977713: '1766067207_835636_1399977373_0f4a26406458ea3cd6116224a700e4f7_rle_crop_4074223471_0.png', 1399977714: '1766067207_835636_1399977373_0f4a26406458ea3cd6116224a700e4f7_rle_crop_4074223475_0.png', 1399977715: '1766067207_835636_1399977371_4cbaeb6dbbff3c3fa49f5f286d46f772_rle_crop_4074223501_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/10328d2f004b726f2f59e27f5e3fa761_4523291.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8861f72b95a2e9dea1277f71464d623d_57098755.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d58e287c62f24d90d14ccfccadd87de9_80869454.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5c901db0e24989c15eb77eecda918d7f_62114728.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2cc05682904a375983d26d634b2d6e8f_29005605.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3edb4cef685bade9fc1e61573a2e9443_48227199.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8382e509e53dff77e1d1c4a9cb747773_99823673.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1da9dce7bd8b1476db9ad880e9ca8936_97040702.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a097a5ac54e2cbfeee9d4d14bc6dfe2c_28049343.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/01839da2b13a21fbbe501db801db7c27_88848239.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3e8b1f2ab71fea933a46099749c77400_45625365.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/160935d17027c9a06e9e5b42c3ac2066_46927127.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ef24b1c47ce1c30ceb32aa8fce7a3394_98806085.png change filename to text .imagette295467151766067301/ imagette295467151766067301/1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222209_0.png.png imagette295467151766067301/1766066947_819728_1399977424_e4869a0fcb68198a16f5d62ea5345730_rle_crop_4074222028_0.png.png imagette295467151766067301/1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222207_0.png.png imagette295467151766067301/1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222214_0.png.png imagette295467151766067301/1766066966_820086_1399977341_c6df7158eaf000ce94c51148cc0fb037_rle_crop_4074222242_0.png.png imagette295467151766067301/1766067207_835636_1399977373_0f4a26406458ea3cd6116224a700e4f7_rle_crop_4074223475_0.png.png imagette295467151766067301/1766066966_820086_1399977345_d80e726a4b0f84f54306ab7c0dc2bcbb_rle_crop_4074222213_0.png.png imagette295467151766067301/1766067026_823496_1399977480_8abe80cdb0fee1c9e61b5fa5eeca13cf_rle_crop_4074222635_0.png.png imagette295467151766067301/1766066706_807402_1399977324_f2d6221c337e102a60f6e954df4dcf10_rle_crop_4074221122_0.png.png imagette295467151766067301/1766067026_823496_1399977477_5d4b2cdcba8c51f496b371b7289c83cf_rle_crop_4074222666_0.png.png imagette295467151766067301/1766067207_835636_1399977373_0f4a26406458ea3cd6116224a700e4f7_rle_crop_4074223466_0.png.png imagette295467151766067301/1766067207_835636_1399977373_0f4a26406458ea3cd6116224a700e4f7_rle_crop_4074223471_0.png.png imagette295467151766067301/1766067207_835636_1399977371_4cbaeb6dbbff3c3fa49f5f286d46f772_rle_crop_4074223501_0.png.png imagette295467151766067301/1766067026_823496_1399977483_4d74b54098e2213d7e99e7ef0bef0b3c_rle_crop_4074222627_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9ab0e767b4023c52fd668827ab26a3dd_71475747.png imagette295467151766067301 29546717 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=29546717 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399977547: '1766066947_819728_1399977424_e4869a0fcb68198a16f5d62ea5345730_rle_crop_4074222029_0.png', 1399977563: '1766066966_820086_1399977342_57db104c7b0921d19f9fab9672d9523b_rle_crop_4074222226_0.png', 1399977564: '1766066966_820086_1399977342_57db104c7b0921d19f9fab9672d9523b_rle_crop_4074222225_0.png', 1399977565: '1766066966_820086_1399977341_c6df7158eaf000ce94c51148cc0fb037_rle_crop_4074222247_0.png', 1399977566: '1766066966_820086_1399977341_c6df7158eaf000ce94c51148cc0fb037_rle_crop_4074222248_0.png', 1399977615: '1766067067_826169_1399977510_07cd980644a780d056c9d5f1c5b2d77d_rle_crop_4074222761_0.png', 1399977616: '1766067067_826169_1399977508_9f6bc3c7bd072a08bddf7ad667e5c2a0_rle_crop_4074222786_0.png', 1399977633: '1766067085_828655_1399977487_09e86a09e9a8a2d27d80e18efc6d8d21_rle_crop_4074222929_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ce1d242cb0f3ee96185538bb189aa5f4_14539521.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4e299697f81cdce505f58636e41e4870_52848345.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/228df89890e103694ac3ad33f43421ea_69777272.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/46797940f8aa8a5802d82e81b461b2ea_95915549.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/80d9c739a5ee006f1a3b25d87a564798_37061395.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9dc254b4ad6a5e83bd982c174fc4633c_55223143.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/263d5f5b8abb544ab8cb673ca1b3faf4_95767654.png change filename to text .imagette295467171766067302/ imagette295467171766067302/1766066966_820086_1399977342_57db104c7b0921d19f9fab9672d9523b_rle_crop_4074222226_0.png.png imagette295467171766067302/1766067085_828655_1399977487_09e86a09e9a8a2d27d80e18efc6d8d21_rle_crop_4074222929_0.png.png imagette295467171766067302/1766067067_826169_1399977508_9f6bc3c7bd072a08bddf7ad667e5c2a0_rle_crop_4074222786_0.png.png imagette295467171766067302/1766066947_819728_1399977424_e4869a0fcb68198a16f5d62ea5345730_rle_crop_4074222029_0.png.png imagette295467171766067302/1766066966_820086_1399977341_c6df7158eaf000ce94c51148cc0fb037_rle_crop_4074222248_0.png.png imagette295467171766067302/1766066966_820086_1399977341_c6df7158eaf000ce94c51148cc0fb037_rle_crop_4074222247_0.png.png imagette295467171766067302/1766066966_820086_1399977342_57db104c7b0921d19f9fab9672d9523b_rle_crop_4074222225_0.png.png imagette295467171766067302/1766067067_826169_1399977510_07cd980644a780d056c9d5f1c5b2d77d_rle_crop_4074222761_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ec109c5edbfa0c7b4d5c6d233991ec62_85300163.png imagette295467171766067302 29546718 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=29546718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399977592: '1766067026_823496_1399977483_4d74b54098e2213d7e99e7ef0bef0b3c_rle_crop_4074222628_0.png', 1399977628: '1766067085_828655_1399977453_17500b120ec6d2ffb3b3035fa5914e65_rle_crop_4074222948_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/75f1425fac7676e2f33a1318abfae7bc_52977282.png change filename to text .imagette295467181766067302/ imagette295467181766067302/1766067085_828655_1399977453_17500b120ec6d2ffb3b3035fa5914e65_rle_crop_4074222948_0.png.png imagette295467181766067302/1766067026_823496_1399977483_4d74b54098e2213d7e99e7ef0bef0b3c_rle_crop_4074222628_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/85cfdf94c8d4c839301ccc29083998d5_27021421.png imagette295467181766067302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29546661 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29546729,29546730,29546731,29546732,29546733,29546734,29546736,29546737,29546738,29546739,29546740,29546741?tags=Carton_gris,autre_refus,Carton_brun,Teint_Dans_La_Masse,metal,papier,cartonnette,kraft,mal_croppe,plastique,environnement,flou your option no_mail is active, we will not send the real mail to your client args[1399977697] : ('0.03067975972526448',) no score found for photo 1399977697 We are sending mail with results at report@fotonower.com args[1399977695] : ('0.03067975972526448',) no score found for photo 1399977695 We are sending mail with results at report@fotonower.com args[1399977693] : ('0.03067975972526448',) no score found for photo 1399977693 We are sending mail with results at report@fotonower.com args[1399977691] : ('0.03067975972526448',) no score found for photo 1399977691 We are sending mail with results at report@fotonower.com args[1399977655] : ('0.03067975972526448',) no score found for photo 1399977655 We are sending mail with results at report@fotonower.com args[1399977648] : ('0.03067975972526448',) no score found for photo 1399977648 We are sending mail with results at report@fotonower.com args[1399977644] : ('0.03067975972526448',) no score found for photo 1399977644 We are sending mail with results at report@fotonower.com args[1399977642] : ('0.03067975972526448',) no score found for photo 1399977642 We are sending mail with results at report@fotonower.com args[1399977641] : ('0.03067975972526448',) no score found for photo 1399977641 We are sending mail with results at report@fotonower.com args[1399977638] : ('0.03067975972526448',) no score found for photo 1399977638 We are sending mail with results at report@fotonower.com refus_total : 0.03067975972526448 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=29546661 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_P29546661_18-12-2025_15_14_59.pdf results_Auto_P29546661_18-12-2025_15_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546661_18-12-2025_15_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29546661','results_Auto_P29546661_18-12-2025_15_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546661_18-12-2025_15_14_59.pdf','pdf','','0.21','0.03067975972526448') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29546661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] map_info['map_portfolio_photo'] : {29546661: [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638, 1399977621, 1399977620, 1399977618, 1399977617, 1399977613, 1399977612, 1399977608, 1399977607, 1399977604, 1399977595, 1399977590, 1399977589, 1399977581, 1399977579, 1399977576, 1399977573, 1399977571, 1399977569, 1399977540, 1399977537, 1399977534, 1399977533, 1399977532, 1399977531, 1399977511, 1399977510, 1399977509, 1399977508, 1399977487, 1399977483, 1399977480, 1399977478, 1399977477, 1399977475, 1399977459, 1399977455, 1399977453, 1399977451, 1399977427, 1399977424, 1399977420, 1399977416, 1399977413, 1399977410, 1399977378, 1399977375, 1399977374, 1399977373, 1399977371, 1399977348, 1399977345, 1399977342, 1399977341, 1399977336, 1399977324, 1399977321, 1399977320, 1399977278, 1399977277, 1399977056, 1399977054, 1399977052, 1399977049]} final : False mtd_id 4302 list_pids : [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] 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, '4246579') ('4302', '29546661', '1399977697', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977695', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977693', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977691', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977655', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977648', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977644', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977642', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977641', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977638', None, None, None, None, None, '4246579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '29546661', '1399977697', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977695', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977693', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977691', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977655', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977648', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977644', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977642', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977641', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977638', None, None, None, None, None, '4246579')] time used for this insertion : 0.01985001564025879 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.748391389846802 time spend to save output : 0.020148277282714844 total time spend for step 4 : 4.768539667129517 step5:split_time_score Thu Dec 18 15:15:04 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 : ['29546661'] 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 : [('29546661',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29546661) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399977697: {'path': 'temp/1766067299_3445789_1399977697_8a8a36e6e58ef8b0176be1766ca8ef9a.jpg', 'extension': 'jpg'}, 1399977691: {'path': 'temp/1766067299_3445789_1399977691_0ffd2f882857eaa4a33bb035e97b066c.jpg', 'extension': 'jpg'}, 1399977693: {'path': 'temp/1766067299_3445789_1399977693_46553b13883621231a18581b143b7148.jpg', 'extension': 'jpg'}, 1399977695: {'path': 'temp/1766067299_3445789_1399977695_70456138b88fafa38dbaf3ac236a6af6.jpg', 'extension': 'jpg'}, 1399977644: {'path': 'temp/1766067299_3445789_1399977644_377ead54bfed5b5bae2b93d07dac5ae1.jpg', 'extension': 'jpg'}, 1399977648: {'path': 'temp/1766067299_3445789_1399977648_13acb5e33ed8538168d4055c2f0e92f8.jpg', 'extension': 'jpg'}, 1399977655: {'path': 'temp/1766067299_3445789_1399977655_ba2c0d0284c2b88d1c90726922fae824.jpg', 'extension': 'jpg'}, 1399977638: {'path': 'temp/1766067299_3445789_1399977638_53b542642cba016f4f34e5e51dab4101.jpg', 'extension': 'jpg'}, 1399977641: {'path': 'temp/1766067299_3445789_1399977641_84d9337a955429a4db7c15729a302b10.jpg', 'extension': 'jpg'}, 1399977642: {'path': 'temp/1766067299_3445789_1399977642_59907fcba09e787088a4e11aa0f9efdc.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 = 29546661; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29546661 group by h (('15', 73),) 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=29546661 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 (29546661) 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 (29546661) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18122025 29546661 Nombre de photos uploadées : 73 / 23040 (0%) 18122025 29546661 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 18122025 29546661 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1399977056, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8aea3305f395f3bc3d4f0353372b1097.jpg', 'username': None, 'uploaded_at': 1766066468, 'text': 'image_18122025_15_00_14_010196m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399977054, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f390919e9d6997b87a7c691247e639e9.jpg', 'username': None, 'uploaded_at': 1766066468, 'text': 'image_18122025_15_00_24_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399977052, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e255b0a209f11a94b4d2602155b4175a.jpg', 'username': None, 'uploaded_at': 1766066468, 'text': 'image_18122025_15_00_34_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399977049, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/704d1eaaee9f0b7a59b3903e2936559f.jpg', 'username': None, 'uploaded_at': 1766066468, 'text': 'image_18122025_15_00_44_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032405853271484375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29546661, '2025-12-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2754916,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24947023391723633 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= 2754916 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29518047, 'dashboard_result_id': 18523952, '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_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29518739, 'dashboard_result_id': 18523953, '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_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29519140, 'dashboard_result_id': 18523954, '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_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29519795, 'dashboard_result_id': 18523955, '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_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29520859, 'dashboard_result_id': 18523956, '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_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29521041, 'dashboard_result_id': 18523957, '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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29521390, 'dashboard_result_id': 18523958, '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_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29521664, 'dashboard_result_id': 18523959, '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_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29522214, 'dashboard_result_id': 18523960, '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_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29522701, 'dashboard_result_id': 18523961, '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_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29523037, 'dashboard_result_id': 18523962, '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_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29523671, 'dashboard_result_id': 18523963, '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_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29524171, 'dashboard_result_id': 18523964, '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_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29524599, 'dashboard_result_id': 18523965, '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_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29525105, 'dashboard_result_id': 18523966, '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_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29525978, 'dashboard_result_id': 18523967, '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_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29526227, 'dashboard_result_id': 18523968, '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_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29526571, 'dashboard_result_id': 18523969, '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_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29526944, 'dashboard_result_id': 18523970, '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_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29527309, 'dashboard_result_id': 18523971, '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_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29527635, 'dashboard_result_id': 18523972, '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_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29528012, 'dashboard_result_id': 18523973, '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_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29528449, 'dashboard_result_id': 18523974, '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_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29528882, 'dashboard_result_id': 18523975, '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_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29529672, 'dashboard_result_id': 18523976, '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_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29530097, 'dashboard_result_id': 18523977, '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_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29530582, 'dashboard_result_id': 18523978, '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_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29531020, 'dashboard_result_id': 18523979, '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_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29531694, 'dashboard_result_id': 18523980, '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_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29532246, 'dashboard_result_id': 18523981, '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_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29532732, 'dashboard_result_id': 18523982, '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_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29534702, 'dashboard_result_id': 18523983, '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_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29535436, 'dashboard_result_id': 18523984, '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_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29536076, 'dashboard_result_id': 18523985, '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_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29536806, 'dashboard_result_id': 18523986, '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_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29537598, 'dashboard_result_id': 18523987, '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_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29538418, 'dashboard_result_id': 18523988, '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_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29539090, 'dashboard_result_id': 18523989, '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_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29540060, 'dashboard_result_id': 18523990, '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_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29540604, 'dashboard_result_id': 18523991, '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_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29541128, 'dashboard_result_id': 18523992, '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_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29541476, 'dashboard_result_id': 18523993, '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_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29542319, 'dashboard_result_id': 18523994, '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_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29543553, 'dashboard_result_id': 18523995, '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_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29543827, 'dashboard_result_id': 18523996, '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_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29544201, 'dashboard_result_id': 18523997, '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_P29544201_18-12-2025_14_19_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29544927, 'dashboard_result_id': 18523998, '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_P29544927_18-12-2025_14_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544942, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29545385, 'dashboard_result_id': 18523999, '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_P29545385_18-12-2025_14_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29545420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29545421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29545422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29545423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29545424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29545425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29545426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29545427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29545428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29545429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29545430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29545431, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29546011, 'dashboard_result_id': 18524000, '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_P29546011_18-12-2025_15_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546047, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765885, 'mtr_portfolio_id': 29546661, 'dashboard_result_id': 18524001, '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_P29546661_18-12-2025_15_11_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546727, '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 = 29518047 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': 4244016, 'mtr_portfolio_id': 29518047, 'created_at': datetime.datetime(2025, 12, 18, 6, 8, 30), 'result': '0.03160039577318933', 'result_long': None, 'result_double': None}] Qualite : 0.03160039577318933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518047 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_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}" where mtr_portfolio_id = 29518047 and dashboard_run_id = 2765885 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`=29518047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523952, 0.03160039577318933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, '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 = 29518739 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': 4244017, 'mtr_portfolio_id': 29518739, 'created_at': datetime.datetime(2025, 12, 18, 6, 9), 'result': '0.06084823724062575', 'result_long': None, 'result_double': None}] Qualite : 0.06084823724062575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518739 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_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}" where mtr_portfolio_id = 29518739 and dashboard_run_id = 2765885 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`=29518739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523953, 0.06084823724062575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, '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 = 29519140 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': 4244018, 'mtr_portfolio_id': 29519140, 'created_at': datetime.datetime(2025, 12, 18, 6, 9, 30), 'result': '0.05106015840957442', 'result_long': None, 'result_double': None}] Qualite : 0.05106015840957442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519140 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_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}" where mtr_portfolio_id = 29519140 and dashboard_run_id = 2765885 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`=29519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523954, 0.05106015840957442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, '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 = 29519795 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': 4244019, 'mtr_portfolio_id': 29519795, 'created_at': datetime.datetime(2025, 12, 18, 6, 10), 'result': '0.054834556193236', 'result_long': None, 'result_double': None}] Qualite : 0.054834556193236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519795 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_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}" where mtr_portfolio_id = 29519795 and dashboard_run_id = 2765885 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`=29519795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523955, 0.054834556193236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, '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 = 29520859 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': 4244020, 'mtr_portfolio_id': 29520859, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 32), 'result': '0.0755093911554323', 'result_long': None, 'result_double': None}] Qualite : 0.0755093911554323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29520859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29520859 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_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}" where mtr_portfolio_id = 29520859 and dashboard_run_id = 2765885 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`=29520859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523956, 0.0755093911554323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, '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 = 29521041 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': 4244021, 'mtr_portfolio_id': 29521041, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 38), 'result': '0.0626906800236694', 'result_long': None, 'result_double': None}] Qualite : 0.0626906800236694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521041 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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}" where mtr_portfolio_id = 29521041 and dashboard_run_id = 2765885 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`=29521041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523957, 0.0626906800236694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, '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 = 29521390 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': 4244022, 'mtr_portfolio_id': 29521390, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 59), 'result': '0.03601307954338611', 'result_long': None, 'result_double': None}] Qualite : 0.03601307954338611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521390 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_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}" where mtr_portfolio_id = 29521390 and dashboard_run_id = 2765885 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`=29521390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523958, 0.03601307954338611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, '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 = 29521664 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': 4244023, 'mtr_portfolio_id': 29521664, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 7), 'result': '0.05224710201661981', 'result_long': None, 'result_double': None}] Qualite : 0.05224710201661981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521664 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_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}" where mtr_portfolio_id = 29521664 and dashboard_run_id = 2765885 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`=29521664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523959, 0.05224710201661981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, '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 = 29522214 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': 4244024, 'mtr_portfolio_id': 29522214, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 27), 'result': '0.04940413964377284', 'result_long': None, 'result_double': None}] Qualite : 0.04940413964377284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522214 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_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}" where mtr_portfolio_id = 29522214 and dashboard_run_id = 2765885 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`=29522214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523960, 0.04940413964377284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, '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 = 29522701 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': 4244025, 'mtr_portfolio_id': 29522701, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 57), 'result': '0.05754232575898655', 'result_long': None, 'result_double': None}] Qualite : 0.05754232575898655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522701 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_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}" where mtr_portfolio_id = 29522701 and dashboard_run_id = 2765885 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`=29522701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523961, 0.05754232575898655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, '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 = 29523037 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': 4244026, 'mtr_portfolio_id': 29523037, 'created_at': datetime.datetime(2025, 12, 18, 6, 12, 27), 'result': '0.04587231639916059', 'result_long': None, 'result_double': None}] Qualite : 0.04587231639916059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523037 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_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}" where mtr_portfolio_id = 29523037 and dashboard_run_id = 2765885 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`=29523037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523962, 0.04587231639916059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, '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 = 29523671 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': 4244027, 'mtr_portfolio_id': 29523671, 'created_at': datetime.datetime(2025, 12, 18, 6, 13, 29), 'result': '0.0382293432947963', 'result_long': None, 'result_double': None}] Qualite : 0.0382293432947963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523671 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_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}" where mtr_portfolio_id = 29523671 and dashboard_run_id = 2765885 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`=29523671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523963, 0.0382293432947963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, '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 = 29524171 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': 4244028, 'mtr_portfolio_id': 29524171, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 1), 'result': '0.04929941874328893', 'result_long': None, 'result_double': None}] Qualite : 0.04929941874328893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524171 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_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}" where mtr_portfolio_id = 29524171 and dashboard_run_id = 2765885 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`=29524171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523964, 0.04929941874328893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, '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 = 29524599 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': 4244029, 'mtr_portfolio_id': 29524599, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 32), 'result': '0.03584565775001134', 'result_long': None, 'result_double': None}] Qualite : 0.03584565775001134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524599 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_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}" where mtr_portfolio_id = 29524599 and dashboard_run_id = 2765885 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`=29524599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523965, 0.03584565775001134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, '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 = 29525105 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': 4244030, 'mtr_portfolio_id': 29525105, 'created_at': datetime.datetime(2025, 12, 18, 6, 15), 'result': '0.052551474443826615', 'result_long': None, 'result_double': None}] Qualite : 0.052551474443826615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525105 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_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}" where mtr_portfolio_id = 29525105 and dashboard_run_id = 2765885 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`=29525105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523966, 0.052551474443826615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, '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 = 29525978 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': 4244031, 'mtr_portfolio_id': 29525978, 'created_at': datetime.datetime(2025, 12, 18, 6, 15, 31), 'result': '0.07086307058103226', 'result_long': None, 'result_double': None}] Qualite : 0.07086307058103226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525978 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_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}" where mtr_portfolio_id = 29525978 and dashboard_run_id = 2765885 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`=29525978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523967, 0.07086307058103226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, '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 = 29526227 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': 4244032, 'mtr_portfolio_id': 29526227, 'created_at': datetime.datetime(2025, 12, 18, 5, 40, 38), 'result': '0.05295123788686618', 'result_long': None, 'result_double': None}] Qualite : 0.05295123788686618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526227 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_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}" where mtr_portfolio_id = 29526227 and dashboard_run_id = 2765885 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`=29526227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523968, 0.05295123788686618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, '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 = 29526571 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': 4243940, 'mtr_portfolio_id': 29526571, 'created_at': datetime.datetime(2025, 12, 18, 5, 47, 2), 'result': '0.062067327390015706', 'result_long': None, 'result_double': None}] Qualite : 0.062067327390015706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526571 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_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}" where mtr_portfolio_id = 29526571 and dashboard_run_id = 2765885 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`=29526571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523969, 0.062067327390015706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, '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 = 29526944 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': 4244144, 'mtr_portfolio_id': 29526944, 'created_at': datetime.datetime(2025, 12, 18, 6, 3, 33), 'result': '0.04189129800959036', 'result_long': None, 'result_double': None}] Qualite : 0.04189129800959036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526944 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_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}" where mtr_portfolio_id = 29526944 and dashboard_run_id = 2765885 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`=29526944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523970, 0.04189129800959036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, '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 = 29527309 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': 4244213, 'mtr_portfolio_id': 29527309, 'created_at': datetime.datetime(2025, 12, 18, 6, 17), 'result': '0.061390788419819', 'result_long': None, 'result_double': None}] Qualite : 0.061390788419819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527309 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_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}" where mtr_portfolio_id = 29527309 and dashboard_run_id = 2765885 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`=29527309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523971, 0.061390788419819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, '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 = 29527635 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': 4244258, 'mtr_portfolio_id': 29527635, 'created_at': datetime.datetime(2025, 12, 18, 6, 33, 2), 'result': '0.03759320880475477', 'result_long': None, 'result_double': None}] Qualite : 0.03759320880475477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527635 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_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}" where mtr_portfolio_id = 29527635 and dashboard_run_id = 2765885 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`=29527635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523972, 0.03759320880475477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, '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 = 29528012 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': 4244312, 'mtr_portfolio_id': 29528012, 'created_at': datetime.datetime(2025, 12, 18, 8, 16, 1), 'result': '0.03786383384521478', 'result_long': None, 'result_double': None}] Qualite : 0.03786383384521478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528012 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_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}" where mtr_portfolio_id = 29528012 and dashboard_run_id = 2765885 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`=29528012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523973, 0.03786383384521478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, '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 = 29528449 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': 4244382, 'mtr_portfolio_id': 29528449, 'created_at': datetime.datetime(2025, 12, 18, 7, 2, 58), 'result': '0.054285139060117615', 'result_long': None, 'result_double': None}] Qualite : 0.054285139060117615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528449 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_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}" where mtr_portfolio_id = 29528449 and dashboard_run_id = 2765885 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`=29528449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523974, 0.054285139060117615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, '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 = 29528882 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': 4244448, 'mtr_portfolio_id': 29528882, 'created_at': datetime.datetime(2025, 12, 18, 7, 18, 59), 'result': '0.03658198401281332', 'result_long': None, 'result_double': None}] Qualite : 0.03658198401281332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528882 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_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}" where mtr_portfolio_id = 29528882 and dashboard_run_id = 2765885 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`=29528882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523975, 0.03658198401281332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, '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 = 29529672 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': 4244524, 'mtr_portfolio_id': 29529672, 'created_at': datetime.datetime(2025, 12, 18, 7, 32, 59), 'result': '0.05840643824752703', 'result_long': None, 'result_double': None}] Qualite : 0.05840643824752703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29529672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29529672 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_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}" where mtr_portfolio_id = 29529672 and dashboard_run_id = 2765885 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`=29529672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523976, 0.05840643824752703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, '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 = 29530097 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': 4244580, 'mtr_portfolio_id': 29530097, 'created_at': datetime.datetime(2025, 12, 18, 7, 49, 1), 'result': '0.05377956909572141', 'result_long': None, 'result_double': None}] Qualite : 0.05377956909572141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530097 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_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}" where mtr_portfolio_id = 29530097 and dashboard_run_id = 2765885 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`=29530097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523977, 0.05377956909572141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, '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 = 29530582 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': 4244649, 'mtr_portfolio_id': 29530582, 'created_at': datetime.datetime(2025, 12, 18, 8, 2, 59), 'result': '0.03928558192464546', 'result_long': None, 'result_double': None}] Qualite : 0.03928558192464546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530582 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_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}" where mtr_portfolio_id = 29530582 and dashboard_run_id = 2765885 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`=29530582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523978, 0.03928558192464546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, '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 = 29531020 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': 4244712, 'mtr_portfolio_id': 29531020, 'created_at': datetime.datetime(2025, 12, 18, 8, 18, 59), 'result': '0.04236134745840149', 'result_long': None, 'result_double': None}] Qualite : 0.04236134745840149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531020 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_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}" where mtr_portfolio_id = 29531020 and dashboard_run_id = 2765885 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`=29531020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523979, 0.04236134745840149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, '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 = 29531694 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': 4244802, 'mtr_portfolio_id': 29531694, 'created_at': datetime.datetime(2025, 12, 18, 8, 33), 'result': '0.08133664011743781', 'result_long': None, 'result_double': None}] Qualite : 0.08133664011743781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531694 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_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}" where mtr_portfolio_id = 29531694 and dashboard_run_id = 2765885 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`=29531694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523980, 0.08133664011743781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, '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 = 29532246 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': 4244870, 'mtr_portfolio_id': 29532246, 'created_at': datetime.datetime(2025, 12, 18, 8, 46, 57), 'result': '0.05542506373220876', 'result_long': None, 'result_double': None}] Qualite : 0.05542506373220876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532246 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_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}" where mtr_portfolio_id = 29532246 and dashboard_run_id = 2765885 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`=29532246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523981, 0.05542506373220876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, '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 = 29532732 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': 4244936, 'mtr_portfolio_id': 29532732, 'created_at': datetime.datetime(2025, 12, 18, 9, 2, 59), 'result': '0.047884727407653836', 'result_long': None, 'result_double': None}] Qualite : 0.047884727407653836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532732 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_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}" where mtr_portfolio_id = 29532732 and dashboard_run_id = 2765885 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`=29532732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523982, 0.047884727407653836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, '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 = 29534702 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': 4245160, 'mtr_portfolio_id': 29534702, 'created_at': datetime.datetime(2025, 12, 18, 9, 49, 1), 'result': '0.06325621807706587', 'result_long': None, 'result_double': None}] Qualite : 0.06325621807706587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29534702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29534702 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_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}" where mtr_portfolio_id = 29534702 and dashboard_run_id = 2765885 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`=29534702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523983, 0.06325621807706587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, '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 = 29535436 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': 4245218, 'mtr_portfolio_id': 29535436, 'created_at': datetime.datetime(2025, 12, 18, 10, 3), 'result': '0.042799872508664114', 'result_long': None, 'result_double': None}] Qualite : 0.042799872508664114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29535436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29535436 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_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}" where mtr_portfolio_id = 29535436 and dashboard_run_id = 2765885 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`=29535436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523984, 0.042799872508664114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, '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 = 29536076 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': 4245297, 'mtr_portfolio_id': 29536076, 'created_at': datetime.datetime(2025, 12, 18, 10, 19), 'result': '0.05470350695505103', 'result_long': None, 'result_double': None}] Qualite : 0.05470350695505103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536076 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_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}" where mtr_portfolio_id = 29536076 and dashboard_run_id = 2765885 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`=29536076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523985, 0.05470350695505103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, '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 = 29536806 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': 4245371, 'mtr_portfolio_id': 29536806, 'created_at': datetime.datetime(2025, 12, 18, 10, 32, 58), 'result': '0.04716405841383832', 'result_long': None, 'result_double': None}] Qualite : 0.04716405841383832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536806 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_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}" where mtr_portfolio_id = 29536806 and dashboard_run_id = 2765885 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`=29536806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523986, 0.04716405841383832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, '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 = 29537598 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': 4245451, 'mtr_portfolio_id': 29537598, 'created_at': datetime.datetime(2025, 12, 18, 10, 48, 56), 'result': '0.04849076799267783', 'result_long': None, 'result_double': None}] Qualite : 0.04849076799267783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29537598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29537598 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_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}" where mtr_portfolio_id = 29537598 and dashboard_run_id = 2765885 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`=29537598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523987, 0.04849076799267783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, '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 = 29538418 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': 4245550, 'mtr_portfolio_id': 29538418, 'created_at': datetime.datetime(2025, 12, 18, 11, 3), 'result': '0.06064088875154784', 'result_long': None, 'result_double': None}] Qualite : 0.06064088875154784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29538418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29538418 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_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}" where mtr_portfolio_id = 29538418 and dashboard_run_id = 2765885 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`=29538418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523988, 0.06064088875154784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, '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 = 29539090 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': 4245620, 'mtr_portfolio_id': 29539090, 'created_at': datetime.datetime(2025, 12, 18, 11, 18, 59), 'result': '0.03947901485097099', 'result_long': None, 'result_double': None}] Qualite : 0.03947901485097099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29539090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29539090 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_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}" where mtr_portfolio_id = 29539090 and dashboard_run_id = 2765885 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`=29539090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523989, 0.03947901485097099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, '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 = 29540060 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': 4245688, 'mtr_portfolio_id': 29540060, 'created_at': datetime.datetime(2025, 12, 18, 11, 33), 'result': '0.043750455768051665', 'result_long': None, 'result_double': None}] Qualite : 0.043750455768051665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29540060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29540060 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_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, 'pht': 3726}}" where mtr_portfolio_id = 29540060 and dashboard_run_id = 2765885 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`=29540060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523990, 0.043750455768051665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, '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 = 29540604 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': 4245777, 'mtr_portfolio_id': 29540604, 'created_at': datetime.datetime(2025, 12, 18, 11, 48, 58), 'result': '0.07513198831648656', 'result_long': None, 'result_double': None}] Qualite : 0.07513198831648656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29540604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29540604 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_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, 'pht': 3726}}" where mtr_portfolio_id = 29540604 and dashboard_run_id = 2765885 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`=29540604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523991, 0.07513198831648656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, '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 = 29541128 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': 4245850, 'mtr_portfolio_id': 29541128, 'created_at': datetime.datetime(2025, 12, 18, 12, 2, 59), 'result': '0.042059493124240004', 'result_long': None, 'result_double': None}] Qualite : 0.042059493124240004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29541128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29541128 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_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, 'pht': 3726}}" where mtr_portfolio_id = 29541128 and dashboard_run_id = 2765885 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`=29541128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523992, 0.042059493124240004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, '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 = 29541476 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': 4245914, 'mtr_portfolio_id': 29541476, 'created_at': datetime.datetime(2025, 12, 18, 12, 33), 'result': '0.043502423146565265', 'result_long': None, 'result_double': None}] Qualite : 0.043502423146565265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29541476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29541476 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_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, 'pht': 3726}}" where mtr_portfolio_id = 29541476 and dashboard_run_id = 2765885 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`=29541476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523993, 0.043502423146565265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, '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 = 29542319 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': 4246020, 'mtr_portfolio_id': 29542319, 'created_at': datetime.datetime(2025, 12, 18, 14, 0, 58), 'result': '0.05136734799353996', 'result_long': None, 'result_double': None}] Qualite : 0.05136734799353996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29542319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29542319 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_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, 'pht': 3726}}" where mtr_portfolio_id = 29542319 and dashboard_run_id = 2765885 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`=29542319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523994, 0.05136734799353996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, '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 = 29543553 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': 4246180, 'mtr_portfolio_id': 29543553, 'created_at': datetime.datetime(2025, 12, 18, 13, 46, 59), 'result': '0.047113267037903', 'result_long': None, 'result_double': None}] Qualite : 0.047113267037903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29543553 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29543553 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_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, 'pht': 3726}}" where mtr_portfolio_id = 29543553 and dashboard_run_id = 2765885 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`=29543553 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523995, 0.047113267037903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, '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 = 29543827 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': 4246194, 'mtr_portfolio_id': 29543827, 'created_at': datetime.datetime(2025, 12, 18, 14, 2, 59), 'result': '0.050112884805389786', 'result_long': None, 'result_double': None}] Qualite : 0.050112884805389786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29543827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29543827 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_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, 'pht': 3726}}" where mtr_portfolio_id = 29543827 and dashboard_run_id = 2765885 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`=29543827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523996, 0.050112884805389786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, '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 = 29544201 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': 4246264, 'mtr_portfolio_id': 29544201, 'created_at': datetime.datetime(2025, 12, 18, 14, 19, 29), 'result': '0.05239283104800608', 'result_long': None, 'result_double': None}] Qualite : 0.05239283104800608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29544201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29544201 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_P29544201_18-12-2025_14_19_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, 'pht': 3726}}" where mtr_portfolio_id = 29544201 and dashboard_run_id = 2765885 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`=29544201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523997, 0.05239283104800608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_19_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, '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 = 29544927 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': 4246352, 'mtr_portfolio_id': 29544927, 'created_at': datetime.datetime(2025, 12, 18, 14, 32, 59), 'result': '0.0587115220298215', 'result_long': None, 'result_double': None}] Qualite : 0.0587115220298215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29544927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544927_18-12-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29544927 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_P29544927_18-12-2025_14_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544942, 'pht': 3726}}" where mtr_portfolio_id = 29544927 and dashboard_run_id = 2765887 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`=29544927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523998, 0.0587115220298215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544927_18-12-2025_14_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544942, '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 = 29545385 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': 4246422, 'mtr_portfolio_id': 29545385, 'created_at': datetime.datetime(2025, 12, 18, 14, 46, 59), 'result': '0.04955462792337958', 'result_long': None, 'result_double': None}] Qualite : 0.04955462792337958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29545385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29545385_18-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29545385 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_P29545385_18-12-2025_14_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29545420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29545421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29545422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29545423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29545424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29545425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29545426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29545427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29545428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29545429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29545430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29545431, 'pht': 3726}}" where mtr_portfolio_id = 29545385 and dashboard_run_id = 2765887 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`=29545385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18523999, 0.04955462792337958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29545385_18-12-2025_14_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29545420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29545421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29545422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29545423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29545424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29545425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29545426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29545427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29545428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29545429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29545430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29545431, '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 = 29546011 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': 4246498, 'mtr_portfolio_id': 29546011, 'created_at': datetime.datetime(2025, 12, 18, 15, 2, 58), 'result': '0.059863441031454405', 'result_long': None, 'result_double': None}] Qualite : 0.059863441031454405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29546011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546011_18-12-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29546011 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_P29546011_18-12-2025_15_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546047, 'pht': 3726}}" where mtr_portfolio_id = 29546011 and dashboard_run_id = 2765887 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`=29546011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18524000, 0.059863441031454405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546011_18-12-2025_15_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546047, '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 = 29546661 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': 4246579, 'mtr_portfolio_id': 29546661, 'created_at': datetime.datetime(2025, 12, 18, 15, 14, 59), 'result': '0.03067975972526448', 'result_long': None, 'result_double': None}] Qualite : 0.03067975972526448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29546661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546661_18-12-2025_15_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29546661 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_P29546661_18-12-2025_15_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546727, 'pht': 3726}}" where mtr_portfolio_id = 29546661 and dashboard_run_id = 2765887 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`=29546661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18524001, 0.03067975972526448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546661_18-12-2025_15_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546727, '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 (29518047,29518739,29519140,29519795,29520859,29521041,29521390,29521664,29522214,29522701,29523037,29523671,29524171,29524599,29525105,29525978,29526227,29526571,29526944,29527309,29527635,29528012,29528449,29528882,29529672,29530097,29530582,29531020,29531694,29532246,29532732,29534702,29535436,29536076,29536806,29537598,29538418,29539090,29540060,29540604,29541128,29541476,29542319,29543553,29543827,29544201,29544927,29545385,29546011,29546661) result : ((1399862066,), (1399862100,), (1399862137,), (1399862172,), (1399862203,), (1399862461,), (1399862509,), (1399862581,), (1399862647,), (1399862712,), (1399862777,), (1399863346,), (1399863401,), (1399864109,), (1399864190,), (1399864229,), (1399864263,), (1399864298,), (1399864481,), (1399864513,), (1399864546,), (1399864578,), (1399864601,), (1399864602,), (1399864716,), (1399865151,), (1399865152,), (1399865985,), (1399866386,), (1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,), (1399868446,), (1399868482,), (1399868516,), (1399868548,), (1399868583,), (1399868743,), (1399868778,), (1399868811,), (1399868848,), (1399868884,), (1399869019,), (1399869020,), (1399869021,), (1399869022,), (1399869025,), (1399869289,), (1399869297,), (1399869301,), (1399869302,), (1399869305,), (1399869339,), (1399869426,), (1399869430,), (1399869432,), (1399869436,), (1399869444,), (1399869449,), (1399869455,), (1399869459,), (1399869460,), (1399869461,), (1399869463,), (1399869466,), (1399869469,), (1399869472,), (1399869476,), (1399869483,), (1399869484,), (1399869485,), (1399869486,), (1399869499,), (1399869536,), (1399869858,), (1399869895,), (1399869931,), (1399869967,), (1399870008,), (1399870248,), (1399870272,), (1399870305,), (1399870343,), (1399870357,), (1399870360,), (1399870405,), (1399870432,), (1399870443,), (1399870444,), (1399870445,), (1399870446,), (1399870449,), (1399870462,), (1399870464,), (1399870466,), (1399870470,), (1399870483,), (1399870484,), (1399870485,), (1399870486,), (1399870489,), (1399870492,), (1399870495,), (1399870498,), (1399870500,), (1399870501,), (1399870502,), (1399870505,), (1399870507,), (1399870509,), (1399870534,), (1399870542,), (1399870544,), (1399870545,), (1399870548,), (1399870551,), (1399870559,), (1399870561,), (1399870562,), (1399870605,), (1399870767,), (1399870584,), (1399870586,), (1399870589,), (1399870591,), (1399870594,), (1399870595,), (1399870598,), (1399870600,), (1399870602,), (1399870603,), (1399870619,), (1399870625,), (1399870629,), (1399870632,), (1399870635,), (1399870636,), (1399870640,), (1399870643,), (1399870646,), (1399870649,), (1399870651,), (1399870652,), (1399870665,), (1399870668,), (1399870672,), (1399870675,), (1399870677,), (1399870680,), (1399870684,), (1399870687,), (1399870690,), (1399870692,), (1399870694,), (1399870697,), (1399870702,), (1399870704,), (1399870705,), (1399870707,), (1399870709,), (1399870711,), (1399870722,), (1399870726,), (1399870727,), (1399870728,), (1399870729,), (1399870730,), (1399870756,), (1399870758,), (1399870760,), (1399870762,), (1399870765,), (1399870773,), (1399870774,), (1399870777,), (1399870780,), (1399870783,), (1399870788,), (1399870909,), (1399870943,), (1399870976,), (1399871010,), (1399871042,), (1399871379,), (1399871415,), (1399871445,), (1399871477,), (1399871509,), (1399871543,), (1399871858,), (1399871872,), (1399871873,), (1399871874,), (1399871876,), (1399871878,), (1399871987,), (1399872024,), (1399872056,), (1399872114,), (1399872322,), (1399872323,), (1399872326,), (1399872329,), (1399872332,), (1399872353,), (1399872355,), (1399872358,), (1399872362,), (1399872363,), (1399872365,), (1399872370,), (1399872371,), (1399872374,), (1399872377,), (1399872380,), (1399872383,), (1399872400,), (1399872407,), (1399872412,), (1399872413,), (1399872414,), (1399872415,), (1399872461,), (1399872464,), (1399876930,), (1399876926,), (1399876928,), (1399876948,), (1399876950,), (1399876952,), (1399876954,), (1399876957,), (1399876970,), (1399876971,), (1399876972,), (1399876976,), (1399876980,), (1399876982,), (1399876989,), (1399876991,), (1399877005,), (1399877033,), (1399877034,), (1399877049,), (1399877051,), (1399877070,), (1399877071,), (1399877072,), (1399877073,), (1399877076,), (1399877085,), (1399877088,), (1399877090,), (1399877094,), (1399877101,), (1399877117,), (1399877112,), (1399877113,), (1399877114,), (1399877146,), (1399877147,), (1399877148,), (1399877161,), (1399877162,), (1399877163,), (1399877164,), (1399877167,), (1399877170,), (1399877181,), (1399877182,), (1399877183,), (1399877184,), (1399877193,), (1399877195,), (1399877197,), (1399877217,), (1399877219,), (1399877221,), (1399877225,), (1399877229,), (1399877236,), (1399877237,), (1399877238,), (1399877239,), (1399877241,), (1399877242,), (1399877271,), (1399877272,), (1399877273,), (1399877274,), (1399877277,), (1399877287,), (1399877288,), (1399877289,), (1399877290,), (1399877316,), (1399877317,), (1399877318,), (1399877319,), (1399877325,), (1399877327,), (1399877329,), (1399877333,), (1399877337,), (1399877348,), (1399877349,), (1399877350,), (1399877376,), (1399877378,), (1399877382,), (1399877385,), (1399877387,), (1399877389,), (1399877393,), (1399877396,), (1399877400,), (1399877403,), (1399877405,), (1399877418,), (1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,), (1399881612,), (1399881613,), (1399881615,), (1399881616,), (1399881619,), (1399881623,), (1399881640,), (1399881636,), (1399881638,), (1399882198,), (1399882208,), (1399882210,), (1399882214,), (1399882218,), (1399882238,), (1399882240,), (1399882242,), (1399882246,), (1399882249,), (1399882261,), (1399882263,), (1399882267,), (1399882271,), (1399882275,), (1399882281,), (1399882290,), (1399882292,), (1399882294,), (1399882297,), (1399882300,), (1399882303,), (1399882307,), (1399882314,), (1399882315,), (1399882316,), (1399882385,), (1399882391,), (1399882399,), (1399882408,), (1399882424,), (1399882425,), (1399882426,), (1399882427,), (1399882430,), (1399882447,), (1399882448,), (1399882449,), (1399882461,), (1399882462,), (1399882463,), (1399882484,), (1399882485,), (1399882486,), (1399882487,), (1399882488,), (1399882500,), (1399882501,), (1399882502,), (1399882503,), (1399882506,), (1399882521,), (1399882522,), (1399882523,), (1399882524,), (1399882538,), (1399882539,), (1399882540,), (1399882543,), (1399882546,), (1399882553,), (1399882555,), (1399882556,), (1399882557,), (1399882558,), (1399882560,), (1399882561,), (1399882564,), (1399882568,), (1399882583,), (1399882632,), (1399882577,), (1399882578,), (1399882579,), (1399882580,), (1399882610,), (1399882611,), (1399882612,), (1399882615,), (1399882617,), (1399882619,), (1399882624,), (1399882626,), (1399882628,), (1399882630,), (1399882634,), (1399882637,), (1399882640,), (1399882653,), (1399882654,), (1399882655,), (1399882656,), (1399882659,), (1399882662,), (1399882668,), (1399882669,), (1399882670,), (1399882671,), (1399882674,), (1399882695,), (1399882696,), (1399882697,), (1399882722,), (1399882728,), (1399882729,), (1399882730,), (1399882733,), (1399882745,), (1399882746,), (1399882747,), (1399882761,), (1399882773,), (1399882794,), (1399882795,), (1399882796,), (1399882799,), (1399882802,), (1399882805,), (1399882815,), (1399882816,), (1399882820,), (1399882827,), (1399882828,), (1399882829,), (1399882832,), (1399882835,), (1399882858,), (1399882860,), (1399882864,), (1399882868,), (1399882877,), (1399882882,), (1399882884,), (1399882885,), (1399882886,), (1399882887,), (1399882892,), (1399882893,), (1399882896,), (1399882897,), (1399882899,), (1399882900,), (1399882903,), (1399882904,), (1399882907,), (1399882908,), (1399882919,), (1399882920,), (1399882921,), (1399882922,), (1399882947,), (1399882954,), (1399882955,), (1399882967,), (1399882968,), (1399882969,), (1399882970,), (1399882974,), (1399882975,), (1399883005,), (1399882995,), (1399883000,), (1399883001,), (1399883002,), (1399883013,), (1399883014,), (1399883015,), (1399883033,), (1399883034,), (1399883040,), (1399883049,), (1399883051,), (1399883068,), (1399883069,), (1399883070,), (1399883073,), (1399883076,), (1399883077,), (1399883095,), (1399883103,), (1399883104,), (1399883105,), (1399883108,), (1399883109,), (1399883112,), (1399883115,), (1399883124,), (1399883126,), (1399883128,), (1399883132,), (1399883136,), (1399883143,), (1399883159,), (1399883160,), (1399883161,), (1399883162,), (1399883165,), (1399883168,), (1399883174,), (1399883175,), (1399883204,), (1399883205,), (1399883206,), (1399883207,), (1399883209,), (1399883231,), (1399883233,), (1399883235,), (1399883237,), (1399883240,), (1399883263,), (1399883264,), (1399883265,), (1399883276,), (1399883277,), (1399883278,), (1399883302,), (1399883303,), (1399883304,), (1399883305,), (1399883308,), (1399883311,), (1399883614,), (1399883652,), (1399883731,), (1399883802,), (1399883851,), (1399883889,), (1399884027,), (1399884062,), (1399884097,), (1399884155,), (1399884230,), (1399884302,), (1399884656,), (1399884509,), (1399884572,), (1399884613,), (1399884705,), (1399884736,), (1399884768,), (1399885423,), (1399885488,), (1399885535,), (1399885566,), (1399885611,), (1399885656,), (1399886533,), (1399886535,), (1399886536,), (1399886917,), (1399886918,), (1399886919,), (1399886920,), (1399886923,), (1399886951,), (1399886952,), (1399886953,), (1399886954,), (1399886957,), (1399886960,), (1399886975,), (1399886977,), (1399886978,), (1399886979,), (1399887000,), (1399887001,), (1399887002,), (1399887015,), (1399887016,), (1399887017,), (1399887018,), (1399887021,), (1399887046,), (1399887047,), (1399887048,), (1399887049,), (1399887052,), (1399887067,), (1399887069,), (1399887092,), (1399887094,), (1399887096,), (1399887100,), (1399887104,), (1399887118,), (1399887119,), (1399887120,), (1399887121,), (1399887144,), (1399887149,), (1399887150,), (1399887151,), (1399887154,), (1399887157,), (1399887178,), (1399887179,), (1399887181,), (1399887214,), (1399887205,), (1399887207,), (1399887209,), (1399887211,), (1399887226,), (1399887227,), (1399887228,), (1399887229,), (1399887245,), (1399887249,), (1399887251,), (1399887253,), (1399887255,), (1399887257,), (1399887269,), (1399887272,), (1399887275,), (1399887280,), (1399887283,), (1399887287,), (1399887302,), (1399887304,), (1399887305,), (1399887307,), (1399887310,), (1399887326,), (1399887362,), (1399887364,), (1399887365,), (1399887366,), (1399887369,), (1399887380,), (1399887382,), (1399887386,), (1399887388,), (1399887410,), (1399887411,), (1399887412,), (1399887413,), (1399887428,), (1399887431,), (1399887434,), (1399887438,), (1399887463,), (1399887470,), (1399887484,), (1399887490,), (1399887491,), (1399887494,), (1399887496,), (1399887523,), (1399887524,), (1399887525,), (1399887526,), (1399887528,), (1399887531,), (1399887548,), (1399887550,), (1399887552,), (1399887555,), (1399887558,), (1399887560,), (1399887568,), (1399887569,), (1399887571,), (1399887573,), (1399887575,), (1399887577,), (1399887585,), (1399887586,), (1399887590,), (1399887591,), (1399887594,), (1399887595,), (1399887610,), (1399887604,), (1399887605,), (1399887606,), (1399887607,), (1399887622,), (1399887624,), (1399887626,), (1399887628,), (1399887631,), (1399887634,), (1399887643,), (1399887644,), (1399887645,), (1399887648,), (1399887653,), (1399887656,), (1399887663,), (1399887670,), (1399887672,), (1399887674,), (1399887676,), (1399887679,), (1399887692,), (1399887693,), (1399887694,), (1399887695,), (1399887717,), (1399887719,), (1399887721,), (1399887723,), (1399887738,), (1399887739,), (1399887740,), (1399887741,), (1399887774,), (1399887782,), (1399887784,), (1399887786,), (1399887808,), (1399887809,), (1399887810,), (1399887813,), (1399887816,), (1399887821,), (1399887827,), (1399887829,), (1399887831,), (1399887839,), (1399887840,), (1399887841,), (1399887844,), (1399887856,), (1399887858,), (1399887860,), (1399887862,), (1399887910,), (1399887913,), (1399887914,), (1399887929,), (1399887930,), (1399887933,), (1399887935,), (1399887937,), (1399887940,), (1399887966,), (1399887967,), (1399887968,), (1399887969,), (1399887972,), (1399887988,), (1399887990,), (1399887993,), (1399887995,), (1399887997,), (1399887998,), (1399888026,), (1399888024,), (1399888025,), (1399888040,), (1399888042,), (1399888044,), (1399888046,), (1399888067,), (1399888068,), (1399888069,), (1399888083,), (1399888085,), (1399888087,), (1399888089,), (1399888092,), (1399888116,), (1399888117,), (1399888118,), (1399888121,), (1399888124,), (1399888126,), (1399888133,), (1399888135,), (1399888136,), (1399888149,), (1399888166,), (1399888168,), (1399888170,), (1399888186,), (1399888187,), (1399888188,), (1399888189,), (1399888220,), (1399888221,), (1399888223,), (1399888225,), (1399888238,), (1399888239,), (1399888240,), (1399888241,), (1399888242,), (1399888270,), (1399888272,), (1399888337,), (1399888338,), (1399888355,), (1399888357,), (1399888360,), (1399888392,), (1399888386,), (1399888388,), (1399888390,), (1399888418,), (1399888420,), (1399888422,), (1399888516,), (1399888548,), (1399888579,), (1399888612,), (1399889047,), (1399889080,), (1399889113,), (1399889148,), (1399889187,), (1399889219,), (1399889331,), (1399889368,), (1399889409,), (1399889443,), (1399889445,), (1399889447,), (1399889450,), (1399889452,), (1399889456,), (1399889482,), (1399889515,), (1399889550,), (1399889582,), (1399889807,), (1399889840,), (1399889872,), (1399889896,), (1399890035,), (1399890037,), (1399890064,), (1399890066,), (1399890068,), (1399890072,), (1399890088,), (1399890093,), (1399890103,), (1399890106,), (1399890124,), (1399890125,), (1399890126,), (1399890147,), (1399890165,), (1399892241,), (1399892237,), (1399894026,), (1399894063,), (1399894513,), (1399894514,), (1399894516,), (1399894518,), (1399894521,), (1399894524,), (1399894649,), (1399894683,), (1399894713,), (1399894743,), (1399894758,), (1399894851,), (1399894853,), (1399894854,), (1399894856,), (1399894858,), (1399894860,), (1399894868,), (1399894870,), (1399894872,), (1399894874,), (1399894879,), (1399894883,), (1399894887,), (1399894893,), (1399894898,), (1399894904,), (1399894906,), (1399894908,), (1399894909,), (1399894911,), (1399894925,), (1399894926,), (1399894927,), (1399894928,), (1399894959,), (1399894960,), (1399894961,), (1399894962,), (1399894965,), (1399894968,), (1399894978,), (1399894980,), (1399894982,), (1399895012,), (1399895004,), (1399895005,), (1399895006,), (1399895007,), (1399895010,), (1399895021,), (1399895022,), (1399895023,), (1399895047,), (1399895056,), (1399895058,), (1399895059,), (1399895062,), (1399895079,), (1399895081,), (1399895082,), (1399895083,), (1399895085,), (1399895087,), (1399895121,), (1399895122,), (1399895123,), (1399895126,), (1399895129,), (1399895132,), (1399895139,), (1399895141,), (1399895143,), (1399895145,), (1399895149,), (1399895152,), (1399895154,), (1399895157,), (1399895173,), (1399895202,), (1399895208,), (1399895211,), (1399895217,), (1399895222,), (1399895290,), (1399895293,), (1399895296,), (1399895299,), (1399895304,), (1399895319,), (1399895320,), (1399895321,), (1399895322,), (1399895324,), (1399895351,), (1399895353,), (1399895354,), (1399895357,), (1399895360,), (1399895371,), (1399895372,), (1399895373,), (1399895374,), (1399895377,), (1399895392,), (1399895393,), (1399895394,), (1399895395,), (1399895399,), (1399895410,), (1399895412,), (1399895414,), (1399895418,), (1399895422,), (1399895426,), (1399895449,), (1399895453,), (1399895457,), (1399895460,), (1399895462,), (1399895464,), (1399895477,), (1399895512,), (1399895513,), (1399895514,), (1399895515,), (1399895465,), (1399895466,), (1399895468,), (1399895473,), (1399895475,), (1399895522,), (1399895525,), (1399895528,), (1399895532,), (1399895534,), (1399895537,), (1399895538,), (1399895539,), (1399895540,), (1399895543,), (1399895564,), (1399895565,), (1399895566,), (1399895567,), (1399895569,), (1399895589,), (1399895591,), (1399895592,), (1399895594,), (1399895618,), (1399895620,), (1399895621,), (1399895622,), (1399895625,), (1399895628,), (1399895641,), (1399895642,), (1399895643,), (1399895667,), (1399895669,), (1399895671,), (1399895673,), (1399895676,), (1399895678,), (1399895689,), (1399895690,), (1399895691,), (1399895692,), (1399895717,), (1399895719,), (1399895721,), (1399895724,), (1399895727,), (1399895729,), (1399895735,), (1399895736,), (1399895737,), (1399895739,), (1399895744,), (1399895746,), (1399895748,), (1399895754,), (1399895757,), (1399895771,), (1399895774,), (1399895775,), (1399895796,), (1399895797,), (1399895798,), (1399895799,), (1399895802,), (1399895803,), (1399895831,), (1399895832,), (1399895833,), (1399895834,), (1399895837,), (1399895849,), (1399895850,), (1399895852,), (1399895853,), (1399895856,), (1399895883,), (1399895877,), (1399895878,), (1399895879,), (1399895880,), (1399895893,), (1399895895,), (1399895897,), (1399895901,), (1399895905,), (1399895922,), (1399895924,), (1399895926,), (1399895930,), (1399895934,), (1399895938,), (1399895951,), (1399895952,), (1399895953,), (1399895954,), (1399895957,), (1399895981,), (1399895982,), (1399895983,), (1399895986,), (1399895989,), (1399895990,), (1399895999,), (1399896002,), (1399896004,), (1399896006,), (1399896008,), (1399896055,), (1399896238,), (1399896229,), (1399896232,), (1399896235,), (1399896258,), (1399896260,), (1399896262,), (1399896456,), (1399896489,), (1399896957,), (1399896991,), (1399897024,), (1399897335,), (1399897819,), (1399897864,), (1399897865,), (1399897867,), (1399897868,), (1399897894,), (1399897892,), (1399897893,), (1399897906,), (1399897907,), (1399897925,), (1399897926,), (1399897927,), (1399897928,), (1399897930,), (1399897932,), (1399897950,), (1399897951,), (1399897952,), (1399897953,), (1399897955,), (1399897976,), (1399897978,), (1399897980,), (1399897982,), (1399897984,), (1399897985,), (1399897990,), (1399897993,), (1399897995,), (1399897997,), (1399897999,), (1399898002,), (1399898004,), (1399898009,), (1399898013,), (1399898024,), (1399898025,), (1399898026,), (1399898027,), (1399898043,), (1399898045,), (1399898046,), (1399898047,), (1399898050,), (1399898052,), (1399898075,), (1399898076,), (1399898077,), (1399898078,), (1399898090,), (1399898092,), (1399898094,), (1399898098,), (1399898102,), (1399898116,), (1399898117,), (1399898118,), (1399898119,), (1399898122,), (1399898125,), (1399898135,), (1399898136,), (1399898137,), (1399898138,), (1399898172,), (1399898181,), (1399898183,), (1399898184,), (1399898187,), (1399898189,), (1399898205,), (1399898206,), (1399898207,), (1399898208,), (1399898229,), (1399898231,), (1399898233,), (1399898235,), (1399898238,), (1399898240,), (1399898247,), (1399898249,), (1399898251,), (1399898253,), (1399898263,), (1399898256,), (1399898257,), (1399898260,), (1399898283,), (1399898284,), (1399898285,), (1399898286,), (1399898289,), (1399898304,), (1399898305,), (1399898306,), (1399898307,), (1399898322,), (1399898323,), (1399898324,), (1399898325,), (1399898342,), (1399898344,), (1399898346,), (1399898350,), (1399898354,), (1399898378,), (1399898386,), (1399898387,), (1399898388,), (1399898391,), (1399898405,), (1399898406,), (1399898407,), (1399898434,), (1399898436,), (1399898437,), (1399898438,), (1399898441,), (1399898443,), (1399898460,), (1399898461,), (1399898462,), (1399898463,), (1399898466,), (1399898469,), (1399898485,), (1399898486,), (1399898487,), (1399898490,), (1399898492,), (1399898494,), (1399898503,), (1399898506,), (1399898507,), (1399898508,), (1399898509,), (1399898510,), (1399898513,), (1399898516,), (1399898521,), (1399898534,), (1399898535,), (1399898536,), (1399898537,), (1399898540,), (1399898543,), (1399898561,), (1399898565,), (1399898566,), (1399898567,), (1399898585,), (1399898593,), (1399898601,), (1399898602,), (1399898605,), (1399898607,), (1399898620,), (1399898621,), (1399898622,), (1399898643,), (1399898637,), (1399898638,), (1399898639,), (1399898640,), (1399898654,), (1399898655,), (1399898656,), (1399898657,), (1399898673,), (1399898674,), (1399898675,), (1399898676,), (1399898677,), (1399898680,), (1399898693,), (1399898694,), (1399898695,), (1399898696,), (1399898699,), (1399898722,), (1399898723,), (1399898724,), (1399898726,), (1399898728,), (1399898731,), (1399898740,), (1399898743,), (1399898745,), (1399898751,), (1399898753,), (1399898756,), (1399898758,), (1399898760,), (1399898762,), (1399898783,), (1399898784,), (1399898785,), (1399898786,), (1399898809,), (1399898811,), (1399898813,), (1399898817,), (1399898821,), (1399898823,), (1399898845,), (1399898846,), (1399898847,), (1399898848,), (1399898851,), (1399898871,), (1399898872,), (1399898873,), (1399898874,), (1399898877,), (1399898880,), (1399898904,), (1399898905,), (1399898906,), (1399898907,), (1399898920,), (1399898922,), (1399898923,), (1399898949,), (1399899300,), (1399899302,), (1399899308,), (1399899310,), (1399899313,), (1399899314,), (1399899315,), (1399899660,), (1399899482,), (1399899519,), (1399899553,), (1399899593,), (1399900177,), (1399900218,), (1399900250,), (1399900284,), (1399900342,), (1399900673,), (1399900676,), (1399900677,), (1399900681,), (1399900716,), (1399900961,), (1399900972,), (1399900992,), (1399900997,), (1399901000,), (1399901002,), (1399901192,), (1399901221,), (1399901254,), (1399901285,), (1399901323,), (1399901713,), (1399901737,), (1399901738,), (1399901739,), (1399901742,), (1399901760,), (1399902076,), (1399902271,), (1399902321,), (1399902357,), (1399902768,), (1399902784,), (1399902785,), (1399903389,), (1399903411,), (1399903415,), (1399903416,), (1399903428,), (1399903445,), (1399903475,), (1399903513,), (1399903580,), (1399903622,), (1399903819,), (1399903838,), (1399903860,), (1399903867,), (1399903870,), (1399903880,), (1399903881,), (1399903883,), (1399903884,), (1399903887,), (1399903890,), (1399903925,), (1399903913,), (1399903914,), (1399903915,), (1399903916,), (1399903957,), (1399903958,), (1399903959,), (1399903960,), (1399903963,), (1399903965,), (1399903995,), (1399903996,), (1399903997,), (1399903998,), (1399904001,), (1399904012,), (1399904013,), (1399904014,), (1399904015,), (1399904017,), (1399904019,), (1399904326,), (1399904327,), (1399904331,), (1399904333,), (1399904365,), (1399904404,), (1399904477,), (1399904478,), (1399904482,), (1399904491,), (1399904492,), (1399904494,), (1399904496,), (1399904498,), (1399904504,), (1399904506,), (1399904510,), (1399904529,), (1399904531,), (1399904532,), (1399904534,), (1399904549,), (1399904550,), (1399904551,), (1399904552,), (1399904555,), (1399904560,), (1399904574,), (1399904577,), (1399904578,), (1399904579,), (1399904582,), (1399904608,), (1399904609,), (1399904613,), (1399904620,), (1399904652,), (1399904783,), (1399904784,), (1399904785,), (1399904790,), (1399904800,), (1399904821,), (1399904901,), (1399904912,), (1399904916,), (1399904917,), (1399904919,), (1399904979,), (1399904980,), (1399904981,), (1399904982,), (1399904985,), (1399904988,), (1399905000,), (1399905002,), (1399905004,), (1399905005,), (1399905030,), (1399905032,), (1399905033,), (1399905036,), (1399905039,), (1399905040,), (1399905048,), (1399905049,), (1399905050,), (1399905063,), (1399905051,), (1399905052,), (1399905055,), (1399905060,), (1399905077,), (1399905081,), (1399905082,), (1399905096,), (1399905097,), (1399905098,), (1399905099,), (1399905102,), (1399905105,), (1399905119,), (1399905121,), (1399905129,), (1399905138,), (1399905161,), (1399905163,), (1399905184,), (1399905222,), (1399905268,), (1399905369,), (1399905371,), (1399905372,), (1399905513,), (1399905514,), (1399905515,), (1399905516,), (1399905519,), (1399905547,), (1399905548,), (1399905549,), (1399905550,), (1399905569,), (1399905570,), (1399905601,), (1399905602,), (1399905603,), (1399905605,), (1399905607,), (1399905632,), (1399905633,), (1399905662,), (1399905664,), (1399905666,), (1399905670,), (1399905673,), (1399905684,), (1399905685,), (1399905686,), (1399905689,), (1399905692,), (1399905695,), (1399905703,), (1399905704,), (1399905705,), (1399905706,), (1399905707,), (1399905710,), (1399905712,), (1399905714,), (1399905726,), (1399905728,), (1399905730,), (1399905734,), (1399905753,), (1399905747,), (1399905748,), (1399905749,), (1399905750,), (1399905779,), (1399905780,), (1399905781,), (1399905782,), (1399905785,), (1399905815,), (1399905850,), (1399905852,), (1399905872,), (1399905873,), (1399905874,), (1399905877,), (1399905880,), (1399905889,), (1399905890,), (1399905893,), (1399905896,), (1399905899,), (1399905906,), (1399905915,), (1399905916,), (1399905941,), (1399905944,), (1399905959,), (1399905967,), (1399906017,), (1399906018,), (1399906019,), (1399906020,), (1399906023,), (1399906332,), (1399906582,), (1399906584,), (1399906586,), (1399906715,), (1399906716,), (1399906718,), (1399906734,), (1399906745,), (1399906757,), (1399906768,), (1399906770,), (1399906772,), (1399906777,), (1399906781,), (1399906784,), (1399906804,), (1399906805,), (1399906806,), (1399906807,), (1399906824,), (1399906828,), (1399906830,), (1399906831,), (1399906834,), (1399906836,), (1399906854,), (1399906897,), (1399906939,), (1399906995,), (1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,), (1399909983,), (1399909991,), (1399909993,), (1399909996,), (1399910000,), (1399910004,), (1399910028,), (1399910022,), (1399910023,), (1399910024,), (1399910025,), (1399910046,), (1399910047,), (1399910059,), (1399910060,), (1399910063,), (1399910066,), (1399910412,), (1399910446,), (1399910472,), (1399910474,), (1399910477,), (1399910480,), (1399910555,), (1399910589,), (1399910628,), (1399910815,), (1399910817,), (1399910818,), (1399910820,), (1399910822,), (1399910823,), (1399910831,), (1399910840,), (1399910847,), (1399910906,), (1399910907,), (1399910910,), (1399910922,), (1399910943,), (1399910985,), (1399910993,), (1399910994,), (1399910995,), (1399911007,), (1399911009,), (1399911010,), (1399911011,), (1399911013,), (1399911015,), (1399911036,), (1399911037,), (1399911038,), (1399911053,), (1399911054,), (1399911055,), (1399911056,), (1399911059,), (1399911061,), (1399911084,), (1399911086,), (1399911088,), (1399911090,), (1399911093,), (1399911094,), (1399911110,), (1399911113,), (1399911115,), (1399911143,), (1399911144,), (1399911145,), (1399911146,), (1399911149,), (1399911152,), (1399911164,), (1399911166,), (1399911168,), (1399911170,), (1399911199,), (1399911201,), (1399911202,), (1399911205,), (1399911208,), (1399911210,), (1399911223,), (1399911224,), (1399911227,), (1399911230,), (1399911266,), (1399911249,), (1399911252,), (1399911254,), (1399911256,), (1399911262,), (1399911271,), (1399911273,), (1399911274,), (1399911275,), (1399911285,), (1399911287,), (1399911289,), (1399911291,), (1399911294,), (1399911320,), (1399911322,), (1399911323,), (1399911324,), (1399911326,), (1399911328,), (1399911347,), (1399911348,), (1399911349,), (1399911391,), (1399911394,), (1399911395,), (1399911396,), (1399911399,), (1399911402,), (1399911423,), (1399911425,), (1399911427,), (1399911429,), (1399911484,), (1399911495,), (1399911505,), (1399911507,), (1399911510,), (1399911513,), (1399911535,), (1399911537,), (1399911539,), (1399911543,), (1399911547,), (1399911777,), (1399911780,), (1399911784,), (1399911824,), (1399911827,), (1399911832,), (1399911857,), (1399911867,), (1399911925,), (1399911928,), (1399911948,), (1399911949,), (1399911966,), (1399911968,), (1399911970,), (1399911972,), (1399911975,), (1399911977,), (1399912000,), (1399912003,), (1399912004,), (1399912005,), (1399912020,), (1399912021,), (1399912022,), (1399912024,), (1399912112,), (1399912103,), (1399912105,), (1399912107,), (1399912109,), (1399912135,), (1399912138,), (1399912140,), (1399912238,), (1399912240,), (1399912291,), (1399912292,), (1399912293,), (1399912294,), (1399912296,), (1399912315,), (1399912316,), (1399912317,), (1399912318,), (1399912321,), (1399912347,), (1399912349,), (1399912351,), (1399912353,), (1399912378,), (1399912379,), (1399912380,), (1399912381,), (1399912396,), (1399912397,), (1399912398,), (1399912401,), (1399912404,), (1399912406,), (1399912451,), (1399912487,), (1399912518,), (1399912551,), (1399912617,), (1399912642,), (1399912676,), (1399912685,), (1399912813,), (1399912815,), (1399912817,), (1399912819,), (1399912822,), (1399912825,), (1399912976,), (1399912981,), (1399912984,), (1399912989,), (1399913019,), (1399918101,), (1399918159,), (1399918323,), (1399918359,), (1399918372,), (1399918471,), (1399918472,), (1399918473,), (1399918474,), (1399918477,), (1399918480,), (1399918517,), (1399918519,), (1399918521,), (1399918523,), (1399918526,), (1399918613,), (1399918643,), (1399918656,), (1399918664,), (1399918686,), (1399918750,), (1399918752,), (1399918754,), (1399918756,), (1399918759,), (1399918850,), (1399918933,), (1399918972,), (1399918979,), (1399919004,), (1399919146,), (1399919147,), (1399919148,), (1399919151,), (1399919159,), (1399919166,), (1399919177,), (1399919178,), (1399919181,), (1399919183,), (1399919220,), (1399919221,), (1399919222,), (1399919225,), (1399919228,), (1399919231,), (1399919265,), (1399919270,), (1399919281,), (1399919323,), (1399919488,), (1399919524,), (1399919557,), (1399919591,), (1399919970,), (1399920163,), (1399920196,), (1399920232,), (1399920244,), (1399920246,), (1399920559,), (1399920654,), (1399920729,), (1399920788,), (1399921197,), (1399921235,), (1399921252,), (1399921259,), (1399921262,), (1399921622,), (1399921666,), (1399921751,), (1399921818,), (1399921891,), (1399922160,), (1399922178,), (1399922213,), (1399922391,), (1399922392,), (1399922395,), (1399922149,), (1399922155,), (1399922157,), (1399922643,), (1399922679,), (1399922713,), (1399922748,), (1399922815,), (1399922865,), (1399922977,), (1399922978,), (1399922979,), (1399922980,), (1399923039,), (1399923040,), (1399923041,), (1399923042,), (1399923045,), (1399923048,), (1399923178,), (1399923189,), (1399923190,), (1399923214,), (1399923230,), (1399923237,), (1399923273,), (1399923275,), (1399923277,), (1399923279,), (1399923306,), (1399923449,), (1399923485,), (1399923517,), (1399923556,), (1399923573,), (1399923576,), (1399923579,), (1399923580,), (1399923582,), (1399923584,), (1399923903,), (1399923907,), (1399923908,), (1399923909,), (1399923919,), (1399924310,), (1399924322,), (1399924324,), (1399924326,), (1399924329,), (1399924344,), (1399924492,), (1399924497,), (1399924531,), (1399924569,), (1399924699,), (1399924727,), (1399924777,), (1399924779,), (1399924780,), (1399924781,), (1399924782,), (1399924784,), (1399924786,), (1399924789,), (1399924790,), (1399924794,), (1399924810,), (1399924811,), (1399924812,), (1399924816,), (1399924825,), (1399924828,), (1399924829,), (1399924830,), (1399924831,), (1399925317,), (1399925321,), (1399925341,), (1399925380,), (1399925415,), (1399925454,), (1399925732,), (1399925768,), (1399925801,), (1399926031,), (1399925854,), (1399925934,), (1399926025,), (1399926449,), (1399926450,), (1399926452,), (1399926454,), (1399926458,), (1399926462,), (1399926476,), (1399926479,), (1399926481,), (1399926484,), (1399926951,), (1399927064,), (1399927122,), (1399927155,), (1399927189,), (1399927226,), (1399927665,), (1399927667,), (1399927670,), (1399927707,), (1399927801,), (1399928261,), (1399928285,), (1399928327,), (1399928361,), (1399928373,), (1399928395,), (1399928531,), (1399928532,), (1399928569,), (1399928572,), (1399928607,), (1399928615,), (1399928618,), (1399928620,), (1399928622,), (1399928624,), (1399928635,), (1399928636,), (1399928642,), (1399928643,), (1399928645,), (1399928669,), (1399928671,), (1399928673,), (1399928675,), (1399928678,), (1399928701,), (1399928703,), (1399928705,), (1399928708,), (1399928711,), (1399928714,), (1399928811,), (1399928845,), (1399928877,), (1399928909,), (1399929047,), (1399929078,), (1399929112,), (1399929146,), (1399929175,), (1399929213,), (1399929394,), (1399929427,), (1399929434,), (1399929435,), (1399929439,), (1399929486,), (1399929492,), (1399929525,), (1399929564,), (1399929620,), (1399929892,), (1399929895,), (1399929925,), (1399929945,), (1399929961,), (1399929993,), (1399930349,), (1399930386,), (1399930457,), (1399930587,), (1399931503,), (1399931626,), (1399931639,), (1399931697,), (1399931731,), (1399931360,), (1399931451,), (1399931486,), (1399931499,), (1399931501,), (1399932088,), (1399932122,), (1399932175,), (1399932227,), (1399932881,), (1399933029,), (1399933126,), (1399933187,), (1399933257,), (1399933325,), (1399933736,), (1399933792,), (1399933824,), (1399933856,), (1399934104,), (1399934107,), (1399934148,), (1399934196,), (1399934235,), (1399934299,), (1399934377,), (1399934412,), (1399934421,), (1399934424,), (1399934477,), (1399934479,), (1399934481,), (1399934687,), (1399934688,), (1399934689,), (1399934690,), (1399934693,), (1399934785,), (1399934803,), (1399934805,), (1399934832,), (1399934838,), (1399934898,), (1399934900,), (1399934902,), (1399934904,), (1399934907,), (1399934928,), (1399934929,), (1399934931,), (1399934932,), (1399934936,), (1399934962,), (1399934963,), (1399934964,), (1399934967,), (1399934970,), (1399934973,), (1399935087,), (1399935114,), (1399935117,), (1399935123,), (1399935154,), (1399935312,), (1399935350,), (1399935384,), (1399935418,), (1399935539,), (1399935610,), (1399935646,), (1399935666,), (1399935669,), (1399935672,), (1399935775,), (1399935777,), (1399935779,), (1399935781,), (1399936175,), (1399936180,), (1399936215,), (1399936224,), (1399936227,), (1399936231,), (1399936308,), (1399936309,), (1399936310,), (1399936312,), (1399936409,), (1399936317,), (1399936320,), (1399936322,), (1399936332,), (1399936585,), (1399936588,), (1399936611,), (1399936621,), (1399936700,), (1399936702,), (1399936704,), (1399936706,), (1399936709,), (1399936730,), (1399936731,), (1399936732,), (1399936733,), (1399936759,), (1399936772,), (1399936775,), (1399936778,), (1399936781,), (1399936783,), (1399936803,), (1399936804,), (1399936805,), (1399936808,), (1399936811,), (1399936814,), (1399936835,), (1399936836,), (1399936837,), (1399936845,), (1399936978,), (1399937034,), (1399937036,), (1399937038,), (1399937059,), (1399937113,), (1399937410,), (1399937452,), (1399937488,), (1399937524,), (1399937813,), (1399937815,), (1399937820,), (1399937853,), (1399937887,), (1399938120,), (1399938121,), (1399938122,), (1399938126,), (1399938164,), (1399938198,), (1399938321,), (1399938335,), (1399938336,), (1399938378,), (1399938411,), (1399938648,), (1399938649,), (1399939173,), (1399939287,), (1399939305,), (1399939563,), (1399939653,), (1399939727,), (1399939755,), (1399939759,), (1399939768,), (1399940075,), (1399940107,), (1399940162,), (1399940166,), (1399940440,), (1399940333,), (1399940334,), (1399940335,), (1399940336,), (1399940364,), (1399940539,), (1399940542,), (1399940544,), (1399940584,), (1399940585,), (1399940586,), (1399940588,), (1399940627,), (1399940666,), (1399940924,), (1399940926,), (1399940931,), (1399940933,), (1399941236,), (1399941257,), (1399941285,), (1399941288,), (1399941305,), (1399941323,), (1399941458,), (1399941459,), (1399941460,), (1399941462,), (1399941533,), (1399941608,), (1399941675,), (1399941720,), (1399941752,), (1399941976,), (1399941978,), (1399941980,), (1399942014,), (1399942017,), (1399942027,), (1399942057,), (1399942058,), (1399942059,), (1399942060,), (1399942232,), (1399942239,), (1399942241,), (1399942243,), (1399942246,), (1399942248,), (1399942543,), (1399942576,), (1399942612,), (1399942645,), (1399943017,), (1399943030,), (1399943067,), (1399943111,), (1399943133,), (1399943150,), (1399943272,), (1399943303,), (1399943326,), (1399943328,), (1399943331,), (1399943340,), (1399943378,), (1399943411,), (1399943444,), (1399943510,), (1399943512,), (1399943514,), (1399943516,), (1399943520,), (1399943522,), (1399943712,), (1399943715,), (1399943718,), (1399943744,), (1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,), (1399947613,), (1399947629,), (1399947633,), (1399947656,), (1399947659,), (1399947662,), (1399947693,), (1399947700,), (1399947701,), (1399947702,), (1399947908,), (1399947910,), (1399948014,), (1399948037,), (1399948076,), (1399947889,), (1399947891,), (1399947892,), (1399947898,), (1399948163,), (1399948187,), (1399948210,), (1399948214,), (1399948215,), (1399948218,), (1399948225,), (1399948234,), (1399948239,), (1399948241,), (1399948244,), (1399948258,), (1399948259,), (1399948261,), (1399948263,), (1399948266,), (1399948368,), (1399948401,), (1399948435,), (1399948467,), (1399948493,), (1399948495,), (1399948502,), (1399948504,), (1399948506,), (1399948608,), (1399948644,), (1399948677,), (1399948713,), (1399948752,), (1399948785,), (1399948872,), (1399948874,), (1399948876,), (1399948903,), (1399948910,), (1399948922,), (1399948926,), (1399948981,), (1399948986,), (1399948989,), (1399948991,), (1399949013,), (1399949015,), (1399949049,), (1399949051,), (1399949055,), (1399949057,), (1399949059,), (1399949061,), (1399949069,), (1399949073,), (1399949074,), (1399949075,), (1399949076,), (1399949129,), (1399949131,), (1399949134,), (1399949136,), (1399949139,), (1399949153,), (1399949154,), (1399949155,), (1399949156,), (1399949159,), (1399949162,), (1399949187,), (1399949188,), (1399949190,), (1399949193,), (1399949197,), (1399949198,), (1399949257,), (1399949260,), (1399949264,), (1399949265,), (1399949269,), (1399949270,), (1399949273,), (1399949274,), (1399949276,), (1399949277,), (1399949250,), (1399949251,), (1399949295,), (1399949296,), (1399949297,), (1399949299,), (1399949301,), (1399949320,), (1399949321,), (1399949322,), (1399949323,), (1399949326,), (1399949344,), (1399949346,), (1399949348,), (1399949350,), (1399949371,), (1399949373,), (1399949375,), (1399949379,), (1399949383,), (1399949407,), (1399949410,), (1399949413,), (1399949418,), (1399949432,), (1399949446,), (1399949462,), (1399949463,), (1399949464,), (1399949465,), (1399949485,), (1399949487,), (1399949488,), (1399949490,), (1399949493,), (1399949514,), (1399949515,), (1399949517,), (1399949519,), (1399949522,), (1399949557,), (1399949558,), (1399949559,), (1399949562,), (1399949565,), (1399949567,), (1399949578,), (1399949579,), (1399949581,), (1399949583,), (1399949586,), (1399949587,), (1399949590,), (1399949593,), (1399949596,), (1399949611,), (1399949613,), (1399949615,), (1399949617,), (1399949619,), (1399949622,), (1399949640,), (1399949643,), (1399949644,), (1399949646,), (1399949674,), (1399949675,), (1399949676,), (1399949677,), (1399949680,), (1399949704,), (1399949706,), (1399949724,), (1399949726,), (1399949729,), (1399949776,), (1399949779,), (1399949782,), (1399949791,), (1399949792,), (1399949793,), (1399949771,), (1399949772,), (1399949773,), (1399949799,), (1399949802,), (1399949806,), (1399949809,), (1399949812,), (1399949815,), (1399949851,), (1399949858,), (1399949867,), (1399949868,), (1399949870,), (1399949886,), (1399949887,), (1399949888,), (1399949889,), (1399949892,), (1399949895,), (1399949907,), (1399949909,), (1399949911,), (1399949914,), (1399949917,), (1399949919,), (1399949927,), (1399949928,), (1399949930,), (1399949933,), (1399949942,), (1399949943,), (1399949946,), (1399949949,), (1399949952,), (1399949960,), (1399949973,), (1399949975,), (1399949978,), (1399949981,), (1399949984,), (1399949988,), (1399950003,), (1399950005,), (1399950007,), (1399950045,), (1399950047,), (1399950049,), (1399950051,), (1399950054,), (1399950080,), (1399950081,), (1399950082,), (1399950083,), (1399950111,), (1399950112,), (1399950116,), (1399950127,), (1399950136,), (1399950139,), (1399950148,), (1399950149,), (1399950152,), (1399950153,), (1399950155,), (1399950157,), (1399950160,), (1399950187,), (1399950195,), (1399950206,), (1399950236,), (1399950239,), (1399950242,), (1399950246,), (1399950278,), (1399950269,), (1399950271,), (1399950273,), (1399950275,), (1399950288,), (1399950291,), (1399950294,), (1399950297,), (1399950300,), (1399950302,), (1399950325,), (1399950327,), (1399950329,), (1399950332,), (1399950361,), (1399950364,), (1399950367,), (1399950375,), (1399950379,), (1399950412,), (1399950413,), (1399950415,), (1399950420,), (1399950465,), (1399950466,), (1399950477,), (1399950480,), (1399950521,), (1399950524,), (1399950525,), (1399950526,), (1399950528,), (1399950530,), (1399950589,), (1399950590,), (1399950599,), (1399950656,), (1399950657,), (1399950659,), (1399950661,), (1399950664,), (1399950667,), (1399950704,), (1399950705,), (1399950707,), (1399950710,), (1399950713,), (1399950715,), (1399950740,), (1399950741,), (1399950743,), (1399950745,), (1399950748,), (1399950750,), (1399950763,), (1399950765,), (1399950785,), (1399950923,), (1399950926,), (1399952368,), (1399952399,), (1399952402,), (1399952404,), (1399952420,), (1399952446,), (1399952448,), (1399952450,), (1399952533,), (1399965798,), (1399965921,), (1399965898,), (1399965900,), (1399966049,), (1399966055,), (1399966056,), (1399966302,), (1399966333,), (1399966400,), (1399966402,), (1399966404,), (1399966422,), (1399966425,), (1399966446,), (1399966447,), (1399966449,), (1399966450,), (1399966452,), (1399966454,), (1399966498,), (1399966492,), (1399966494,), (1399966496,), (1399966515,), (1399966516,), (1399966517,), (1399966518,), (1399966545,), (1399966547,), (1399966549,), (1399966551,), (1399966571,), (1399966573,), (1399966575,), (1399966579,), (1399966583,), (1399966609,), (1399966611,), (1399966615,), (1399966619,), (1399966621,), (1399966624,), (1399966633,), (1399966635,), (1399966639,), (1399966643,), (1399966647,), (1399966651,), (1399966655,), (1399966670,), (1399966672,), (1399966674,), (1399966676,), (1399966693,), (1399966694,), (1399966728,), (1399966730,), (1399966732,), (1399966734,), (1399966766,), (1399966768,), (1399966770,), (1399966797,), (1399966798,), (1399966801,), (1399966804,), (1399966806,), (1399966808,), (1399966816,), (1399966824,), (1399966826,), (1399966828,), (1399966829,), (1399966832,), (1399966874,), (1399966877,), (1399966880,), (1399966882,), (1399966884,), (1399966886,), (1399967237,), (1399967275,), (1399967310,), (1399967348,), (1399967386,), (1399967421,), (1399967506,), (1399967512,), (1399967531,), (1399967533,), (1399967866,), (1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,), (1399972019,), (1399972020,), (1399972022,), (1399972023,), (1399972026,), (1399972504,), (1399972506,), (1399972513,), (1399972515,), (1399972517,), (1399972544,), (1399972437,), (1399972454,), (1399972456,), (1399972478,), (1399972650,), (1399972651,), (1399972654,), (1399972657,), (1399972677,), (1399972791,), (1399972793,), (1399972795,), (1399972797,), (1399972800,), (1399972803,), (1399972852,), (1399972854,), (1399972855,), (1399972874,), (1399972876,), (1399972878,), (1399972881,), (1399972884,), (1399972886,), (1399972891,), (1399972892,), (1399972893,), (1399972917,), (1399972920,), (1399972924,), (1399972927,), (1399973017,), (1399973019,), (1399973021,), (1399973030,), (1399973033,), (1399973038,), (1399973070,), (1399973097,), (1399973098,), (1399973104,), (1399973272,), (1399973273,), (1399973274,), (1399973283,), (1399973316,), (1399973320,), (1399973354,), (1399973355,), (1399973357,), (1399973359,), (1399973362,), (1399973387,), (1399973389,), (1399973391,), (1399973394,), (1399973397,), (1399973399,), (1399973404,), (1399973406,), (1399973408,), (1399973410,), (1399973412,), (1399973415,), (1399973418,), (1399973420,), (1399973423,), (1399973425,), (1399973429,), (1399973437,), (1399973444,), (1399973447,), (1399973449,), (1399973452,), (1399973485,), (1399973487,), (1399973491,), (1399973514,), (1399973519,), (1399973557,), (1399973558,), (1399973559,), (1399973563,), (1399973566,), (1399973569,), (1399973579,), (1399973580,), (1399973581,), (1399973582,), (1399973584,), (1399973611,), (1399973590,), (1399973593,), (1399973597,), (1399973599,), (1399973623,), (1399973624,), (1399973625,), (1399973626,), (1399973629,), (1399973645,), (1399973646,), (1399973647,), (1399973648,), (1399973681,), (1399973683,), (1399973698,), (1399973700,), (1399973705,), (1399973715,), (1399973727,), (1399973729,), (1399973731,), (1399973733,), (1399973756,), (1399973758,), (1399973760,), (1399973762,), (1399973764,), (1399973798,), (1399973817,), (1399973818,), (1399973826,), (1399973829,), (1399973832,), (1399973867,), (1399973870,), (1399973873,), (1399973876,), (1399973879,), (1399973941,), (1399973943,), (1399973945,), (1399973947,), (1399973950,), (1399973953,), (1399973976,), (1399973977,), (1399973978,), (1399973981,), (1399973984,), (1399973987,), (1399973994,), (1399973996,), (1399973997,), (1399974032,), (1399974034,), (1399974052,), (1399974056,), (1399974063,), (1399974066,), (1399974093,), (1399974094,), (1399974096,), (1399974147,), (1399974149,), (1399974151,), (1399974155,), (1399974159,), (1399974163,), (1399974282,), (1399974334,), (1399974386,), (1399974440,), (1399974599,), (1399974629,), (1399974661,), (1399974693,), (1399974730,), (1399974761,), (1399974985,), (1399974967,), (1399974976,), (1399974983,), (1399975161,), (1399975173,), (1399975179,), (1399975196,), (1399975206,), (1399975220,), (1399975234,), (1399975235,), (1399975236,), (1399975237,), (1399975240,), (1399975258,), (1399975260,), (1399975262,), (1399975264,), (1399975267,), (1399975270,), (1399975283,), (1399975318,), (1399975349,), (1399975398,), (1399975430,), (1399975439,), (1399975472,), (1399975478,), (1399975480,), (1399975481,), (1399975486,), (1399975527,), (1399975533,), (1399975543,), (1399975545,), (1399975548,), (1399975549,), (1399975550,), (1399975551,), (1399975554,), (1399975561,), (1399975700,), (1399975721,), (1399975725,), (1399975773,), (1399975808,), (1399976109,), (1399976112,), (1399976113,), (1399976114,), (1399976117,), (1399976137,), (1399976140,), (1399976143,), (1399976158,), (1399976165,), (1399976262,), (1399976282,), (1399976285,), (1399976288,), (1399976291,), (1399976292,), (1399976296,), (1399976297,), (1399976300,), (1399976311,), (1399976314,), (1399976316,), (1399976318,), (1399976407,), (1399976499,), (1399976629,), (1399976632,), (1399976658,), (1399977017,), (1399977020,), (1399977023,), (1399977027,), (1399977029,), (1399977033,), (1399977059,), (1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18122025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29546661]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] map_info['map_portfolio_photo'] : {29546661: [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638, 1399977621, 1399977620, 1399977618, 1399977617, 1399977613, 1399977612, 1399977608, 1399977607, 1399977604, 1399977595, 1399977590, 1399977589, 1399977581, 1399977579, 1399977576, 1399977573, 1399977571, 1399977569, 1399977540, 1399977537, 1399977534, 1399977533, 1399977532, 1399977531, 1399977511, 1399977510, 1399977509, 1399977508, 1399977487, 1399977483, 1399977480, 1399977478, 1399977477, 1399977475, 1399977459, 1399977455, 1399977453, 1399977451, 1399977427, 1399977424, 1399977420, 1399977416, 1399977413, 1399977410, 1399977378, 1399977375, 1399977374, 1399977373, 1399977371, 1399977348, 1399977345, 1399977342, 1399977341, 1399977336, 1399977324, 1399977321, 1399977320, 1399977278, 1399977277, 1399977056, 1399977054, 1399977052, 1399977049]} final : True mtd_id 4302 list_pids : [1399977697, 1399977695, 1399977693, 1399977691, 1399977655, 1399977648, 1399977644, 1399977642, 1399977641, 1399977638] Looping around the photos to save general results len do output : 1 /29546661Didn'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, '4246579') ('4302', '29546661', '1399977697', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977695', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977693', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977691', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977655', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977648', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977644', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977642', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977641', None, None, None, None, None, '4246579') ('4302', None, None, None, None, None, None, None, '4246579') ('4302', '29546661', '1399977638', None, None, None, None, None, '4246579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '29546661', 'None', None, None, None, None, '4246579'), ('4302', '29546661', '1399977697', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977695', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977693', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977691', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977655', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977648', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977644', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977642', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977641', None, None, None, None, None, '4246579'), ('4302', '29546661', '1399977638', None, None, None, None, None, '4246579')] time used for this insertion : 0.015423059463500977 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7968716621398926 time spend to save output : 0.01568436622619629 total time spend for step 5 : 3.812556028366089 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 (4246579) 2.46user 2.48system 0:13.57elapsed 36%CPU (0avgtext+0avgdata 167344maxresident)k 5848inputs+13144outputs (96major+76991minor)pagefaults 0swaps