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 : 322555 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 (4191959) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4191959) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233782 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4191959'] with mtr_portfolio_ids : ['29233782'] and first list_photo_ids : [] new path : /proc/322555/ Name: python3 Umask: 0002 State: R (running) Tgid: 322555 Ngid: 0 Pid: 322555 PPid: 322554 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 322555 NSpid: 322555 NSpgid: 321538 NSsid: 321538 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 107208 kB VmRSS: 107208 kB RssAnon: 66292 kB RssFile: 40916 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '322555', 'Ngid': '0', 'Pid': '322555', 'PPid': '322554', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '322555', 'NSpid': '322555', 'NSpgid': '321538', 'NSsid': '321538', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '107208 kB', 'VmRSS': '107208 kB', 'RssAnon': '66292 kB', 'RssFile': '40916 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '322555', '1113364', '0', '1113364', '872092', '107208', b'', 'marlene', '4191959') 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 (29233782) 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 (4191959 ) ) 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 (29233782) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398116878, 'portfolio_id': 29233782}, {'photo_id': 1398116756, 'portfolio_id': 29233782}, {'photo_id': 1398116750, 'portfolio_id': 29233782}, {'photo_id': 1398116740, 'portfolio_id': 29233782}, {'photo_id': 1398116738, 'portfolio_id': 29233782}, {'photo_id': 1398116734, 'portfolio_id': 29233782}, {'photo_id': 1398116732, 'portfolio_id': 29233782}, {'photo_id': 1398116730, 'portfolio_id': 29233782}, {'photo_id': 1398116727, 'portfolio_id': 29233782}, {'photo_id': 1398116722, 'portfolio_id': 29233782}, {'photo_id': 1398116721, 'portfolio_id': 29233782}, {'photo_id': 1398116719, 'portfolio_id': 29233782}, {'photo_id': 1398116717, 'portfolio_id': 29233782}, {'photo_id': 1398116716, 'portfolio_id': 29233782}, {'photo_id': 1398116713, 'portfolio_id': 29233782}, {'photo_id': 1398116694, 'portfolio_id': 29233782}, {'photo_id': 1398116662, 'portfolio_id': 29233782}, {'photo_id': 1398116630, 'portfolio_id': 29233782}, {'photo_id': 1398116594, 'portfolio_id': 29233782}, {'photo_id': 1398116555, 'portfolio_id': 29233782}, {'photo_id': 1398116520, 'portfolio_id': 29233782}, {'photo_id': 1398116184, 'portfolio_id': 29233782}, {'photo_id': 1398116151, 'portfolio_id': 29233782}, {'photo_id': 1398116112, 'portfolio_id': 29233782}, {'photo_id': 1398116078, 'portfolio_id': 29233782}, {'photo_id': 1398116045, 'portfolio_id': 29233782}, {'photo_id': 1398116013, 'portfolio_id': 29233782}, {'photo_id': 1398115614, 'portfolio_id': 29233782}, {'photo_id': 1398115612, 'portfolio_id': 29233782}, {'photo_id': 1398115610, 'portfolio_id': 29233782}, {'photo_id': 1398115602, 'portfolio_id': 29233782}, {'photo_id': 1398115581, 'portfolio_id': 29233782}, {'photo_id': 1398115579, 'portfolio_id': 29233782}, {'photo_id': 1398115576, 'portfolio_id': 29233782}, {'photo_id': 1398115574, 'portfolio_id': 29233782}, {'photo_id': 1398115572, 'portfolio_id': 29233782}, {'photo_id': 1398115570, 'portfolio_id': 29233782}, {'photo_id': 1398115552, 'portfolio_id': 29233782}, {'photo_id': 1398115551, 'portfolio_id': 29233782}, {'photo_id': 1398115550, 'portfolio_id': 29233782}, {'photo_id': 1398115549, 'portfolio_id': 29233782}, {'photo_id': 1398115453, 'portfolio_id': 29233782}, {'photo_id': 1398115416, 'portfolio_id': 29233782}, {'photo_id': 1398115377, 'portfolio_id': 29233782}, {'photo_id': 1398115366, 'portfolio_id': 29233782}, {'photo_id': 1398115364, 'portfolio_id': 29233782}, {'photo_id': 1398115362, 'portfolio_id': 29233782}, {'photo_id': 1398115346, 'portfolio_id': 29233782}, {'photo_id': 1398115312, 'portfolio_id': 29233782}, {'photo_id': 1398115267, 'portfolio_id': 29233782}, {'photo_id': 1398115093, 'portfolio_id': 29233782}, {'photo_id': 1398115038, 'portfolio_id': 29233782}, {'photo_id': 1398115036, 'portfolio_id': 29233782}, {'photo_id': 1398115035, 'portfolio_id': 29233782}, {'photo_id': 1398115030, 'portfolio_id': 29233782}, {'photo_id': 1398115012, 'portfolio_id': 29233782}, {'photo_id': 1398113790, 'portfolio_id': 29233782}, {'photo_id': 1398113758, 'portfolio_id': 29233782}, {'photo_id': 1398113722, 'portfolio_id': 29233782}, {'photo_id': 1398113687, 'portfolio_id': 29233782}, {'photo_id': 1398113477, 'portfolio_id': 29233782}, {'photo_id': 1398113474, 'portfolio_id': 29233782}, {'photo_id': 1398113464, 'portfolio_id': 29233782}, {'photo_id': 1398113455, 'portfolio_id': 29233782}, {'photo_id': 1398113454, 'portfolio_id': 29233782}, {'photo_id': 1398113420, 'portfolio_id': 29233782}, {'photo_id': 1398113418, 'portfolio_id': 29233782}, {'photo_id': 1398113416, 'portfolio_id': 29233782}] map_portfolio_id_photo_id: {29233782: [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727, 1398116722, 1398116721, 1398116719, 1398116717, 1398116716, 1398116713, 1398116694, 1398116662, 1398116630, 1398116594, 1398116555, 1398116520, 1398116184, 1398116151, 1398116112, 1398116078, 1398116045, 1398116013, 1398115614, 1398115612, 1398115610, 1398115602, 1398115581, 1398115579, 1398115576, 1398115574, 1398115572, 1398115570, 1398115552, 1398115551, 1398115550, 1398115549, 1398115453, 1398115416, 1398115377, 1398115366, 1398115364, 1398115362, 1398115346, 1398115312, 1398115267, 1398115093, 1398115038, 1398115036, 1398115035, 1398115030, 1398115012, 1398113790, 1398113758, 1398113722, 1398113687, 1398113477, 1398113474, 1398113464, 1398113455, 1398113454, 1398113420, 1398113418, 1398113416]} ##### 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.019987106323242188 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Dec 5 19: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29233782) 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 : 29233782 get user id for portfolio 29233782 get sub ptf for main ptf 29233782, type 3726 and hashtags ['environnement', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal', 'kraft', 'flou', 'Carton_gris', 'Carton_brun', 'plastique', 'cartonnette', 'papier', 'autre_refus'] 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`=29233782 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Teint_Dans_La_Masse','metal','kraft','flou','Carton_gris','Carton_brun','plastique','cartonnette','papier','autre_refus')) 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`=29233782 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Teint_Dans_La_Masse','metal','kraft','flou','Carton_gris','Carton_brun','plastique','cartonnette','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29233782, 'sub_port_id': 29233805, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885586, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'Carton_gris': {'main_port_id': 29233782, 'sub_port_id': 29233806, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885587, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'cartonnette': {'main_port_id': 29233782, 'sub_port_id': 29233807, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885588, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'environnement': {'main_port_id': 29233782, 'sub_port_id': 29233808, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885589, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'metal': {'main_port_id': 29233782, 'sub_port_id': 29233809, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885590, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'papier': {'main_port_id': 29233782, 'sub_port_id': 29233810, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885591, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'Carton_brun': {'main_port_id': 29233782, 'sub_port_id': 29233811, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885592, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'flou': {'main_port_id': 29233782, 'sub_port_id': 29233812, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885593, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'autre_refus': {'main_port_id': 29233782, 'sub_port_id': 29233813, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885594, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'plastique': {'main_port_id': 29233782, 'sub_port_id': 29233814, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885595, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29233782, 'sub_port_id': 29233815, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885596, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}, 'kraft': {'main_port_id': 29233782, 'sub_port_id': 29233816, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885597, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29233805 , 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=29233782 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 (29233805) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233806 , 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=29233782 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 (29233806) result : ((1398114933,), (1398114935,), (1398116705,), (1398116745,), (1398117214,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233807 , 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=29233782 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 (29233807) result : ((1398114943,), (1398115873,), (1398115875,), (1398116706,), (1398117239,), (1398117242,), (1398117245,), (1398117248,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233808 , 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=29233782 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 (29233808) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233809 , 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=29233782 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 (29233809) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233810 , 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=29233782 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 (29233810) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233811 , 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=29233782 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 (29233811) result : ((1398114952,), (1398114954,), (1398115708,), (1398115710,), (1398115712,), (1398115714,), (1398115883,), (1398116707,), (1398116708,), (1398116709,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233812 , 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=29233782 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 (29233812) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233813 , 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=29233782 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 (29233813) result : ((1398114921,), (1398116701,), (1398117198,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233814 , 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=29233782 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 (29233814) result : ((1398114984,), (1398114986,), (1398115896,), (1398116327,), (1398116710,), (1398116711,), (1398116712,), (1398116714,), (1398116715,), (1398116746,), (1398116747,), (1398117267,), (1398117270,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233815 , 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=29233782 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 (29233815) result : ((1398115694,), (1398115696,), (1398115861,), (1398115863,), (1398116319,), (1398116698,), (1398116699,), (1398116700,), (1398116743,), (1398116744,), (1398117173,), (1398117176,), (1398117179,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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 29233816 , 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=29233782 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 (29233816) result : ((1398117287,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29233782) result : ((1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) 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`=29233782 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Teint_Dans_La_Masse','metal','kraft','flou','Carton_gris','Carton_brun','plastique','cartonnette','papier','autre_refus')) 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`=29233782 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Teint_Dans_La_Masse','metal','kraft','flou','Carton_gris','Carton_brun','plastique','cartonnette','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29233782, 'sub_port_id': 29233819, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885598, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'Carton_gris': {'main_port_id': 29233782, 'sub_port_id': 29233820, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885599, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'cartonnette': {'main_port_id': 29233782, 'sub_port_id': 29233821, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885600, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'environnement': {'main_port_id': 29233782, 'sub_port_id': 29233822, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885601, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'metal': {'main_port_id': 29233782, 'sub_port_id': 29233823, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885602, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'papier': {'main_port_id': 29233782, 'sub_port_id': 29233824, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885603, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'Carton_brun': {'main_port_id': 29233782, 'sub_port_id': 29233825, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885604, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'flou': {'main_port_id': 29233782, 'sub_port_id': 29233826, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885605, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'autre_refus': {'main_port_id': 29233782, 'sub_port_id': 29233827, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885606, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'plastique': {'main_port_id': 29233782, 'sub_port_id': 29233828, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885607, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 29233782, 'sub_port_id': 29233829, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885608, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}, 'kraft': {'main_port_id': 29233782, 'sub_port_id': 29233830, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19885609, 'last_updated_at': datetime.datetime(2025, 12, 5, 19, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 19, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 19, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233806 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233826,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233827,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233813 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233828,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233814 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233829,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233815 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29233830,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29233816 lien utilise dans velours : https://marlene.fotonower.com/velours/29233819,29233820,29233821,29233822,29233823,29233824,29233825,29233826,29233827,29233828,29233829,29233830?tags=mal_croppe,Carton_gris,cartonnette,environnement,metal,papier,Carton_brun,flou,autre_refus,plastique,Teint_Dans_La_Masse,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29233782]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] map_info['map_portfolio_photo'] : {29233782: [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727, 1398116722, 1398116721, 1398116719, 1398116717, 1398116716, 1398116713, 1398116694, 1398116662, 1398116630, 1398116594, 1398116555, 1398116520, 1398116184, 1398116151, 1398116112, 1398116078, 1398116045, 1398116013, 1398115614, 1398115612, 1398115610, 1398115602, 1398115581, 1398115579, 1398115576, 1398115574, 1398115572, 1398115570, 1398115552, 1398115551, 1398115550, 1398115549, 1398115453, 1398115416, 1398115377, 1398115366, 1398115364, 1398115362, 1398115346, 1398115312, 1398115267, 1398115093, 1398115038, 1398115036, 1398115035, 1398115030, 1398115012, 1398113790, 1398113758, 1398113722, 1398113687, 1398113477, 1398113474, 1398113464, 1398113455, 1398113454, 1398113420, 1398113418, 1398113416]} final : False mtd_id 4302 list_pids : [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] Looping around the photos to save general results len do output : 1 /29233782. 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, '4191959') ('4302', '29233782', '1398116878', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116756', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116750', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116740', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116738', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116734', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116732', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116730', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116727', None, None, None, None, None, '4191959') 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', None, '29233782', "{'mal_croppe': 29233805, 'Carton_gris': 29233806, 'cartonnette': 29233807, 'environnement': 29233808, 'metal': 29233809, 'papier': 29233810, 'Carton_brun': 29233811, 'flou': 29233812, 'autre_refus': 29233813, 'plastique': 29233814, 'Teint_Dans_La_Masse': 29233815, 'kraft': 29233816}", None, None, None, None, '4191959'), ('4302', '29233782', '1398116878', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116756', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116750', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116740', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116738', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116734', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116732', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116730', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116727', None, None, None, None, None, '4191959')] time used for this insertion : 0.015878915786743164 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9244792461395264 time spend to save output : 0.016147375106811523 total time spend for step 1 : 1.940626621246338 step2:final Fri Dec 5 19:15:01 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 (29233782) 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 29233782 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398113420,1398113418,1398113416,1398113477,1398113474,1398113464,1398113455,1398113454,1398113790,1398113758,1398113722,1398113687,1398115346,1398115312,1398115267,1398115093,1398115038,1398115036,1398115035,1398115030,1398115012,1398115453,1398115416,1398115377,1398115366,1398115364,1398115362,1398115552,1398115551,1398115550,1398115549,1398115581,1398115579,1398115576,1398115574,1398115572,1398115570,1398115614,1398116756,1398115612,1398116722,1398116184,1398116151,1398116721,1398115610,1398116112,1398116719,1398115602,1398116078,1398116717,1398116045,1398116716,1398116013,1398116713,1398116694,1398116662,1398116630,1398116594,1398116555,1398116520,1398116740,1398116738,1398116734,1398116732,1398116730,1398116727,1398116878,1398116750); 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([29233782]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} new output for save of step final : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] map_info['map_portfolio_photo'] : {29233782: [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727, 1398116722, 1398116721, 1398116719, 1398116717, 1398116716, 1398116713, 1398116694, 1398116662, 1398116630, 1398116594, 1398116555, 1398116520, 1398116184, 1398116151, 1398116112, 1398116078, 1398116045, 1398116013, 1398115614, 1398115612, 1398115610, 1398115602, 1398115581, 1398115579, 1398115576, 1398115574, 1398115572, 1398115570, 1398115552, 1398115551, 1398115550, 1398115549, 1398115453, 1398115416, 1398115377, 1398115366, 1398115364, 1398115362, 1398115346, 1398115312, 1398115267, 1398115093, 1398115038, 1398115036, 1398115035, 1398115030, 1398115012, 1398113790, 1398113758, 1398113722, 1398113687, 1398113477, 1398113474, 1398113464, 1398113455, 1398113454, 1398113420, 1398113418, 1398113416]} final : False mtd_id 4302 list_pids : [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] Looping around the photos to save general results len do output : 9 /1398116878.Didn't retrieve data . /1398116756.Didn't retrieve data . /1398116750.Didn't retrieve data . /1398116740.Didn't retrieve data . /1398116738.Didn't retrieve data . /1398116734.Didn't retrieve data . /1398116732.Didn't retrieve data . /1398116730.Didn't retrieve data . /1398116727.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, '4191959') ('4302', '29233782', '1398116878', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116756', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116750', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116740', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116738', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116734', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116732', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116730', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116727', None, None, None, None, None, '4191959') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29233782', '1398116878', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116756', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116750', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116740', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116738', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116734', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116732', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116730', '0.053562431710041276', None, None, None, None, '4191959'), ('4302', '29233782', '1398116727', '0.053562431710041276', None, None, None, None, '4191959')] time used for this insertion : 0.024030447006225586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08260917663574219 time spend to save output : 0.024482250213623047 total time spend for step 2 : 0.10709142684936523 step3:velours_tree Fri Dec 5 19:15:01 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 : {29233782: [{'mal_croppe': 29233805, 'Carton_gris': 29233806, 'cartonnette': 29233807, 'environnement': 29233808, 'metal': 29233809, 'papier': 29233810, 'Carton_brun': 29233811, 'flou': 29233812, 'autre_refus': 29233813, 'plastique': 29233814, 'Teint_Dans_La_Masse': 29233815, 'kraft': 29233816}]} input_args_next_step : {29233782: ()} output_args : {29233782: [{'mal_croppe': 29233805, 'Carton_gris': 29233806, 'cartonnette': 29233807, 'environnement': 29233808, 'metal': 29233809, 'papier': 29233810, 'Carton_brun': 29233811, 'flou': 29233812, 'autre_refus': 29233813, 'plastique': 29233814, 'Teint_Dans_La_Masse': 29233815, 'kraft': 29233816}]} args : 29233782 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 : ({'mal_croppe': 29233805, 'Carton_gris': 29233806, 'cartonnette': 29233807, 'environnement': 29233808, 'metal': 29233809, 'papier': 29233810, 'Carton_brun': 29233811, 'flou': 29233812, 'autre_refus': 29233813, 'plastique': 29233814, 'Teint_Dans_La_Masse': 29233815, 'kraft': 29233816},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29233782) 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([29233782]) 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.24529600143432617 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.2453458309173584 step4:send_mail_cod Fri Dec 5 19:15:01 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 : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} input_args_next_step : {1398116878: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116878 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116756 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116750 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116740 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116738 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116734 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116732 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116730 depend.output_id : 0 input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ()} output_args : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',)} args : 1398116727 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 : {29233782: [{'mal_croppe': 29233805, 'Carton_gris': 29233806, 'cartonnette': 29233807, 'environnement': 29233808, 'metal': 29233809, 'papier': 29233810, 'Carton_brun': 29233811, 'flou': 29233812, 'autre_refus': 29233813, 'plastique': 29233814, 'Teint_Dans_La_Masse': 29233815, 'kraft': 29233816}]} input_args_next_step : {1398116878: ('0.053562431710041276',), 1398116756: ('0.053562431710041276',), 1398116750: ('0.053562431710041276',), 1398116740: ('0.053562431710041276',), 1398116738: ('0.053562431710041276',), 1398116734: ('0.053562431710041276',), 1398116732: ('0.053562431710041276',), 1398116730: ('0.053562431710041276',), 1398116727: ('0.053562431710041276',), 29233782: ()} output_args : {29233782: [{'mal_croppe': 29233805, 'Carton_gris': 29233806, 'cartonnette': 29233807, 'environnement': 29233808, 'metal': 29233809, 'papier': 29233810, 'Carton_brun': 29233811, 'flou': 29233812, 'autre_refus': 29233813, 'plastique': 29233814, 'Teint_Dans_La_Masse': 29233815, 'kraft': 29233816}]} args : 29233782 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 :10, first value : ('0.053562431710041276',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29233782) 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 (1398116878,1398116756,1398116750,1398116740,1398116738,1398116734,1398116732,1398116730,1398116727) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398116727 begin to download photo : 1398116732 begin to download photo : 1398116738 begin to download photo : 1398116750 begin to download photo : 1398116878 download finish for photo 1398116738 begin to download photo : 1398116740 download finish for photo 1398116732 begin to download photo : 1398116734 download finish for photo 1398116878 download finish for photo 1398116750 begin to download photo : 1398116756 download finish for photo 1398116727 begin to download photo : 1398116730 download finish for photo 1398116734 download finish for photo 1398116740 download finish for photo 1398116756 download finish for photo 1398116730 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292338051764958502/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P29233782_05-12-2025_19_15_02.pdf 29233805 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=29233805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292338051764958502 29233807 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=29233807 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398114943: '1764957866_2648775_1398113416_e460fce3bc5fbac2472f709558d044fa_rle_crop_4060526737_0.png', 1398115873: '1764958166_2662401_1398115312_44fbf827a929070c9f78a4036eb49542_rle_crop_4060552131_0.png', 1398115875: '1764958166_2662401_1398115312_44fbf827a929070c9f78a4036eb49542_rle_crop_4060552138_0.png', 1398116706: '1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552388_0.png', 1398117239: '1764958387_2677613_1398115576_df2aafc75fcba39a4be52808cea8ba8b_rle_crop_4060552962_0.png', 1398117242: '1764958387_2677613_1398115574_b86b46cbf77128ba3144955afa61b162_rle_crop_4060552985_0.png', 1398117245: '1764958387_2677613_1398115574_b86b46cbf77128ba3144955afa61b162_rle_crop_4060552981_0.png', 1398117248: '1764958387_2677613_1398115570_840bc0a7eb6aaf8bf169dfa5915e633f_rle_crop_4060553010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/987aea445aa6161a266a3c38a143c440_41216139.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/442032506368dc8c5c78e6f3e911f388_86773725.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3411bc11b7d307914021efb800d3adbf_81679883.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6d7aca7a70bbdf0a8e77bac50118180a_89722296.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c9ed1316840aab089f30d98ff0fb5883_4780932.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/79f9d8aa39883e3c8bac1c43d7eb5875_12868562.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/09ab61caadda8de7cbebea3657e39528_78592997.png change filename to text .imagette292338071764958502/ imagette292338071764958502/1764958387_2677613_1398115574_b86b46cbf77128ba3144955afa61b162_rle_crop_4060552981_0.png.png imagette292338071764958502/1764957866_2648775_1398113416_e460fce3bc5fbac2472f709558d044fa_rle_crop_4060526737_0.png.png imagette292338071764958502/1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552388_0.png.png imagette292338071764958502/1764958387_2677613_1398115570_840bc0a7eb6aaf8bf169dfa5915e633f_rle_crop_4060553010_0.png.png imagette292338071764958502/1764958387_2677613_1398115576_df2aafc75fcba39a4be52808cea8ba8b_rle_crop_4060552962_0.png.png imagette292338071764958502/1764958166_2662401_1398115312_44fbf827a929070c9f78a4036eb49542_rle_crop_4060552138_0.png.png imagette292338071764958502/1764958166_2662401_1398115312_44fbf827a929070c9f78a4036eb49542_rle_crop_4060552131_0.png.png imagette292338071764958502/1764958387_2677613_1398115574_b86b46cbf77128ba3144955afa61b162_rle_crop_4060552985_0.png.png imagette292338091764958502/ imagette292338121764958502/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a4a3b8b4c27b2291626afe60342af725_89280867.png imagette292338071764958502 29233809 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=29233809 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292338091764958502 29233812 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=29233812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292338121764958502 29233813 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=29233813 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398114921: '1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526704_0.png', 1398116701: '1764958268_2669611_1398115364_04abff39c5a62a2a87536a077c431b21_rle_crop_4060552552_0.png', 1398117198: '1764958387_2677613_1398115579_abef856f8059715f65bd29d60d8a390e_rle_crop_4060552949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/834b6707173fc1ffad4eb1d7b0b3b5d3_35990373.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e04c86684579b91cb1adad52ae34d080_21738303.png change filename to text .imagette292338131764958502/ imagette292338131764958502/1764958387_2677613_1398115579_abef856f8059715f65bd29d60d8a390e_rle_crop_4060552949_0.png.png imagette292338131764958502/1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526704_0.png.png imagette292338131764958502/1764958268_2669611_1398115364_04abff39c5a62a2a87536a077c431b21_rle_crop_4060552552_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ccbf6084dd4ba80dcecd69acda0632a0_85417164.png imagette292338131764958502 29233814 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=29233814 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398114984: '1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526712_0.png', 1398114986: '1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526710_0.png', 1398115896: '1764958166_2662401_1398115267_2fd69a3856f0c4269c0998a7d663a1e5_rle_crop_4060552142_0.png', 1398116327: '1764958226_2668245_1398115551_4c4b69bbea9b35c1e12e0047dbc15dd4_rle_crop_4060552210_0.png', 1398116710: '1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552389_0.png', 1398116711: '1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552398_0.png', 1398116712: '1764958268_2669611_1398115416_8c49dc572d451924ddee05848f83e23d_rle_crop_4060552410_0.png', 1398116714: '1764958268_2669611_1398115362_8f40516e7d12a76e22beacb7c34c3a79_rle_crop_4060552565_0.png', 1398116715: '1764958268_2669611_1398115362_8f40516e7d12a76e22beacb7c34c3a79_rle_crop_4060552566_0.png', 1398116746: '1764958347_2676740_1398115612_7739c81921caeb8fe36c198fe03cc576_rle_crop_4060552729_0.png', 1398116747: '1764958347_2676740_1398115602_650ff239f8b29e12c6d932482f5e280a_rle_crop_4060552755_0.png', 1398117267: '1764958387_2677613_1398115579_abef856f8059715f65bd29d60d8a390e_rle_crop_4060552954_0.png', 1398117270: '1764958387_2677613_1398115576_df2aafc75fcba39a4be52808cea8ba8b_rle_crop_4060552963_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/1caa6f257e443ed8302f5f37e7af051b_73349837.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/389ddc3c4c8f23ddda0195d88870f27a_69048035.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6292017eb2b3e9cb2dc3757e1d74680f_10393110.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f1327f5b77e6024e39838cf18873550b_4447411.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c119418a35dd580810ecf769955ffae2_81772762.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a674271a9f5e47009a487bf12f6e5786_12236871.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/d1ca7c28c8636818cf5255315db9509e_5493409.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/b84e5693c3a27c1dff864ed484698836_21814838.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/9b3ee1dfc697f091c0f7ee519472195b_59287155.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/70ace119707cddb933515ec545c8a419_73709443.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/87915d8dd02e06ba9568e17379683291_91023208.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f61e885aae6287994092123721d52df3_97719210.png change filename to text .imagette292338141764958503/ imagette292338141764958503/1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552389_0.png.png imagette292338141764958503/1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526712_0.png.png imagette292338141764958503/1764958166_2662401_1398115267_2fd69a3856f0c4269c0998a7d663a1e5_rle_crop_4060552142_0.png.png imagette292338141764958503/1764958387_2677613_1398115576_df2aafc75fcba39a4be52808cea8ba8b_rle_crop_4060552963_0.png.png imagette292338141764958503/1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526710_0.png.png imagette292338141764958503/1764958268_2669611_1398115416_8c49dc572d451924ddee05848f83e23d_rle_crop_4060552410_0.png.png imagette292338141764958503/1764958268_2669611_1398115362_8f40516e7d12a76e22beacb7c34c3a79_rle_crop_4060552565_0.png.png imagette292338141764958503/1764958226_2668245_1398115551_4c4b69bbea9b35c1e12e0047dbc15dd4_rle_crop_4060552210_0.png.png imagette292338141764958503/1764958347_2676740_1398115602_650ff239f8b29e12c6d932482f5e280a_rle_crop_4060552755_0.png.png imagette292338141764958503/1764958347_2676740_1398115612_7739c81921caeb8fe36c198fe03cc576_rle_crop_4060552729_0.png.png imagette292338141764958503/1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552398_0.png.png imagette292338141764958503/1764958387_2677613_1398115579_abef856f8059715f65bd29d60d8a390e_rle_crop_4060552954_0.png.png imagette292338141764958503/1764958268_2669611_1398115362_8f40516e7d12a76e22beacb7c34c3a79_rle_crop_4060552566_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/41657dcee98c3a9577e962d8c3cd3866_33476430.png imagette292338141764958503 29233816 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=29233816 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398117287: '1764958387_2677613_1398115570_840bc0a7eb6aaf8bf169dfa5915e633f_rle_crop_4060553015_0.png'} change filename to text .imagette292338161764958504/ imagette292338161764958504/1764958387_2677613_1398115570_840bc0a7eb6aaf8bf169dfa5915e633f_rle_crop_4060553015_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/261c2bc55676cffd22bde23c93baa62b_53190623.png imagette292338161764958504 29233806 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=29233806 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398114933: '1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526709_0.png', 1398114935: '1764957866_2648775_1398113418_a55ebe88addf8e85850c95830c22ac56_rle_crop_4060526720_0.png', 1398116705: '1764958268_2669611_1398115377_72f10b6629676a04ae67d88b4a131e5c_rle_crop_4060552417_0.png', 1398116745: '1764958347_2676740_1398115610_1c43e3c239b180cbdb6024c6100f8758_rle_crop_4060552738_0.png', 1398117214: '1764958387_2677613_1398115572_463c1e05253d7732d7e84f70dd01c0c6_rle_crop_4060552998_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c2d2850f449d915410cbbfbdfe727c34_33909230.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3bfcabcb07c5b102b2d00d44c3a8be98_36453133.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/b4bc8f3179bed433b1b0146e899cad0e_38410243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/84c9b5dfc208802d0a1817efba7a0f3a_5659258.png change filename to text .imagette292338061764958504/ imagette292338061764958504/1764957866_2648775_1398113420_7373a53eef1d27895b38c9c3943e88d8_rle_crop_4060526709_0.png.png imagette292338061764958504/1764958347_2676740_1398115610_1c43e3c239b180cbdb6024c6100f8758_rle_crop_4060552738_0.png.png imagette292338061764958504/1764957866_2648775_1398113418_a55ebe88addf8e85850c95830c22ac56_rle_crop_4060526720_0.png.png imagette292338061764958504/1764958268_2669611_1398115377_72f10b6629676a04ae67d88b4a131e5c_rle_crop_4060552417_0.png.png imagette292338061764958504/1764958387_2677613_1398115572_463c1e05253d7732d7e84f70dd01c0c6_rle_crop_4060552998_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f66e6197286e5070173cfa1aee73ac81_19785283.png imagette292338061764958504 29233811 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=29233811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398114952: '1764957866_2648775_1398113416_e460fce3bc5fbac2472f709558d044fa_rle_crop_4060526740_0.png', 1398114954: '1764957866_2648775_1398113416_e460fce3bc5fbac2472f709558d044fa_rle_crop_4060526738_0.png', 1398115708: '1764958146_2661331_1398115035_e85696d6c8ee0d63e970776e1c2104ac_rle_crop_4060552035_0.png', 1398115710: '1764958146_2661331_1398115030_44a47bf4770515638456ca78fa3e1358_rle_crop_4060552052_0.png', 1398115712: '1764958146_2661331_1398115030_44a47bf4770515638456ca78fa3e1358_rle_crop_4060552053_0.png', 1398115714: '1764958146_2661331_1398115012_100a529236770f925f03d8edabbc9645_rle_crop_4060552060_0.png', 1398115883: '1764958166_2662401_1398115267_2fd69a3856f0c4269c0998a7d663a1e5_rle_crop_4060552149_0.png', 1398116707: '1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552393_0.png', 1398116708: '1764958268_2669611_1398115377_72f10b6629676a04ae67d88b4a131e5c_rle_crop_4060552422_0.png', 1398116709: '1764958268_2669611_1398115366_bb7649b0b897c385d89d3f13e27bcf36_rle_crop_4060552543_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/62ff9641fe1b85627e3ff82d1b65e095_59050004.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/88cf0ea59802c8a7096d3f1173755a10_66406898.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/5d0a26db074eb77a34603c65fef874a0_85873143.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/1e5dfff687c1ab4fe81e366bddc0c841_39703463.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/abb3e85dc3085f3e245d6fe0179aa6b4_46043835.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/d65c22fbaabad16be502fa9da4920ced_16501610.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/499966cafade7eeb59eae1db3572850d_90360244.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/20253a8a90391848c432f4cfa7ff9841_35391459.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8ac11dc6bb54715905835926525f34b9_69307007.png change filename to text .imagette292338111764958504/ imagette292338111764958504/1764958146_2661331_1398115030_44a47bf4770515638456ca78fa3e1358_rle_crop_4060552053_0.png.png imagette292338111764958504/1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552393_0.png.png imagette292338111764958504/1764958166_2662401_1398115267_2fd69a3856f0c4269c0998a7d663a1e5_rle_crop_4060552149_0.png.png imagette292338111764958504/1764958146_2661331_1398115012_100a529236770f925f03d8edabbc9645_rle_crop_4060552060_0.png.png imagette292338111764958504/1764958146_2661331_1398115030_44a47bf4770515638456ca78fa3e1358_rle_crop_4060552052_0.png.png imagette292338111764958504/1764958268_2669611_1398115377_72f10b6629676a04ae67d88b4a131e5c_rle_crop_4060552422_0.png.png imagette292338111764958504/1764957866_2648775_1398113416_e460fce3bc5fbac2472f709558d044fa_rle_crop_4060526740_0.png.png imagette292338111764958504/1764958268_2669611_1398115366_bb7649b0b897c385d89d3f13e27bcf36_rle_crop_4060552543_0.png.png imagette292338111764958504/1764957866_2648775_1398113416_e460fce3bc5fbac2472f709558d044fa_rle_crop_4060526738_0.png.png imagette292338111764958504/1764958146_2661331_1398115035_e85696d6c8ee0d63e970776e1c2104ac_rle_crop_4060552035_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ae5dd3b14785d07de84f0388ec1a2030_87267590.png imagette292338111764958504 29233815 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=29233815 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398115694: '1764958146_2661331_1398115036_f4edef7eda791a02dd0158ecda55a11d_rle_crop_4060552032_0.png', 1398115696: '1764958146_2661331_1398115012_100a529236770f925f03d8edabbc9645_rle_crop_4060552059_0.png', 1398115861: '1764958166_2662401_1398115312_44fbf827a929070c9f78a4036eb49542_rle_crop_4060552134_0.png', 1398115863: '1764958166_2662401_1398115267_2fd69a3856f0c4269c0998a7d663a1e5_rle_crop_4060552147_0.png', 1398116319: '1764958226_2668245_1398115550_2881846e8a6531c81ac2bcfb24f2022a_rle_crop_4060552218_0.png', 1398116698: '1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552399_0.png', 1398116699: '1764958268_2669611_1398115364_04abff39c5a62a2a87536a077c431b21_rle_crop_4060552558_0.png', 1398116700: '1764958268_2669611_1398115362_8f40516e7d12a76e22beacb7c34c3a79_rle_crop_4060552570_0.png', 1398116743: '1764958347_2676740_1398115610_1c43e3c239b180cbdb6024c6100f8758_rle_crop_4060552739_0.png', 1398116744: '1764958347_2676740_1398115602_650ff239f8b29e12c6d932482f5e280a_rle_crop_4060552756_0.png', 1398117173: '1764958387_2677613_1398115576_df2aafc75fcba39a4be52808cea8ba8b_rle_crop_4060552961_0.png', 1398117176: '1764958387_2677613_1398115574_b86b46cbf77128ba3144955afa61b162_rle_crop_4060552983_0.png', 1398117179: '1764958387_2677613_1398115570_840bc0a7eb6aaf8bf169dfa5915e633f_rle_crop_4060553012_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/5c8d8deff3df08b55ba9ca16dbb012a0_81077682.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/2129ca85f6f05b31cc608c25703f6cce_8365866.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/746731bc430568bb91878dd45ec10588_67356836.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8b4af1dd1ff626cddb468ab0ca223325_11288729.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/2f2ac0156aa66503c7157bc7a50181fb_98868755.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/29b529d477d8a065c9fca59bf61dd96d_47943576.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ed3340ab6fa533f2c2eae6dfb8d7777f_87803043.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/78154733029e40f04428799194250f99_16160738.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3a9e0c1e3886190a5986d9431cab411d_29395908.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/2f34d62621e07910600c1b680aa557f2_21266763.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/05d0e4b19a0f9b4942dc1c972f9b54f7_46422089.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8f7402f8417c64dd3bd5f9b9becfac87_98329695.png change filename to text .imagette292338151764958505/ imagette292338151764958505/1764958268_2669611_1398115364_04abff39c5a62a2a87536a077c431b21_rle_crop_4060552558_0.png.png imagette292338151764958505/1764958387_2677613_1398115574_b86b46cbf77128ba3144955afa61b162_rle_crop_4060552983_0.png.png imagette292338151764958505/1764958268_2669611_1398115362_8f40516e7d12a76e22beacb7c34c3a79_rle_crop_4060552570_0.png.png imagette292338151764958505/1764958347_2676740_1398115610_1c43e3c239b180cbdb6024c6100f8758_rle_crop_4060552739_0.png.png imagette292338151764958505/1764958146_2661331_1398115036_f4edef7eda791a02dd0158ecda55a11d_rle_crop_4060552032_0.png.png imagette292338151764958505/1764958226_2668245_1398115550_2881846e8a6531c81ac2bcfb24f2022a_rle_crop_4060552218_0.png.png imagette292338151764958505/1764958166_2662401_1398115267_2fd69a3856f0c4269c0998a7d663a1e5_rle_crop_4060552147_0.png.png imagette292338151764958505/1764958387_2677613_1398115576_df2aafc75fcba39a4be52808cea8ba8b_rle_crop_4060552961_0.png.png imagette292338151764958505/1764958146_2661331_1398115012_100a529236770f925f03d8edabbc9645_rle_crop_4060552059_0.png.png imagette292338151764958505/1764958268_2669611_1398115552_2599c098f985d2b09cb8df3e3d031b26_rle_crop_4060552399_0.png.png imagette292338151764958505/1764958347_2676740_1398115602_650ff239f8b29e12c6d932482f5e280a_rle_crop_4060552756_0.png.png imagette292338151764958505/1764958387_2677613_1398115570_840bc0a7eb6aaf8bf169dfa5915e633f_rle_crop_4060553012_0.png.png imagette292338151764958505/1764958166_2662401_1398115312_44fbf827a929070c9f78a4036eb49542_rle_crop_4060552134_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6aa65dde8f911b611818779ed33a3e5f_51272117.png imagette292338151764958505 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29233782 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29233819,29233820,29233821,29233822,29233823,29233824,29233825,29233826,29233827,29233828,29233829,29233830?tags=mal_croppe,Carton_gris,cartonnette,environnement,metal,papier,Carton_brun,flou,autre_refus,plastique,Teint_Dans_La_Masse,kraft your option no_mail is active, we will not send the real mail to your client args[1398116878] : ('0.053562431710041276',) no score found for photo 1398116878 We are sending mail with results at report@fotonower.com args[1398116756] : ('0.053562431710041276',) no score found for photo 1398116756 We are sending mail with results at report@fotonower.com args[1398116750] : ('0.053562431710041276',) no score found for photo 1398116750 We are sending mail with results at report@fotonower.com args[1398116740] : ('0.053562431710041276',) no score found for photo 1398116740 We are sending mail with results at report@fotonower.com args[1398116738] : ('0.053562431710041276',) no score found for photo 1398116738 We are sending mail with results at report@fotonower.com args[1398116734] : ('0.053562431710041276',) no score found for photo 1398116734 We are sending mail with results at report@fotonower.com args[1398116732] : ('0.053562431710041276',) no score found for photo 1398116732 We are sending mail with results at report@fotonower.com args[1398116730] : ('0.053562431710041276',) no score found for photo 1398116730 We are sending mail with results at report@fotonower.com args[1398116727] : ('0.053562431710041276',) no score found for photo 1398116727 We are sending mail with results at report@fotonower.com refus_total : 0.053562431710041276 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=29233782 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_P29233782_05-12-2025_19_15_02.pdf results_Auto_P29233782_05-12-2025_19_15_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29233782_05-12-2025_19_15_02.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','29233782','results_Auto_P29233782_05-12-2025_19_15_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29233782_05-12-2025_19_15_02.pdf','pdf','','0.27','0.053562431710041276') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29233782]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] map_info['map_portfolio_photo'] : {29233782: [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727, 1398116722, 1398116721, 1398116719, 1398116717, 1398116716, 1398116713, 1398116694, 1398116662, 1398116630, 1398116594, 1398116555, 1398116520, 1398116184, 1398116151, 1398116112, 1398116078, 1398116045, 1398116013, 1398115614, 1398115612, 1398115610, 1398115602, 1398115581, 1398115579, 1398115576, 1398115574, 1398115572, 1398115570, 1398115552, 1398115551, 1398115550, 1398115549, 1398115453, 1398115416, 1398115377, 1398115366, 1398115364, 1398115362, 1398115346, 1398115312, 1398115267, 1398115093, 1398115038, 1398115036, 1398115035, 1398115030, 1398115012, 1398113790, 1398113758, 1398113722, 1398113687, 1398113477, 1398113474, 1398113464, 1398113455, 1398113454, 1398113420, 1398113418, 1398113416]} final : False mtd_id 4302 list_pids : [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] 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, '4191959') ('4302', '29233782', '1398116878', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116756', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116750', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116740', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116738', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116734', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116732', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116730', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116727', None, None, None, None, None, '4191959') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '29233782', '1398116878', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116756', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116750', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116740', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116738', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116734', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116732', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116730', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116727', None, None, None, None, None, '4191959')] time used for this insertion : 0.01669764518737793 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.924259662628174 time spend to save output : 0.01690077781677246 total time spend for step 4 : 5.941160440444946 step5:split_time_score Fri Dec 5 19:15:07 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 : ['29233782'] 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 : [('29233782',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29233782) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398116878: {'path': 'temp/1764958502_322555_1398116878_057016394e6da40fdc8c5d3a6b5fa32f.jpg', 'extension': 'jpg'}, 1398116732: {'path': 'temp/1764958502_322555_1398116732_a4da0f6af28916c8f4253b11e9aa5043.jpg', 'extension': 'jpg'}, 1398116734: {'path': 'temp/1764958502_322555_1398116734_17ef2a79defa1bcf99c9a11c64ef4595.jpg', 'extension': 'jpg'}, 1398116738: {'path': 'temp/1764958502_322555_1398116738_b67c71b06d923978dddc6ca76102fd0a.jpg', 'extension': 'jpg'}, 1398116740: {'path': 'temp/1764958502_322555_1398116740_7c3dbe77f80b94354283f57861626693.jpg', 'extension': 'jpg'}, 1398116750: {'path': 'temp/1764958502_322555_1398116750_9ee6b5207ab380b605bbac69237de5c2.jpg', 'extension': 'jpg'}, 1398116756: {'path': 'temp/1764958502_322555_1398116756_109dda9dec521bb40b62124082f5ec00.jpg', 'extension': 'jpg'}, 1398116727: {'path': 'temp/1764958502_322555_1398116727_9c51679ad9579b54e906980e900ed4f4.jpg', 'extension': 'jpg'}, 1398116730: {'path': 'temp/1764958502_322555_1398116730_1bff21ae895b9282afa4dc4e3b236fb9.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 = 29233782; (('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 = 29233782 group by h (('19', 68),) 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=29233782 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 (29233782) 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 (29233782) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05122025 29233782 Nombre de photos uploadées : 68 / 23040 (0%) 05122025 29233782 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 05122025 29233782 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1398113420, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7373a53eef1d27895b38c9c3943e88d8.jpg', 'username': None, 'uploaded_at': 1764957667, 'text': 'image_05122025_19_00_04_010149m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398113418, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a55ebe88addf8e85850c95830c22ac56.jpg', 'username': None, 'uploaded_at': 1764957667, 'text': 'image_05122025_19_00_14_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398113416, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e460fce3bc5fbac2472f709558d044fa.jpg', 'username': None, 'uploaded_at': 1764957667, 'text': 'image_05122025_19_00_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398113477, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c7c48a0573b4b6668a07b111bae95f9b.jpg', 'username': None, 'uploaded_at': 1764957738, 'text': 'image_05122025_19_00_33_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003142833709716797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29233782, '2025-12-05' ) 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-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2697308,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2759861946105957 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= 2697308 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29203465, 'dashboard_result_id': 18131500, '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_P29203465_05-12-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29204100, 'dashboard_result_id': 18131501, '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_P29204100_05-12-2025_06_18_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29204816, 'dashboard_result_id': 18131502, '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_P29204816_05-12-2025_06_18_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29205333, 'dashboard_result_id': 18131503, '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_P29205333_05-12-2025_06_19_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29206956, 'dashboard_result_id': 18131504, '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_P29206956_05-12-2025_06_19_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29207334, 'dashboard_result_id': 18131505, '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_P29207334_05-12-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29208070, 'dashboard_result_id': 18131506, '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_P29208070_05-12-2025_06_21_13.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29208366, 'dashboard_result_id': 18131507, '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_P29208366_05-12-2025_06_21_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29208840, 'dashboard_result_id': 18131508, '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_P29208840_05-12-2025_06_22_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29209184, 'dashboard_result_id': 18131509, '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_P29209184_05-12-2025_06_22_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29209764, 'dashboard_result_id': 18131510, '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_P29209764_05-12-2025_06_23_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29210458, 'dashboard_result_id': 18131511, '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_P29210458_05-12-2025_06_24_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29210916, 'dashboard_result_id': 18131512, '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_P29210916_05-12-2025_06_24_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210953, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29211325, 'dashboard_result_id': 18131513, '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_P29211325_05-12-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29211359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29211360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29211361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29211362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29211363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29211364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29211365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29211366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29211367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29211368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29211369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29211370, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29212030, 'dashboard_result_id': 18131514, '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_P29212030_05-12-2025_06_25_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212047, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29212489, 'dashboard_result_id': 18131515, '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_P29212489_05-12-2025_06_26_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212506, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29212842, 'dashboard_result_id': 18131516, '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_P29212842_05-12-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212861, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29213320, 'dashboard_result_id': 18131517, '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_P29213320_05-12-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213340, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29213678, 'dashboard_result_id': 18131518, '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_P29213678_05-12-2025_06_17_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213697, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29214234, 'dashboard_result_id': 18131519, '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_P29214234_05-12-2025_06_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29214238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29214239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29214240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29214241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29214242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29214244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29214245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29214246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29214247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29214248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29214249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29214250, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29214654, 'dashboard_result_id': 18131520, '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_P29214654_05-12-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29214680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29214681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29214682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29214683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29214684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29214685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29214686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29214687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29214688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29214689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29214690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29214691, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29215120, 'dashboard_result_id': 18131521, '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_P29215120_05-12-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29215127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29215128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29215130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29215131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29215132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29215133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29215134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29215135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29215136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29215137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29215138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29215139, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29215447, 'dashboard_result_id': 18131522, '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_P29215447_05-12-2025_07_19_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29215500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29215501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29215502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29215503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29215504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29215505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29215506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29215507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29215508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29215509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29215510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29215511, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29216195, 'dashboard_result_id': 18131523, '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_P29216195_05-12-2025_07_36_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29216245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29216246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29216247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29216248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29216249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29216250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29216251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29216252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29216253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29216254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29216255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29216256, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29216741, 'dashboard_result_id': 18131524, '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_P29216741_05-12-2025_07_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29216755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29216756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29216757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29216758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29216759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29216760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29216761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29216762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29216763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29216764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29216765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29216766, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29217226, 'dashboard_result_id': 18131525, '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_P29217226_05-12-2025_08_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29217231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29217232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29217233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29217234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29217235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29217236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29217237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29217238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29217239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29217240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29217241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29217242, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29219689, 'dashboard_result_id': 18131526, '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_P29219689_05-12-2025_09_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29219708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29219709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29219711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29219712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29219714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29219715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29219717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29219718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29219719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29219720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29219721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29219722, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29220015, 'dashboard_result_id': 18131527, '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_P29220015_05-12-2025_10_09_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220054, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29220555, 'dashboard_result_id': 18131528, '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_P29220555_05-12-2025_10_19_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220568, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29220780, 'dashboard_result_id': 18131529, '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_P29220780_05-12-2025_10_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220813, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29221214, 'dashboard_result_id': 18131530, '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_P29221214_05-12-2025_10_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29221226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29221227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29221228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29221229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29221230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29221231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29221232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29221233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29221234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29221235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29221236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29221237, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29221621, 'dashboard_result_id': 18131531, '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_P29221621_05-12-2025_11_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29221653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29221654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29221655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29221656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29221657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29221658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29221659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29221660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29221661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29221662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29221663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29221664, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29222059, 'dashboard_result_id': 18131532, '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_P29222059_05-12-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29222085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29222086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29222087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29222088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29222089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29222090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29222091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29222092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29222093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29222094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29222095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29222096, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29222717, 'dashboard_result_id': 18131533, '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_P29222717_05-12-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29222725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29222726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29222727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29222728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29222729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29222730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29222731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29222732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29222733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29222734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29222735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29222736, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29223196, 'dashboard_result_id': 18131534, '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_P29223196_05-12-2025_11_55_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29223250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29223251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29223252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29223253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29223254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29223255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29223256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29223257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29223258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29223259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29223260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29223261, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29224121, 'dashboard_result_id': 18131535, '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_P29224121_05-12-2025_12_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29224123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29224124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29224125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29224126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29224127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29224128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29224129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29224130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29224131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29224132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29224133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29224134, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29224416, 'dashboard_result_id': 18131536, '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_P29224416_05-12-2025_13_59_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29224420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29224422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29224423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29224424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29224425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29224426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29224427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29224428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29224429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29224430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29224431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29224432, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29225790, 'dashboard_result_id': 18131537, '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_P29225790_05-12-2025_14_02_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29225793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29225794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29225795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29225796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29225797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29225798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29225799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29225800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29225801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29225802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29225803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29225804, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29226115, 'dashboard_result_id': 18131538, '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_P29226115_05-12-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226128, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29226255, 'dashboard_result_id': 18131539, '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_P29226255_05-12-2025_14_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226270, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29226639, 'dashboard_result_id': 18131540, '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_P29226639_05-12-2025_14_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226659, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29227102, 'dashboard_result_id': 18131541, '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_P29227102_05-12-2025_15_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29227110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29227111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29227112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29227113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29227114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29227115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29227116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29227117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29227118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29227119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29227120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29227121, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29227474, 'dashboard_result_id': 18131542, '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_P29227474_05-12-2025_15_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29227506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29227507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29227508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29227509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29227510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29227511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29227512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29227513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29227514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29227515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29227516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29227517, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29228095, 'dashboard_result_id': 18131543, '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_P29228095_05-12-2025_15_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29228121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29228122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29228123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29228124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29228125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29228126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29228127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29228128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29228129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29228130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29228131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29228132, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29228704, 'dashboard_result_id': 18131544, '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_P29228704_05-12-2025_15_51_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29228708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29228709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29228710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29228711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29228712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29228713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29228714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29228715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29228716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29228717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29228718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29228719, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29229205, 'dashboard_result_id': 18131545, '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_P29229205_05-12-2025_16_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29229219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229230, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29229383, 'dashboard_result_id': 18131546, '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_P29229383_05-12-2025_16_34_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29229391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229397, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29229758, 'dashboard_result_id': 18131547, '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_P29229758_05-12-2025_16_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29229783, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29230295, 'dashboard_result_id': 18131548, '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_P29230295_05-12-2025_17_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29230303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29230304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29230305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29230306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29230307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29230308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29230309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29230310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29230311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29230312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29230313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29230314, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29230660, 'dashboard_result_id': 18131549, '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_P29230660_05-12-2025_17_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29230712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29230713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29230714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29230716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29230717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29230719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29230720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29230721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29230722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29230723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29230724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29230725, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29231281, 'dashboard_result_id': 18131550, '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_P29231281_05-12-2025_18_03_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29231290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29231291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29231292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29231293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29231294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29231295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29231296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29231297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29231298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29231299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29231300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29231301, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29231965, 'dashboard_result_id': 18131551, '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_P29231965_05-12-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29231970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29231971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29231972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29231973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29231974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29231975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29231976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29231977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29231978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29231979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29231980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29231981, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29232450, 'dashboard_result_id': 18131552, '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_P29232450_05-12-2025_18_35_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29232457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29232458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29232459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29232460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29232461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29232462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29232463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29232464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29232465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29232466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29232467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29232468, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29232848, 'dashboard_result_id': 18131553, '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_P29232848_05-12-2025_18_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29232865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29232866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29232867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29232868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29232869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29232870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29232871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29232872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29232873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29232874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29232875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29232876, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29233320, 'dashboard_result_id': 18131554, '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_P29233320_05-12-2025_19_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29233345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29233346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29233347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29233348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29233349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29233350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29233351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29233352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29233353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29233354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29233355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29233356, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2709240, 'mtr_portfolio_id': 29233782, 'dashboard_result_id': 18131555, '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_P29233782_05-12-2025_19_12_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29233805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29233806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29233807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29233808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29233809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29233810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29233811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29233812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29233813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29233814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29233815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29233816, '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 = 29203465 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': 4188928, 'mtr_portfolio_id': 29203465, 'created_at': datetime.datetime(2025, 12, 5, 6, 17, 29), 'result': '0.04162727865066344', 'result_long': None, 'result_double': None}] Qualite : 0.04162727865066344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29203465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29203465 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_P29203465_05-12-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}" where mtr_portfolio_id = 29203465 and dashboard_run_id = 2709240 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`=29203465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131500, 0.04162727865066344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, '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 = 29204100 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': 4188929, 'mtr_portfolio_id': 29204100, 'created_at': datetime.datetime(2025, 12, 5, 6, 18), 'result': '0.05331435605065557', 'result_long': None, 'result_double': None}] Qualite : 0.05331435605065557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204100 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_P29204100_05-12-2025_06_18_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}" where mtr_portfolio_id = 29204100 and dashboard_run_id = 2709240 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`=29204100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131501, 0.05331435605065557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_06_18_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, '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 = 29204816 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': 4188930, 'mtr_portfolio_id': 29204816, 'created_at': datetime.datetime(2025, 12, 5, 6, 18, 30), 'result': '0.05847204144220723', 'result_long': None, 'result_double': None}] Qualite : 0.05847204144220723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_06_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204816 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_P29204816_05-12-2025_06_18_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}" where mtr_portfolio_id = 29204816 and dashboard_run_id = 2709240 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`=29204816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131502, 0.05847204144220723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_06_18_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, '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 = 29205333 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': 4188931, 'mtr_portfolio_id': 29205333, 'created_at': datetime.datetime(2025, 12, 5, 6, 19, 30), 'result': '0.035921190619032206', 'result_long': None, 'result_double': None}] Qualite : 0.035921190619032206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29205333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_06_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29205333 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_P29205333_05-12-2025_06_19_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}" where mtr_portfolio_id = 29205333 and dashboard_run_id = 2709240 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`=29205333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131503, 0.035921190619032206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_06_19_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, '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 = 29206956 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': 4188932, 'mtr_portfolio_id': 29206956, 'created_at': datetime.datetime(2025, 12, 5, 6, 19, 56), 'result': '0.04228739308853769', 'result_long': None, 'result_double': None}] Qualite : 0.04228739308853769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29206956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29206956_05-12-2025_06_19_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29206956 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_P29206956_05-12-2025_06_19_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, 'pht': 3726}}" where mtr_portfolio_id = 29206956 and dashboard_run_id = 2709240 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`=29206956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131504, 0.04228739308853769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29206956_05-12-2025_06_19_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, '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 = 29207334 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': 4188933, 'mtr_portfolio_id': 29207334, 'created_at': datetime.datetime(2025, 12, 5, 6, 20, 29), 'result': '0.06305644086646897', 'result_long': None, 'result_double': None}] Qualite : 0.06305644086646897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29207334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29207334_05-12-2025_06_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29207334 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_P29207334_05-12-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, 'pht': 3726}}" where mtr_portfolio_id = 29207334 and dashboard_run_id = 2709240 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`=29207334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131505, 0.06305644086646897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29207334_05-12-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, '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 = 29208070 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': 4188934, 'mtr_portfolio_id': 29208070, 'created_at': datetime.datetime(2025, 12, 5, 6, 21, 11), 'result': '0.04075331212877451', 'result_long': None, 'result_double': None}] Qualite : 0.04075331212877451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208070_05-12-2025_06_21_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208070 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_P29208070_05-12-2025_06_21_13.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, 'pht': 3726}}" where mtr_portfolio_id = 29208070 and dashboard_run_id = 2709240 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`=29208070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131506, 0.04075331212877451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208070_05-12-2025_06_21_13.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, '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 = 29208366 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': 4188935, 'mtr_portfolio_id': 29208366, 'created_at': datetime.datetime(2025, 12, 5, 6, 21, 29), 'result': '0.05475994039809039', 'result_long': None, 'result_double': None}] Qualite : 0.05475994039809039 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208366_05-12-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208366 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_P29208366_05-12-2025_06_21_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, 'pht': 3726}}" where mtr_portfolio_id = 29208366 and dashboard_run_id = 2709240 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`=29208366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131507, 0.05475994039809039, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208366_05-12-2025_06_21_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, '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 = 29208840 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': 4188936, 'mtr_portfolio_id': 29208840, 'created_at': datetime.datetime(2025, 12, 5, 6, 22), 'result': '0.05769637689883249', 'result_long': None, 'result_double': None}] Qualite : 0.05769637689883249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208840_05-12-2025_06_22_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208840 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_P29208840_05-12-2025_06_22_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, 'pht': 3726}}" where mtr_portfolio_id = 29208840 and dashboard_run_id = 2709240 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`=29208840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131508, 0.05769637689883249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208840_05-12-2025_06_22_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, '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 = 29209184 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': 4188937, 'mtr_portfolio_id': 29209184, 'created_at': datetime.datetime(2025, 12, 5, 6, 22, 30), 'result': '0.05708886039130591', 'result_long': None, 'result_double': None}] Qualite : 0.05708886039130591 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29209184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209184_05-12-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29209184 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_P29209184_05-12-2025_06_22_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, 'pht': 3726}}" where mtr_portfolio_id = 29209184 and dashboard_run_id = 2709240 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`=29209184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131509, 0.05708886039130591, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209184_05-12-2025_06_22_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, '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 = 29209764 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': 4188938, 'mtr_portfolio_id': 29209764, 'created_at': datetime.datetime(2025, 12, 5, 6, 23, 28), 'result': '0.0494919339813673', 'result_long': None, 'result_double': None}] Qualite : 0.0494919339813673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29209764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209764_05-12-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29209764 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_P29209764_05-12-2025_06_23_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, 'pht': 3726}}" where mtr_portfolio_id = 29209764 and dashboard_run_id = 2709240 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`=29209764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131510, 0.0494919339813673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209764_05-12-2025_06_23_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, '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 = 29210458 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': 4188939, 'mtr_portfolio_id': 29210458, 'created_at': datetime.datetime(2025, 12, 5, 6, 23, 58), 'result': '0.06662475337127025', 'result_long': None, 'result_double': None}] Qualite : 0.06662475337127025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29210458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_06_24_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29210458 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_P29210458_05-12-2025_06_24_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, 'pht': 3726}}" where mtr_portfolio_id = 29210458 and dashboard_run_id = 2709240 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`=29210458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131511, 0.06662475337127025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_06_24_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, '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 = 29210916 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': 4188940, 'mtr_portfolio_id': 29210916, 'created_at': datetime.datetime(2025, 12, 5, 6, 24, 28), 'result': '0.0351450842060477', 'result_long': None, 'result_double': None}] Qualite : 0.0351450842060477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29210916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210916_05-12-2025_06_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29210916 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_P29210916_05-12-2025_06_24_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210953, 'pht': 3726}}" where mtr_portfolio_id = 29210916 and dashboard_run_id = 2709240 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`=29210916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131512, 0.0351450842060477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210916_05-12-2025_06_24_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210953, '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 = 29211325 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': 4188941, 'mtr_portfolio_id': 29211325, 'created_at': datetime.datetime(2025, 12, 5, 6, 25, 29), 'result': '0.04238186314275396', 'result_long': None, 'result_double': None}] Qualite : 0.04238186314275396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29211325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29211325_05-12-2025_06_25_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29211325 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_P29211325_05-12-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29211359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29211360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29211361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29211362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29211363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29211364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29211365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29211366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29211367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29211368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29211369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29211370, 'pht': 3726}}" where mtr_portfolio_id = 29211325 and dashboard_run_id = 2709240 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`=29211325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131513, 0.04238186314275396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29211325_05-12-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29211359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29211360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29211361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29211362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29211363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29211364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29211365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29211366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29211367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29211368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29211369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29211370, '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 = 29212030 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': 4188943, 'mtr_portfolio_id': 29212030, 'created_at': datetime.datetime(2025, 12, 5, 6, 25, 37), 'result': '0.03332196723256714', 'result_long': None, 'result_double': None}] Qualite : 0.03332196723256714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29212030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212030_05-12-2025_06_25_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29212030 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_P29212030_05-12-2025_06_25_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212047, 'pht': 3726}}" where mtr_portfolio_id = 29212030 and dashboard_run_id = 2709240 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`=29212030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131514, 0.03332196723256714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212030_05-12-2025_06_25_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212047, '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 = 29212489 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': 4188944, 'mtr_portfolio_id': 29212489, 'created_at': datetime.datetime(2025, 12, 5, 6, 25, 57), 'result': '0.05573124241582791', 'result_long': None, 'result_double': None}] Qualite : 0.05573124241582791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29212489 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212489_05-12-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29212489 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_P29212489_05-12-2025_06_26_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212506, 'pht': 3726}}" where mtr_portfolio_id = 29212489 and dashboard_run_id = 2709240 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`=29212489 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131515, 0.05573124241582791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212489_05-12-2025_06_26_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212506, '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 = 29212842 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': 4188845, 'mtr_portfolio_id': 29212842, 'created_at': datetime.datetime(2025, 12, 5, 5, 48, 59), 'result': '0.05904687917559597', 'result_long': None, 'result_double': None}] Qualite : 0.05904687917559597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29212842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212842_05-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29212842 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_P29212842_05-12-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212861, 'pht': 3726}}" where mtr_portfolio_id = 29212842 and dashboard_run_id = 2709240 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`=29212842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131516, 0.05904687917559597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212842_05-12-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212861, '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 = 29213320 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': 4189058, 'mtr_portfolio_id': 29213320, 'created_at': datetime.datetime(2025, 12, 5, 6, 3, 31), 'result': '0.04508121367357087', 'result_long': None, 'result_double': None}] Qualite : 0.04508121367357087 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29213320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213320_05-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29213320 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_P29213320_05-12-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213340, 'pht': 3726}}" where mtr_portfolio_id = 29213320 and dashboard_run_id = 2709240 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`=29213320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131517, 0.04508121367357087, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213320_05-12-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213340, '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 = 29213678 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': 4189121, 'mtr_portfolio_id': 29213678, 'created_at': datetime.datetime(2025, 12, 5, 6, 17, 31), 'result': '0.0442755869341299', 'result_long': None, 'result_double': None}] Qualite : 0.0442755869341299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29213678 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213678_05-12-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29213678 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_P29213678_05-12-2025_06_17_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213697, 'pht': 3726}}" where mtr_portfolio_id = 29213678 and dashboard_run_id = 2709240 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`=29213678 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131518, 0.0442755869341299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213678_05-12-2025_06_17_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213697, '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 = 29214234 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': 4189178, 'mtr_portfolio_id': 29214234, 'created_at': datetime.datetime(2025, 12, 5, 6, 32, 59), 'result': '0.03276260973379292', 'result_long': None, 'result_double': None}] Qualite : 0.03276260973379292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29214234 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29214234_05-12-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29214234 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_P29214234_05-12-2025_06_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29214238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29214239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29214240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29214241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29214242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29214244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29214245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29214246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29214247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29214248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29214249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29214250, 'pht': 3726}}" where mtr_portfolio_id = 29214234 and dashboard_run_id = 2709240 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`=29214234 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131519, 0.03276260973379292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29214234_05-12-2025_06_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29214238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29214239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29214240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29214241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29214242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29214244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29214245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29214246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29214247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29214248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29214249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29214250, '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 = 29214654 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': 4189251, 'mtr_portfolio_id': 29214654, 'created_at': datetime.datetime(2025, 12, 5, 6, 47), 'result': '0.05192935986658809', 'result_long': None, 'result_double': None}] Qualite : 0.05192935986658809 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29214654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29214654_05-12-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29214654 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_P29214654_05-12-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29214680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29214681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29214682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29214683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29214684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29214685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29214686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29214687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29214688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29214689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29214690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29214691, 'pht': 3726}}" where mtr_portfolio_id = 29214654 and dashboard_run_id = 2709240 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`=29214654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131520, 0.05192935986658809, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29214654_05-12-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29214680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29214681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29214682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29214683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29214684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29214685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29214686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29214687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29214688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29214689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29214690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29214691, '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 = 29215120 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': 4189296, 'mtr_portfolio_id': 29215120, 'created_at': datetime.datetime(2025, 12, 5, 7, 2, 58), 'result': '0.03624109927624397', 'result_long': None, 'result_double': None}] Qualite : 0.03624109927624397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29215120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29215120_05-12-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29215120 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_P29215120_05-12-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29215127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29215128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29215130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29215131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29215132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29215133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29215134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29215135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29215136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29215137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29215138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29215139, 'pht': 3726}}" where mtr_portfolio_id = 29215120 and dashboard_run_id = 2709240 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`=29215120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131521, 0.03624109927624397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29215120_05-12-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29215127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29215128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29215130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29215131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29215132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29215133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29215134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29215135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29215136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29215137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29215138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29215139, '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 = 29215447 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': 4189375, 'mtr_portfolio_id': 29215447, 'created_at': datetime.datetime(2025, 12, 5, 7, 19, 59), 'result': '0.054316446467476714', 'result_long': None, 'result_double': None}] Qualite : 0.054316446467476714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29215447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29215447_05-12-2025_07_19_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29215447 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_P29215447_05-12-2025_07_19_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29215500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29215501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29215502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29215503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29215504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29215505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29215506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29215507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29215508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29215509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29215510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29215511, 'pht': 3726}}" where mtr_portfolio_id = 29215447 and dashboard_run_id = 2709240 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`=29215447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131522, 0.054316446467476714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29215447_05-12-2025_07_19_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29215500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29215501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29215502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29215503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29215504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29215505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29215506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29215507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29215508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29215509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29215510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29215511, '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 = 29216195 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': 4189457, 'mtr_portfolio_id': 29216195, 'created_at': datetime.datetime(2025, 12, 5, 7, 36, 9), 'result': '0.03346538664508966', 'result_long': None, 'result_double': None}] Qualite : 0.03346538664508966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29216195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29216195_05-12-2025_07_36_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29216195 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_P29216195_05-12-2025_07_36_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29216245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29216246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29216247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29216248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29216249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29216250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29216251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29216252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29216253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29216254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29216255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29216256, 'pht': 3726}}" where mtr_portfolio_id = 29216195 and dashboard_run_id = 2709240 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`=29216195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131523, 0.03346538664508966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29216195_05-12-2025_07_36_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29216245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29216246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29216247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29216248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29216249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29216250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29216251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29216252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29216253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29216254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29216255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29216256, '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 = 29216741 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': 4189522, 'mtr_portfolio_id': 29216741, 'created_at': datetime.datetime(2025, 12, 5, 7, 51, 8), 'result': '0.03606946512422875', 'result_long': None, 'result_double': None}] Qualite : 0.03606946512422875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29216741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29216741_05-12-2025_07_51_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29216741 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_P29216741_05-12-2025_07_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29216755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29216756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29216757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29216758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29216759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29216760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29216761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29216762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29216763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29216764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29216765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29216766, 'pht': 3726}}" where mtr_portfolio_id = 29216741 and dashboard_run_id = 2709240 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`=29216741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131524, 0.03606946512422875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29216741_05-12-2025_07_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29216755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29216756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29216757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29216758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29216759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29216760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29216761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29216762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29216763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29216764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29216765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29216766, '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 = 29217226 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': 4189601, 'mtr_portfolio_id': 29217226, 'created_at': datetime.datetime(2025, 12, 5, 8, 4, 30), 'result': '0.03863221316622605', 'result_long': None, 'result_double': None}] Qualite : 0.03863221316622605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29217226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29217226_05-12-2025_08_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29217226 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_P29217226_05-12-2025_08_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29217231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29217232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29217233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29217234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29217235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29217236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29217237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29217238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29217239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29217240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29217241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29217242, 'pht': 3726}}" where mtr_portfolio_id = 29217226 and dashboard_run_id = 2709240 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`=29217226 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131525, 0.03863221316622605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29217226_05-12-2025_08_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29217231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29217232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29217233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29217234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29217235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29217236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29217237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29217238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29217239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29217240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29217241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29217242, '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 = 29219689 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': 4189912, 'mtr_portfolio_id': 29219689, 'created_at': datetime.datetime(2025, 12, 5, 9, 47, 2), 'result': '0.052716618413270605', 'result_long': None, 'result_double': None}] Qualite : 0.052716618413270605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29219689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29219689_05-12-2025_09_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29219689 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_P29219689_05-12-2025_09_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29219708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29219709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29219711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29219712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29219714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29219715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29219717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29219718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29219719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29219720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29219721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29219722, 'pht': 3726}}" where mtr_portfolio_id = 29219689 and dashboard_run_id = 2709240 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`=29219689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131526, 0.052716618413270605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29219689_05-12-2025_09_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29219708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29219709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29219711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29219712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29219714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29219715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29219717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29219718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29219719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29219720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29219721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29219722, '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 = 29220015 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': 4189947, 'mtr_portfolio_id': 29220015, 'created_at': datetime.datetime(2025, 12, 5, 10, 9), 'result': '0.046736415310659966', 'result_long': None, 'result_double': None}] Qualite : 0.046736415310659966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29220015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29220015_05-12-2025_10_09_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29220015 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_P29220015_05-12-2025_10_09_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220054, 'pht': 3726}}" where mtr_portfolio_id = 29220015 and dashboard_run_id = 2709240 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`=29220015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131527, 0.046736415310659966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29220015_05-12-2025_10_09_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220054, '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 = 29220555 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': 4190025, 'mtr_portfolio_id': 29220555, 'created_at': datetime.datetime(2025, 12, 5, 10, 19, 32), 'result': '0.03350124438725153', 'result_long': None, 'result_double': None}] Qualite : 0.03350124438725153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29220555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29220555_05-12-2025_10_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29220555 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_P29220555_05-12-2025_10_19_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220568, 'pht': 3726}}" where mtr_portfolio_id = 29220555 and dashboard_run_id = 2709240 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`=29220555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131528, 0.03350124438725153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29220555_05-12-2025_10_19_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220568, '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 = 29220780 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': 4190056, 'mtr_portfolio_id': 29220780, 'created_at': datetime.datetime(2025, 12, 5, 10, 32, 59), 'result': '0.04369096540436648', 'result_long': None, 'result_double': None}] Qualite : 0.04369096540436648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29220780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29220780_05-12-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29220780 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_P29220780_05-12-2025_10_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220813, 'pht': 3726}}" where mtr_portfolio_id = 29220780 and dashboard_run_id = 2709240 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`=29220780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131529, 0.04369096540436648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29220780_05-12-2025_10_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29220802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29220803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29220804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29220805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29220806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29220807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29220808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29220809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29220810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29220811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29220812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29220813, '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 = 29221214 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': 4190119, 'mtr_portfolio_id': 29221214, 'created_at': datetime.datetime(2025, 12, 5, 10, 46, 58), 'result': '0.049813586246046974', 'result_long': None, 'result_double': None}] Qualite : 0.049813586246046974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29221214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29221214_05-12-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29221214 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_P29221214_05-12-2025_10_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29221226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29221227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29221228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29221229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29221230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29221231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29221232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29221233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29221234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29221235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29221236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29221237, 'pht': 3726}}" where mtr_portfolio_id = 29221214 and dashboard_run_id = 2709240 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`=29221214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131530, 0.049813586246046974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29221214_05-12-2025_10_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29221226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29221227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29221228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29221229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29221230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29221231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29221232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29221233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29221234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29221235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29221236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29221237, '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 = 29221621 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': 4190195, 'mtr_portfolio_id': 29221621, 'created_at': datetime.datetime(2025, 12, 5, 11, 2, 59), 'result': '0.033425605310982', 'result_long': None, 'result_double': None}] Qualite : 0.033425605310982 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29221621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29221621_05-12-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29221621 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_P29221621_05-12-2025_11_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29221653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29221654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29221655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29221656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29221657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29221658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29221659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29221660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29221661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29221662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29221663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29221664, 'pht': 3726}}" where mtr_portfolio_id = 29221621 and dashboard_run_id = 2709240 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`=29221621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131531, 0.033425605310982, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29221621_05-12-2025_11_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29221653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29221654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29221655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29221656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29221657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29221658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29221659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29221660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29221661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29221662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29221663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29221664, '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 = 29222059 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': 4190278, 'mtr_portfolio_id': 29222059, 'created_at': datetime.datetime(2025, 12, 5, 11, 16, 59), 'result': '0.046084566495253165', 'result_long': None, 'result_double': None}] Qualite : 0.046084566495253165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29222059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29222059_05-12-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29222059 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_P29222059_05-12-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29222085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29222086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29222087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29222088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29222089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29222090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29222091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29222092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29222093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29222094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29222095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29222096, 'pht': 3726}}" where mtr_portfolio_id = 29222059 and dashboard_run_id = 2709240 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`=29222059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131532, 0.046084566495253165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29222059_05-12-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29222085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29222086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29222087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29222088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29222089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29222090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29222091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29222092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29222093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29222094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29222095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29222096, '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 = 29222717 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': 4190334, 'mtr_portfolio_id': 29222717, 'created_at': datetime.datetime(2025, 12, 5, 11, 32, 59), 'result': '0.04967486605930768', 'result_long': None, 'result_double': None}] Qualite : 0.04967486605930768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29222717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29222717_05-12-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29222717 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_P29222717_05-12-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29222725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29222726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29222727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29222728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29222729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29222730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29222731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29222732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29222733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29222734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29222735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29222736, 'pht': 3726}}" where mtr_portfolio_id = 29222717 and dashboard_run_id = 2709240 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`=29222717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131533, 0.04967486605930768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29222717_05-12-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29222725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29222726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29222727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29222728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29222729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29222730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29222731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29222732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29222733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29222734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29222735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29222736, '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 = 29223196 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': 4190414, 'mtr_portfolio_id': 29223196, 'created_at': datetime.datetime(2025, 12, 5, 11, 54, 59), 'result': '0.0679170827439686', 'result_long': None, 'result_double': None}] Qualite : 0.0679170827439686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29223196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29223196_05-12-2025_11_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29223196 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_P29223196_05-12-2025_11_55_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29223250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29223251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29223252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29223253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29223254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29223255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29223256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29223257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29223258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29223259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29223260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29223261, 'pht': 3726}}" where mtr_portfolio_id = 29223196 and dashboard_run_id = 2709240 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`=29223196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131534, 0.0679170827439686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29223196_05-12-2025_11_55_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29223250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29223251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29223252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29223253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29223254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29223255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29223256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29223257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29223258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29223259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29223260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29223261, '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 = 29224121 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': 4190526, 'mtr_portfolio_id': 29224121, 'created_at': datetime.datetime(2025, 12, 5, 12, 2, 30), 'result': '0.049006078150892356', 'result_long': None, 'result_double': None}] Qualite : 0.049006078150892356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29224121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29224121_05-12-2025_12_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29224121 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_P29224121_05-12-2025_12_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29224123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29224124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29224125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29224126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29224127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29224128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29224129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29224130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29224131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29224132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29224133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29224134, 'pht': 3726}}" where mtr_portfolio_id = 29224121 and dashboard_run_id = 2709240 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`=29224121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131535, 0.049006078150892356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29224121_05-12-2025_12_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29224123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29224124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29224125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29224126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29224127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29224128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29224129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29224130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29224131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29224132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29224133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29224134, '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 = 29224416 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': 4190560, 'mtr_portfolio_id': 29224416, 'created_at': datetime.datetime(2025, 12, 5, 13, 59, 59), 'result': '0.0555001238648325', 'result_long': None, 'result_double': None}] Qualite : 0.0555001238648325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29224416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29224416_05-12-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29224416 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_P29224416_05-12-2025_13_59_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29224420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29224422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29224423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29224424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29224425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29224426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29224427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29224428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29224429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29224430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29224431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29224432, 'pht': 3726}}" where mtr_portfolio_id = 29224416 and dashboard_run_id = 2709240 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`=29224416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131536, 0.0555001238648325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29224416_05-12-2025_13_59_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29224420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29224422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29224423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29224424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29224425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29224426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29224427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29224428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29224429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29224430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29224431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29224432, '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 = 29225790 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': 4190768, 'mtr_portfolio_id': 29225790, 'created_at': datetime.datetime(2025, 12, 5, 14, 2, 29), 'result': '0.06501291807078365', 'result_long': None, 'result_double': None}] Qualite : 0.06501291807078365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29225790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29225790_05-12-2025_14_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29225790 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_P29225790_05-12-2025_14_02_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29225793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29225794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29225795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29225796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29225797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29225798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29225799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29225800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29225801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29225802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29225803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29225804, 'pht': 3726}}" where mtr_portfolio_id = 29225790 and dashboard_run_id = 2709240 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`=29225790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131537, 0.06501291807078365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29225790_05-12-2025_14_02_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29225793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29225794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29225795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29225796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29225797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29225798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29225799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29225800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29225801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29225802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29225803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29225804, '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 = 29226115 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': 4190822, 'mtr_portfolio_id': 29226115, 'created_at': datetime.datetime(2025, 12, 5, 14, 16, 59), 'result': '0.07570999756504158', 'result_long': None, 'result_double': None}] Qualite : 0.07570999756504158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29226115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29226115_05-12-2025_14_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29226115 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_P29226115_05-12-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226128, 'pht': 3726}}" where mtr_portfolio_id = 29226115 and dashboard_run_id = 2709240 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`=29226115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131538, 0.07570999756504158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29226115_05-12-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226128, '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 = 29226255 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': 4190832, 'mtr_portfolio_id': 29226255, 'created_at': datetime.datetime(2025, 12, 5, 14, 33), 'result': '0.049370408657460535', 'result_long': None, 'result_double': None}] Qualite : 0.049370408657460535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29226255 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29226255_05-12-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29226255 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_P29226255_05-12-2025_14_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226270, 'pht': 3726}}" where mtr_portfolio_id = 29226255 and dashboard_run_id = 2709240 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`=29226255 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131539, 0.049370408657460535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29226255_05-12-2025_14_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226270, '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 = 29226639 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': 4190889, 'mtr_portfolio_id': 29226639, 'created_at': datetime.datetime(2025, 12, 5, 14, 48, 57), 'result': '0.057399970629323414', 'result_long': None, 'result_double': None}] Qualite : 0.057399970629323414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29226639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29226639_05-12-2025_14_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29226639 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_P29226639_05-12-2025_14_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226659, 'pht': 3726}}" where mtr_portfolio_id = 29226639 and dashboard_run_id = 2709240 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`=29226639 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131540, 0.057399970629323414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29226639_05-12-2025_14_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29226648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29226649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29226650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29226651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29226652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29226653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29226654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29226655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29226656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29226657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29226658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29226659, '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 = 29227102 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': 4190961, 'mtr_portfolio_id': 29227102, 'created_at': datetime.datetime(2025, 12, 5, 15, 4, 59), 'result': '0.0609662418281561', 'result_long': None, 'result_double': None}] Qualite : 0.0609662418281561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29227102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29227102_05-12-2025_15_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29227102 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_P29227102_05-12-2025_15_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29227110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29227111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29227112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29227113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29227114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29227115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29227116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29227117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29227118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29227119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29227120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29227121, 'pht': 3726}}" where mtr_portfolio_id = 29227102 and dashboard_run_id = 2709240 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`=29227102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131541, 0.0609662418281561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29227102_05-12-2025_15_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29227110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29227111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29227112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29227113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29227114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29227115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29227116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29227117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29227118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29227119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29227120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29227121, '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 = 29227474 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': 4191041, 'mtr_portfolio_id': 29227474, 'created_at': datetime.datetime(2025, 12, 5, 15, 18, 57), 'result': '0.03943726262312119', 'result_long': None, 'result_double': None}] Qualite : 0.03943726262312119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29227474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29227474_05-12-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29227474 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_P29227474_05-12-2025_15_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29227506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29227507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29227508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29227509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29227510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29227511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29227512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29227513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29227514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29227515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29227516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29227517, 'pht': 3726}}" where mtr_portfolio_id = 29227474 and dashboard_run_id = 2709240 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`=29227474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131542, 0.03943726262312119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29227474_05-12-2025_15_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29227506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29227507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29227508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29227509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29227510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29227511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29227512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29227513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29227514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29227515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29227516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29227517, '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 = 29228095 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': 4191109, 'mtr_portfolio_id': 29228095, 'created_at': datetime.datetime(2025, 12, 5, 15, 35), 'result': '0.043121215843922985', 'result_long': None, 'result_double': None}] Qualite : 0.043121215843922985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29228095 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29228095_05-12-2025_15_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29228095 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_P29228095_05-12-2025_15_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29228121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29228122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29228123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29228124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29228125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29228126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29228127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29228128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29228129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29228130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29228131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29228132, 'pht': 3726}}" where mtr_portfolio_id = 29228095 and dashboard_run_id = 2709240 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`=29228095 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131543, 0.043121215843922985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29228095_05-12-2025_15_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29228121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29228122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29228123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29228124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29228125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29228126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29228127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29228128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29228129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29228130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29228131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29228132, '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 = 29228704 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': 4191180, 'mtr_portfolio_id': 29228704, 'created_at': datetime.datetime(2025, 12, 5, 15, 51), 'result': '0.043936576837816425', 'result_long': None, 'result_double': None}] Qualite : 0.043936576837816425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29228704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29228704_05-12-2025_15_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29228704 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_P29228704_05-12-2025_15_51_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29228708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29228709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29228710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29228711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29228712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29228713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29228714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29228715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29228716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29228717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29228718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29228719, 'pht': 3726}}" where mtr_portfolio_id = 29228704 and dashboard_run_id = 2709240 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`=29228704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131544, 0.043936576837816425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29228704_05-12-2025_15_51_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29228708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29228709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29228710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29228711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29228712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29228713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29228714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29228715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29228716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29228717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29228718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29228719, '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 = 29229205 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': 4191285, 'mtr_portfolio_id': 29229205, 'created_at': datetime.datetime(2025, 12, 5, 16, 16, 57), 'result': '0.05949983489204176', 'result_long': None, 'result_double': None}] Qualite : 0.05949983489204176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29229205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29229205_05-12-2025_16_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29229205 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_P29229205_05-12-2025_16_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29229219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229230, 'pht': 3726}}" where mtr_portfolio_id = 29229205 and dashboard_run_id = 2709240 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`=29229205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131545, 0.05949983489204176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29229205_05-12-2025_16_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29229219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229230, '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 = 29229383 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': 4191300, 'mtr_portfolio_id': 29229383, 'created_at': datetime.datetime(2025, 12, 5, 16, 34, 57), 'result': '0.04063701054865339', 'result_long': None, 'result_double': None}] Qualite : 0.04063701054865339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29229383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29229383_05-12-2025_16_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29229383 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_P29229383_05-12-2025_16_34_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29229391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229397, 'pht': 3726}}" where mtr_portfolio_id = 29229383 and dashboard_run_id = 2709240 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`=29229383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131546, 0.04063701054865339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29229383_05-12-2025_16_34_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29229391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229397, '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 = 29229758 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': 4191348, 'mtr_portfolio_id': 29229758, 'created_at': datetime.datetime(2025, 12, 5, 16, 48, 57), 'result': '0.05421907449748442', 'result_long': None, 'result_double': None}] Qualite : 0.05421907449748442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29229758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29229758_05-12-2025_16_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29229758 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_P29229758_05-12-2025_16_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29229783, 'pht': 3726}}" where mtr_portfolio_id = 29229758 and dashboard_run_id = 2709240 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`=29229758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131547, 0.05421907449748442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29229758_05-12-2025_16_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29229772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29229773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29229774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29229775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29229776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29229777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29229778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29229779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29229780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29229781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29229782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29229783, '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 = 29230295 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': 4191426, 'mtr_portfolio_id': 29230295, 'created_at': datetime.datetime(2025, 12, 5, 17, 5), 'result': '0.032144452708739245', 'result_long': None, 'result_double': None}] Qualite : 0.032144452708739245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29230295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29230295_05-12-2025_17_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29230295 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_P29230295_05-12-2025_17_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29230303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29230304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29230305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29230306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29230307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29230308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29230309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29230310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29230311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29230312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29230313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29230314, 'pht': 3726}}" where mtr_portfolio_id = 29230295 and dashboard_run_id = 2709240 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`=29230295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131548, 0.032144452708739245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29230295_05-12-2025_17_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29230303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29230304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29230305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29230306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29230307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29230308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29230309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29230310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29230311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29230312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29230313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29230314, '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 = 29230660 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': 4191499, 'mtr_portfolio_id': 29230660, 'created_at': datetime.datetime(2025, 12, 5, 17, 16, 59), 'result': '0.05578250062637079', 'result_long': None, 'result_double': None}] Qualite : 0.05578250062637079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29230660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29230660_05-12-2025_17_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29230660 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_P29230660_05-12-2025_17_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29230712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29230713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29230714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29230716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29230717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29230719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29230720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29230721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29230722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29230723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29230724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29230725, 'pht': 3726}}" where mtr_portfolio_id = 29230660 and dashboard_run_id = 2709240 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`=29230660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131549, 0.05578250062637079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29230660_05-12-2025_17_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29230712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29230713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29230714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29230716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29230717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29230719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29230720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29230721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29230722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29230723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29230724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29230725, '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 = 29231281 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': 4191569, 'mtr_portfolio_id': 29231281, 'created_at': datetime.datetime(2025, 12, 5, 18, 3, 32), 'result': '0.05280611243118491', 'result_long': None, 'result_double': None}] Qualite : 0.05280611243118491 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29231281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29231281_05-12-2025_18_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29231281 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_P29231281_05-12-2025_18_03_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29231290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29231291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29231292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29231293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29231294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29231295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29231296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29231297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29231298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29231299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29231300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29231301, 'pht': 3726}}" where mtr_portfolio_id = 29231281 and dashboard_run_id = 2709240 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`=29231281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131550, 0.05280611243118491, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29231281_05-12-2025_18_03_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29231290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29231291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29231292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29231293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29231294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29231295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29231296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29231297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29231298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29231299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29231300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29231301, '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 = 29231965 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': 4191689, 'mtr_portfolio_id': 29231965, 'created_at': datetime.datetime(2025, 12, 5, 18, 18, 59), 'result': '0.04953997118753669', 'result_long': None, 'result_double': None}] Qualite : 0.04953997118753669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29231965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29231965_05-12-2025_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29231965 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_P29231965_05-12-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29231970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29231971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29231972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29231973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29231974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29231975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29231976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29231977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29231978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29231979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29231980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29231981, 'pht': 3726}}" where mtr_portfolio_id = 29231965 and dashboard_run_id = 2709240 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`=29231965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131551, 0.04953997118753669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29231965_05-12-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29231970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29231971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29231972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29231973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29231974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29231975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29231976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29231977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29231978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29231979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29231980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29231981, '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 = 29232450 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': 4191742, 'mtr_portfolio_id': 29232450, 'created_at': datetime.datetime(2025, 12, 5, 18, 34, 59), 'result': '0.04005488198369852', 'result_long': None, 'result_double': None}] Qualite : 0.04005488198369852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29232450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29232450_05-12-2025_18_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29232450 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_P29232450_05-12-2025_18_35_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29232457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29232458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29232459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29232460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29232461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29232462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29232463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29232464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29232465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29232466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29232467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29232468, 'pht': 3726}}" where mtr_portfolio_id = 29232450 and dashboard_run_id = 2709238 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`=29232450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131552, 0.04005488198369852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29232450_05-12-2025_18_35_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29232457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29232458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29232459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29232460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29232461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29232462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29232463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29232464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29232465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29232466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29232467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29232468, '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 = 29232848 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': 4191815, 'mtr_portfolio_id': 29232848, 'created_at': datetime.datetime(2025, 12, 5, 18, 49), 'result': '0.043311202374321456', 'result_long': None, 'result_double': None}] Qualite : 0.043311202374321456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29232848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29232848_05-12-2025_18_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29232848 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_P29232848_05-12-2025_18_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29232865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29232866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29232867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29232868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29232869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29232870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29232871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29232872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29232873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29232874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29232875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29232876, 'pht': 3726}}" where mtr_portfolio_id = 29232848 and dashboard_run_id = 2709238 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`=29232848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131553, 0.043311202374321456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29232848_05-12-2025_18_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29232865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29232866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29232867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29232868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29232869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29232870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29232871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29232872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29232873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29232874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29232875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29232876, '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 = 29233320 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': 4191889, 'mtr_portfolio_id': 29233320, 'created_at': datetime.datetime(2025, 12, 5, 19, 2, 58), 'result': '0.0485168551926498', 'result_long': None, 'result_double': None}] Qualite : 0.0485168551926498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29233320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29233320_05-12-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29233320 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_P29233320_05-12-2025_19_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29233345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29233346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29233347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29233348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29233349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29233350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29233351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29233352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29233353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29233354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29233355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29233356, 'pht': 3726}}" where mtr_portfolio_id = 29233320 and dashboard_run_id = 2709238 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`=29233320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131554, 0.0485168551926498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29233320_05-12-2025_19_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29233345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29233346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29233347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29233348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29233349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29233350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29233351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29233352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29233353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29233354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29233355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29233356, '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 = 29233782 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': 4191959, 'mtr_portfolio_id': 29233782, 'created_at': datetime.datetime(2025, 12, 5, 19, 15, 1), 'result': '0.053562431710041276', 'result_long': None, 'result_double': None}] Qualite : 0.053562431710041276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29233782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29233782_05-12-2025_19_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29233782 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_P29233782_05-12-2025_19_15_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29233805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29233806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29233807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29233808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29233809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29233810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29233811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29233812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29233813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29233814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29233815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29233816, 'pht': 3726}}" where mtr_portfolio_id = 29233782 and dashboard_run_id = 2709238 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`=29233782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18131555, 0.053562431710041276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29233782_05-12-2025_19_15_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29233805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29233806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29233807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29233808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29233809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29233810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29233811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29233812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29233813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29233814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29233815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29233816, '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 (29203465,29204100,29204816,29205333,29206956,29207334,29208070,29208366,29208840,29209184,29209764,29210458,29210916,29211325,29212030,29212489,29212842,29213320,29213678,29214234,29214654,29215120,29215447,29216195,29216741,29217226,29219689,29220015,29220555,29220780,29221214,29221621,29222059,29222717,29223196,29224121,29224416,29225790,29226115,29226255,29226639,29227102,29227474,29228095,29228704,29229205,29229383,29229758,29230295,29230660,29231281,29231965,29232450,29232848,29233320,29233782) result : ((1397959937,), (1397959974,), (1397960021,), (1397960092,), (1397960481,), (1397960521,), (1397960553,), (1397960586,), (1397961101,), (1397961167,), (1397961232,), (1397962113,), (1397962192,), (1397962286,), (1397962376,), (1397962475,), (1397963967,), (1397964076,), (1397964165,), (1397964258,), (1397964358,), (1397964394,), (1397964744,), (1397964772,), (1397964812,), (1397964911,), (1397965998,), (1397966063,), (1397966185,), (1397966241,), (1397966925,), (1397966997,), (1397967080,), (1397967152,), (1397967591,), (1397967627,), (1397967667,), (1397967701,), (1397967707,), (1397967711,), (1397967726,), (1397967764,), (1397967950,), (1397967985,), (1397968021,), (1397968057,), (1397968512,), (1397968551,), (1397968590,), (1397969197,), (1397969245,), (1397969714,), (1397969748,), (1397970267,), (1397970299,), (1397970332,), (1397970910,), (1397970769,), (1397970805,), (1397970839,), (1397970875,), (1397971205,), (1397971206,), (1397971207,), (1397971282,), (1397971370,), (1397971408,), (1397971730,), (1397971776,), (1397971886,), (1397972014,), (1397972851,), (1397972853,), (1397972855,), (1397972857,), (1397972860,), (1397972861,), (1397973076,), (1397973078,), (1397973177,), (1397973179,), (1397973184,), (1397973288,), (1397973336,), (1397973357,), (1397973445,), (1397973531,), (1397973629,), (1397973718,), (1397973811,), (1397973900,), (1397974284,), (1397974319,), (1397974652,), (1397974654,), (1397974656,), (1397974658,), (1397975085,), (1397975094,), (1397975117,), (1397975118,), (1397975156,), (1397975158,), (1397975169,), (1397975171,), (1397975173,), (1397975269,), (1397975304,), (1397975311,), (1397975312,), (1397975343,), (1397975358,), (1397975552,), (1397975556,), (1397975558,), (1397975560,), (1397975563,), (1397975727,), (1397975730,), (1397975731,), (1397975732,), (1397975876,), (1397975904,), (1397975917,), (1397975920,), (1397975944,), (1397975950,), (1397975954,), (1397975955,), (1397975959,), (1397975965,), (1397977062,), (1397977576,), (1397977577,), (1397977578,), (1397977644,), (1397977676,), (1397977678,), (1397977881,), (1397977882,), (1397977042,), (1397977044,), (1397977046,), (1397977048,), (1397977049,), (1397977157,), (1397977177,), (1397977207,), (1397977311,), (1397977453,), (1397977557,), (1397977759,), (1397977760,), (1397977762,), (1397977763,), (1397977770,), (1397977772,), (1397977774,), (1397977775,), (1397977812,), (1397977815,), (1397978023,), (1397978061,), (1397978096,), (1397978133,), (1397978293,), (1397978298,), (1397978304,), (1397978332,), (1397978337,), (1397978370,), (1397978373,), (1397978375,), (1397978377,), (1397978379,), (1397978388,), (1397978390,), (1397978391,), (1397978392,), (1397978394,), (1397978396,), (1397978410,), (1397978412,), (1397978414,), (1397978416,), (1397978419,), (1397978422,), (1397978650,), (1397978709,), (1397978748,), (1397978763,), (1397978766,), (1397978771,), (1397978837,), (1397978838,), (1397978839,), (1397978847,), (1397978909,), (1397978927,), (1397978963,), (1397978986,), (1397979067,), (1397979167,), (1397979882,), (1397979991,), (1397980105,), (1397980152,), (1397980399,), (1397980401,), (1397980442,), (1397980898,), (1397980899,), (1397980900,), (1397980964,), (1397981145,), (1397981151,), (1397981166,), (1397981211,), (1397981213,), (1397981215,), (1397981217,), (1397981221,), (1397981224,), (1397981261,), (1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,), (1397994026,), (1397995481,), (1397995607,), (1397997021,), (1397997055,), (1397997171,), (1397997207,), (1397997458,), (1397997506,), (1397997519,), (1397997521,), (1397997575,), (1397997577,), (1397997579,), (1397997581,), (1397997583,), (1397997600,), (1397997601,), (1397997602,), (1397997604,), (1397997606,), (1397997609,), (1397997618,), (1397997619,), (1397997621,), (1397997624,), (1397997636,), (1397997893,), (1397997924,), (1397997955,), (1397998338,), (1397998369,), (1397998396,), (1397998428,), (1397998461,), (1397998613,), (1397998614,), (1397998616,), (1397998618,), (1397998620,), (1397999140,), (1397999257,), (1397999392,), (1398000453,), (1398000383,), (1398001243,), (1398001374,), (1398001428,), (1398001466,), (1398001504,), (1398001542,), (1398001919,), (1398001921,), (1398001922,), (1398001923,), (1398001925,), (1398001927,), (1398002172,), (1398002196,), (1398002215,), (1398002219,), (1398002249,), (1398002263,), (1398002280,), (1398002282,), (1398002284,), (1398002286,), (1398002289,), (1398002291,), (1398002295,), (1398002297,), (1398002298,), (1398002300,), (1398002302,), (1398002304,), (1398002309,), (1398002312,), (1398002315,), (1398002320,), (1398002324,), (1398002327,), (1398002334,), (1398002335,), (1398002337,), (1398002339,), (1398002342,), (1398002352,), (1398002354,), (1398002356,), (1398002390,), (1398002391,), (1398002393,), (1398002395,), (1398002398,), (1398002406,), (1398002407,), (1398002409,), (1398002411,), (1398002447,), (1398002448,), (1398002449,), (1398002462,), (1398002912,), (1398002908,), (1398002910,), (1398002911,), (1398002926,), (1398002928,), (1398002947,), (1398002948,), (1398002963,), (1398002964,), (1398002979,), (1398002980,), (1398003849,), (1398003867,), (1398003868,), (1398003895,), (1398003928,), (1398005177,), (1398005212,), (1398005247,), (1398005348,), (1398005390,), (1398005421,), (1398005454,), (1398005489,), (1398005665,), (1398005673,), (1398005675,), (1398005679,), (1398005785,), (1398005787,), (1398005789,), (1398005803,), (1398005804,), (1398005805,), (1398005806,), (1398005832,), (1398005833,), (1398005834,), (1398005836,), (1398005839,), (1398005841,), (1398005849,), (1398005851,), (1398005853,), (1398005868,), (1398005855,), (1398005857,), (1398005859,), (1398005862,), (1398005865,), (1398005884,), (1398005886,), (1398005887,), (1398005888,), (1398005891,), (1398005904,), (1398005905,), (1398005906,), (1398005931,), (1398005932,), (1398005934,), (1398005936,), (1398005939,), (1398005942,), (1398005950,), (1398005952,), (1398005954,), (1398005956,), (1398005959,), (1398005961,), (1398005980,), (1398005981,), (1398005982,), (1398005983,), (1398005996,), (1398005997,), (1398005999,), (1398006001,), (1398006005,), (1398006036,), (1398006038,), (1398006039,), (1398006040,), (1398006042,), (1398006044,), (1398006059,), (1398006061,), (1398006062,), (1398006064,), (1398006066,), (1398006068,), (1398006086,), (1398006088,), (1398006091,), (1398006094,), (1398006097,), (1398006100,), (1398006103,), (1398006104,), (1398006105,), (1398006107,), (1398006108,), (1398006109,), (1398006113,), (1398006115,), (1398006117,), (1398006119,), (1398006128,), (1398006134,), (1398006139,), (1398006141,), (1398006142,), (1398006145,), (1398006147,), (1398006149,), (1398006159,), (1398006160,), (1398006161,), (1398006185,), (1398006189,), (1398006191,), (1398006194,), (1398006206,), (1398006207,), (1398006209,), (1398006238,), (1398006237,), (1398006251,), (1398006253,), (1398006255,), (1398006257,), (1398006259,), (1398006296,), (1398006302,), (1398006320,), (1398006321,), (1398006323,), (1398006325,), (1398006328,), (1398006331,), (1398006345,), (1398006346,), (1398006347,), (1398006349,), (1398006351,), (1398006353,), (1398006363,), (1398006365,), (1398006368,), (1398006371,), (1398006374,), (1398006376,), (1398006387,), (1398006388,), (1398006389,), (1398006391,), (1398006393,), (1398006394,), (1398006398,), (1398006399,), (1398006402,), (1398006405,), (1398006407,), (1398006410,), (1398006414,), (1398006415,), (1398006416,), (1398006446,), (1398006448,), (1398006450,), (1398006452,), (1398006455,), (1398006458,), (1398006462,), (1398006465,), (1398006467,), (1398006469,), (1398006471,), (1398006473,), (1398006475,), (1398006476,), (1398006479,), (1398006481,), (1398006483,), (1398006487,), (1398006498,), (1398006499,), (1398006500,), (1398006515,), (1398006516,), (1398006517,), (1398006518,), (1398006521,), (1398006539,), (1398006540,), (1398006541,), (1398006542,), (1398006551,), (1398006553,), (1398006560,), (1398006561,), (1398006984,), (1398006880,), (1398006916,), (1398006948,), (1398007373,), (1398007408,), (1398007412,), (1398007414,), (1398007430,), (1398007453,), (1398007512,), (1398007587,), (1398007657,), (1398007727,), (1398008229,), (1398008283,), (1398008316,), (1398008405,), (1398008802,), (1398008839,), (1398008876,), (1398008912,), (1398008942,), (1398008944,), (1398008956,), (1398009645,), (1398009701,), (1398009785,), (1398009829,), (1398009866,), (1398010258,), (1398010298,), (1398010331,), (1398010432,), (1398010435,), (1398010457,), (1398011222,), (1398011282,), (1398011342,), (1398011389,), (1398011438,), (1398011740,), (1398011776,), (1398012235,), (1398012271,), (1398012719,), (1398012753,), (1398012787,), (1398012824,), (1398012858,), (1398013143,), (1398013174,), (1398013208,), (1398013274,), (1398013931,), (1398013993,), (1398014027,), (1398014061,), (1398014122,), (1398014558,), (1398014525,), (1398014719,), (1398014721,), (1398014724,), (1398014756,), (1398014824,), (1398014893,), (1398015410,), (1398015447,), (1398015499,), (1398015562,), (1398015601,), (1398015639,), (1398015883,), (1398015885,), (1398015887,), (1398015890,), (1398015893,), (1398015895,), (1398016136,), (1398016200,), (1398016271,), (1398016341,), (1398016411,), (1398016478,), (1398016679,), (1398016711,), (1398016747,), (1398016789,), (1398016853,), (1398016918,), (1398017076,), (1398017119,), (1398017121,), (1398017123,), (1398017126,), (1398017129,), (1398017134,), (1398017135,), (1398017136,), (1398017163,), (1398017199,), (1398017235,), (1398017358,), (1398017445,), (1398017446,), (1398017479,), (1398017542,), (1398017947,), (1398017982,), (1398018015,), (1398018047,), (1398018081,), (1398018343,), (1398018344,), (1398018346,), (1398018348,), (1398018350,), (1398018491,), (1398018526,), (1398018560,), (1398018761,), (1398018769,), (1398018771,), (1398018775,), (1398018793,), (1398018796,), (1398018799,), (1398018803,), (1398018816,), (1398018820,), (1398018824,), (1398018828,), (1398018833,), (1398018845,), (1398018858,), (1398018861,), (1398018863,), (1398018865,), (1398018871,), (1398018873,), (1398018880,), (1398018882,), (1398018884,), (1398018886,), (1398018888,), (1398018896,), (1398018900,), (1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,), (1398019191,), (1398019193,), (1398019195,), (1398019198,), (1398019201,), (1398019203,), (1398019214,), (1398019216,), (1398019218,), (1398019220,), (1398019223,), (1398019257,), (1398019259,), (1398019261,), (1398019274,), (1398019276,), (1398019278,), (1398019279,), (1398019282,), (1398019317,), (1398019308,), (1398019310,), (1398019312,), (1398019314,), (1398019343,), (1398019345,), (1398019347,), (1398019362,), (1398019364,), (1398019366,), (1398019368,), (1398019382,), (1398019384,), (1398019386,), (1398019388,), (1398019391,), (1398019418,), (1398019419,), (1398019420,), (1398019423,), (1398019426,), (1398019428,), (1398019435,), (1398019437,), (1398019440,), (1398019441,), (1398019468,), (1398019470,), (1398019472,), (1398019474,), (1398019484,), (1398019486,), (1398019565,), (1398019567,), (1398019580,), (1398019581,), (1398019583,), (1398019585,), (1398019589,), (1398019592,), (1398019612,), (1398019618,), (1398019620,), (1398019622,), (1398019625,), (1398019643,), (1398019646,), (1398019649,), (1398019652,), (1398019655,), (1398019658,), (1398019667,), (1398019668,), (1398019669,), (1398019683,), (1398019672,), (1398019676,), (1398019679,), (1398019705,), (1398019707,), (1398019710,), (1398019713,), (1398019716,), (1398019743,), (1398019744,), (1398019745,), (1398019746,), (1398019749,), (1398019752,), (1398019781,), (1398019783,), (1398019802,), (1398019803,), (1398019805,), (1398019807,), (1398019810,), (1398019830,), (1398019832,), (1398019833,), (1398019869,), (1398019870,), (1398019871,), (1398019872,), (1398019875,), (1398019909,), (1398019910,), (1398019912,), (1398019914,), (1398019931,), (1398019933,), (1398019934,), (1398019959,), (1398019961,), (1398019963,), (1398019965,), (1398019968,), (1398019985,), (1398019987,), (1398020727,), (1398021164,), (1398021518,), (1398023421,), (1398024274,), (1398024327,), (1398025337,), (1398025432,), (1398025523,), (1398025587,), (1398025658,), (1398026126,), (1398026201,), (1398026297,), (1398026400,), (1398026496,), (1398026592,), (1398027383,), (1398027461,), (1398027561,), (1398027655,), (1398027775,), (1398027898,), (1398028258,), (1398028354,), (1398028377,), (1398028379,), (1398028381,), (1398028414,), (1398028546,), (1398028547,), (1398028573,), (1398028576,), (1398028621,), (1398028624,), (1398028655,), (1398028659,), (1398028869,), (1398028873,), (1398028874,), (1398028875,), (1398028878,), (1398028909,), (1398029014,), (1398029016,), (1398029018,), (1398029021,), (1398029043,), (1398029045,), (1398029047,), (1398029049,), (1398029052,), (1398029054,), (1398029065,), (1398029068,), (1398029070,), (1398029071,), (1398029114,), (1398029104,), (1398029107,), (1398029109,), (1398029111,), (1398029132,), (1398029133,), (1398029134,), (1398029135,), (1398029138,), (1398029141,), (1398029165,), (1398029168,), (1398029170,), (1398029172,), (1398029194,), (1398029195,), (1398029196,), (1398029197,), (1398029200,), (1398029201,), (1398029220,), (1398029221,), (1398029223,), (1398029226,), (1398029229,), (1398029231,), (1398029237,), (1398029239,), (1398029240,), (1398029241,), (1398029245,), (1398029246,), (1398029248,), (1398029250,), (1398029289,), (1398029290,), (1398029292,), (1398029294,), (1398029296,), (1398029299,), (1398029318,), (1398029322,), (1398029327,), (1398029333,), (1398029389,), (1398029391,), (1398029394,), (1398029397,), (1398029401,), (1398029404,), (1398029417,), (1398029419,), (1398029421,), (1398029423,), (1398029448,), (1398029449,), (1398029450,), (1398029451,), (1398029454,), (1398029467,), (1398029468,), (1398029469,), (1398029470,), (1398029496,), (1398029498,), (1398029501,), (1398029503,), (1398029506,), (1398029509,), (1398029519,), (1398029520,), (1398029521,), (1398029524,), (1398029527,), (1398029530,), (1398029560,), (1398029562,), (1398029565,), (1398029568,), (1398029570,), (1398029573,), (1398029581,), (1398029582,), (1398029615,), (1398029618,), (1398029621,), (1398029636,), (1398029647,), (1398029649,), (1398029666,), (1398029667,), (1398029681,), (1398029692,), (1398029702,), (1398029711,), (1398029716,), (1398029717,), (1398029642,), (1398029643,), (1398029644,), (1398029645,), (1398029658,), (1398029659,), (1398029662,), (1398029665,), (1398029671,), (1398029672,), (1398029674,), (1398029676,), (1398029678,), (1398029721,), (1398029723,), (1398029726,), (1398029729,), (1398029732,), (1398029737,), (1398029739,), (1398029741,), (1398029745,), (1398029749,), (1398029751,), (1398029777,), (1398029780,), (1398029783,), (1398029787,), (1398029793,), (1398029795,), (1398029797,), (1398029799,), (1398029801,), (1398029804,), (1398029833,), (1398029834,), (1398029835,), (1398029836,), (1398029856,), (1398029857,), (1398029858,), (1398029859,), (1398029861,), (1398029864,), (1398029892,), (1398029894,), (1398029896,), (1398029899,), (1398029902,), (1398029904,), (1398029909,), (1398029910,), (1398029911,), (1398029912,), (1398029916,), (1398029917,), (1398029919,), (1398029921,), (1398029926,), (1398029929,), (1398029946,), (1398029947,), (1398029949,), (1398029951,), (1398029965,), (1398029967,), (1398029970,), (1398029973,), (1398029977,), (1398029980,), (1398030003,), (1398030005,), (1398030006,), (1398030007,), (1398030009,), (1398030025,), (1398030026,), (1398030029,), (1398030031,), (1398030065,), (1398030053,), (1398030055,), (1398030057,), (1398030059,), (1398030062,), (1398030073,), (1398030075,), (1398030077,), (1398030079,), (1398030116,), (1398030117,), (1398030118,), (1398030119,), (1398030122,), (1398030137,), (1398030138,), (1398030139,), (1398030140,), (1398030143,), (1398030160,), (1398030162,), (1398030164,), (1398030166,), (1398030169,), (1398030171,), (1398030179,), (1398030181,), (1398030187,), (1398030189,), (1398030190,), (1398030193,), (1398030196,), (1398030201,), (1398030212,), (1398030220,), (1398030221,), (1398030222,), (1398030225,), (1398030239,), (1398030241,), (1398030244,), (1398030247,), (1398030249,), (1398030254,), (1398030281,), (1398030285,), (1398030287,), (1398030289,), (1398030329,), (1398030418,), (1398030420,), (1398030832,), (1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,), (1398033562,), (1398033564,), (1398033566,), (1398033568,), (1398033571,), (1398033579,), (1398033581,), (1398033584,), (1398033587,), (1398033632,), (1398033626,), (1398033628,), (1398033630,), (1398033644,), (1398033646,), (1398033649,), (1398033652,), (1398033672,), (1398033674,), (1398033676,), (1398033677,), (1398033680,), (1398033683,), (1398033708,), (1398033710,), (1398033712,), (1398033713,), (1398033716,), (1398033737,), (1398033739,), (1398033741,), (1398033743,), (1398033755,), (1398033756,), (1398033757,), (1398033758,), (1398033761,), (1398033778,), (1398033780,), (1398033782,), (1398033784,), (1398033787,), (1398033788,), (1398033800,), (1398033801,), (1398033802,), (1398033803,), (1398033848,), (1398033850,), (1398033851,), (1398033852,), (1398033854,), (1398033856,), (1398033872,), (1398033874,), (1398033875,), (1398033876,), (1398033893,), (1398033894,), (1398033896,), (1398033898,), (1398033900,), (1398033902,), (1398033908,), (1398033910,), (1398033912,), (1398033914,), (1398033915,), (1398033917,), (1398033937,), (1398033939,), (1398033955,), (1398033956,), (1398033957,), (1398033958,), (1398033961,), (1398033977,), (1398033979,), (1398033981,), (1398033984,), (1398033988,), (1398033990,), (1398033998,), (1398033999,), (1398034000,), (1398034014,), (1398034004,), (1398034007,), (1398034010,), (1398034035,), (1398034037,), (1398034039,), (1398034061,), (1398034063,), (1398034064,), (1398034086,), (1398034087,), (1398034088,), (1398034089,), (1398034106,), (1398034107,), (1398034108,), (1398034109,), (1398034112,), (1398034153,), (1398034155,), (1398034157,), (1398034180,), (1398034181,), (1398034182,), (1398034183,), (1398034186,), (1398034188,), (1398034204,), (1398034206,), (1398034207,), (1398034208,), (1398034223,), (1398034225,), (1398034226,), (1398034227,), (1398034229,), (1398034252,), (1398034253,), (1398034254,), (1398034257,), (1398034260,), (1398034263,), (1398034271,), (1398034272,), (1398034273,), (1398034275,), (1398034277,), (1398034282,), (1398034285,), (1398034287,), (1398034289,), (1398034307,), (1398034309,), (1398034310,), (1398034311,), (1398034313,), (1398034327,), (1398034329,), (1398034331,), (1398034333,), (1398034336,), (1398034339,), (1398034360,), (1398034362,), (1398034375,), (1398034377,), (1398034381,), (1398034420,), (1398034414,), (1398034415,), (1398034416,), (1398034417,), (1398034431,), (1398034433,), (1398034435,), (1398034437,), (1398034453,), (1398034454,), (1398034455,), (1398034456,), (1398034459,), (1398034475,), (1398034477,), (1398034480,), (1398034484,), (1398034513,), (1398034514,), (1398034516,), (1398034518,), (1398034521,), (1398034524,), (1398034532,), (1398034534,), (1398034537,), (1398034539,), (1398034543,), (1398034546,), (1398034550,), (1398034571,), (1398034572,), (1398034574,), (1398034576,), (1398034579,), (1398034599,), (1398034601,), (1398034603,), (1398034604,), (1398034628,), (1398034629,), (1398034630,), (1398034631,), (1398034634,), (1398034637,), (1398034647,), (1398034649,), (1398034650,), (1398034652,), (1398034655,), (1398034673,), (1398034675,), (1398034676,), (1398034677,), (1398034680,), (1398034683,), (1398034695,), (1398034697,), (1398034698,), (1398034699,), (1398034702,), (1398034717,), (1398034719,), (1398034721,), (1398034723,), (1398034726,), (1398034739,), (1398034744,), (1398034747,), (1398034750,), (1398034752,), (1398034755,), (1398034758,), (1398034762,), (1398034781,), (1398034773,), (1398034775,), (1398034776,), (1398034777,), (1398034779,), (1398034867,), (1398034905,), (1398034938,), (1398034984,), (1398035049,), (1398035725,), (1398035796,), (1398035857,), (1398035914,), (1398036423,), (1398036457,), (1398036490,), (1398036522,), (1398036554,), (1398036569,), (1398036876,), (1398036906,), (1398036969,), (1398037023,), (1398037060,), (1398037524,), (1398037585,), (1398037650,), (1398037709,), (1398037776,), (1398038231,), (1398038233,), (1398038245,), (1398038277,), (1398038303,), (1398038619,), (1398038623,), (1398038635,), (1398038650,), (1398038652,), (1398038707,), (1398038708,), (1398038709,), (1398038710,), (1398038713,), (1398038716,), (1398038734,), (1398038735,), (1398038737,), (1398038740,), (1398038743,), (1398038746,), (1398038754,), (1398038757,), (1398038764,), (1398038767,), (1398038768,), (1398038772,), (1398038774,), (1398038776,), (1398038779,), (1398038782,), (1398038790,), (1398038802,), (1398038803,), (1398038805,), (1398038807,), (1398038820,), (1398038821,), (1398038823,), (1398038825,), (1398038829,), (1398038838,), (1398038869,), (1398038871,), (1398038872,), (1398038873,), (1398038911,), (1398038916,), (1398038918,), (1398038922,), (1398038926,), (1398038929,), (1398038951,), (1398038945,), (1398038946,), (1398038947,), (1398038948,), (1398039097,), (1398039098,), (1398039102,), (1398039103,), (1398039125,), (1398039127,), (1398039129,), (1398039131,), (1398039134,), (1398039136,), (1398039151,), (1398039155,), (1398039156,), (1398039157,), (1398039183,), (1398039192,), (1398039200,), (1398039205,), (1398039208,), (1398039209,), (1398039227,), (1398039229,), (1398039231,), (1398039233,), (1398039259,), (1398039260,), (1398039261,), (1398039262,), (1398039278,), (1398039280,), (1398039283,), (1398039286,), (1398039321,), (1398039323,), (1398039325,), (1398039327,), (1398039330,), (1398039360,), (1398039361,), (1398039362,), (1398039363,), (1398039366,), (1398039406,), (1398039410,), (1398039434,), (1398039436,), (1398039438,), (1398039441,), (1398039454,), (1398039455,), (1398039471,), (1398039502,), (1398039536,), (1398039677,), (1398039722,), (1398039723,), (1398039725,), (1398039744,), (1398039780,), (1398039802,), (1398039805,), (1398039808,), (1398039812,), (1398039827,), (1398039829,), (1398039831,), (1398039833,), (1398039836,), (1398039840,), (1398039862,), (1398039859,), (1398039860,), (1398039861,), (1398039880,), (1398039881,), (1398039883,), (1398039904,), (1398039909,), (1398039919,), (1398039924,), (1398039926,), (1398039947,), (1398039949,), (1398039957,), (1398039961,), (1398039976,), (1398039977,), (1398039978,), (1398039979,), (1398039981,), (1398040000,), (1398040003,), (1398040004,), (1398040006,), (1398040009,), (1398040022,), (1398040024,), (1398040026,), (1398040028,), (1398040031,), (1398040053,), (1398040054,), (1398040055,), (1398040056,), (1398040059,), (1398040061,), (1398040081,), (1398040083,), (1398040086,), (1398040089,), (1398040102,), (1398040189,), (1398040194,), (1398040202,), (1398040203,), (1398040222,), (1398040224,), (1398040226,), (1398040230,), (1398040234,), (1398040260,), (1398040263,), (1398040266,), (1398040270,), (1398040274,), (1398040278,), (1398040286,), (1398040288,), (1398040290,), (1398040292,), (1398040308,), (1398040310,), (1398040311,), (1398040312,), (1398040314,), (1398040315,), (1398040328,), (1398040330,), (1398040333,), (1398040334,), (1398040376,), (1398040368,), (1398040370,), (1398040371,), (1398040372,), (1398040374,), (1398040390,), (1398040391,), (1398040392,), (1398040393,), (1398040412,), (1398040418,), (1398040419,), (1398040421,), (1398040424,), (1398040427,), (1398040440,), (1398040442,), (1398040445,), (1398040448,), (1398040452,), (1398040475,), (1398040478,), (1398040481,), (1398040485,), (1398040486,), (1398040489,), (1398040497,), (1398040499,), (1398040500,), (1398040501,), (1398040502,), (1398040507,), (1398040508,), (1398040511,), (1398040514,), (1398040524,), (1398040546,), (1398040548,), (1398040550,), (1398040551,), (1398040555,), (1398040573,), (1398040575,), (1398040578,), (1398040597,), (1398040599,), (1398040601,), (1398040603,), (1398040620,), (1398040621,), (1398040622,), (1398040623,), (1398040647,), (1398040649,), (1398040651,), (1398040653,), (1398040666,), (1398040668,), (1398040670,), (1398040672,), (1398040703,), (1398040705,), (1398040737,), (1398040739,), (1398040740,), (1398040763,), (1398060097,), (1398060137,), (1398060139,), (1398060171,), (1398060172,), (1398060173,), (1398060175,), (1398060193,), (1398060195,), (1398060196,), (1398060198,), (1398060244,), (1398060246,), (1398060249,), (1398060281,), (1398060285,), (1398060286,), (1398060287,), (1398060289,), (1398060291,), (1398060384,), (1398060390,), (1398060398,), (1398060429,), (1398060464,), (1398060466,), (1398060475,), (1398060509,), (1398060533,), (1398060535,), (1398060543,), (1398060544,), (1398060546,), (1398060548,), (1398060578,), (1398060579,), (1398060581,), (1398060583,), (1398060586,), (1398060589,), (1398060618,), (1398060619,), (1398060620,), (1398060621,), (1398060652,), (1398060656,), (1398060659,), (1398060661,), (1398060665,), (1398060678,), (1398060679,), (1398060680,), (1398060682,), (1398060685,), (1398060689,), (1398060705,), (1398060701,), (1398060703,), (1398060704,), (1398060759,), (1398060761,), (1398060789,), (1398060825,), (1398060860,), (1398060890,), (1398060978,), (1398060979,), (1398060981,), (1398060983,), (1398060985,), (1398061115,), (1398061148,), (1398061180,), (1398061213,), (1398061260,), (1398061296,), (1398061352,), (1398061353,), (1398061354,), (1398061357,), (1398061361,), (1398061365,), (1398061377,), (1398061379,), (1398061380,), (1398061381,), (1398061384,), (1398061393,), (1398061396,), (1398061399,), (1398061402,), (1398061431,), (1398061433,), (1398061435,), (1398061437,), (1398061454,), (1398061455,), (1398061456,), (1398061475,), (1398061517,), (1398061519,), (1398061521,), (1398061523,), (1398061526,), (1398061650,), (1398061651,), (1398061652,), (1398061769,), (1398063651,), (1398063584,), (1398063615,), (1398064052,), (1398064084,), (1398064117,), (1398064147,), (1398064546,), (1398064585,), (1398064620,), (1398064660,), (1398064693,), (1398064728,), (1398065023,), (1398065060,), (1398065092,), (1398065131,), (1398065192,), (1398065262,), (1398065469,), (1398065512,), (1398065527,), (1398065558,), (1398065577,), (1398065612,), (1398065646,), (1398065667,), (1398065669,), (1398065671,), (1398065757,), (1398065758,), (1398065759,), (1398065760,), (1398065764,), (1398065811,), (1398065813,), (1398065815,), (1398065817,), (1398065838,), (1398065840,), (1398065844,), (1398065848,), (1398065852,), (1398065856,), (1398065864,), (1398065866,), (1398065868,), (1398065952,), (1398065942,), (1398065944,), (1398065945,), (1398065946,), (1398065949,), (1398065963,), (1398065965,), (1398065967,), (1398065969,), (1398065972,), (1398065975,), (1398065993,), (1398065994,), (1398065995,), (1398065996,), (1398066037,), (1398066039,), (1398066042,), (1398066046,), (1398066073,), (1398066075,), (1398066077,), (1398066079,), (1398066082,), (1398066084,), (1398066092,), (1398066094,), (1398066096,), (1398066125,), (1398066126,), (1398066127,), (1398066128,), (1398066131,), (1398066134,), (1398066144,), (1398066149,), (1398066151,), (1398066153,), (1398066156,), (1398066182,), (1398066183,), (1398066184,), (1398066185,), (1398066188,), (1398066205,), (1398066208,), (1398066210,), (1398066213,), (1398066216,), (1398066249,), (1398066250,), (1398066251,), (1398066252,), (1398066266,), (1398066268,), (1398066270,), (1398066272,), (1398066275,), (1398066278,), (1398066301,), (1398066302,), (1398066303,), (1398066304,), (1398066307,), (1398066324,), (1398066325,), (1398066327,), (1398066329,), (1398066332,), (1398066335,), (1398066364,), (1398066366,), (1398066368,), (1398066372,), (1398066375,), (1398066377,), (1398066384,), (1398066386,), (1398066388,), (1398066390,), (1398066408,), (1398066396,), (1398066398,), (1398066401,), (1398066405,), (1398066424,), (1398066426,), (1398066427,), (1398066430,), (1398066433,), (1398066436,), (1398066445,), (1398066447,), (1398066449,), (1398066480,), (1398066481,), (1398066482,), (1398066483,), (1398066486,), (1398066499,), (1398066501,), (1398066503,), (1398066505,), (1398066537,), (1398066538,), (1398066539,), (1398066540,), (1398066543,), (1398066546,), (1398066558,), (1398066559,), (1398066561,), (1398066563,), (1398066566,), (1398066594,), (1398066596,), (1398066597,), (1398066599,), (1398066602,), (1398066605,), (1398066619,), (1398066622,), (1398066625,), (1398066629,), (1398066681,), (1398066682,), (1398066683,), (1398066684,), (1398066687,), (1398066688,), (1398066705,), (1398066731,), (1398066735,), (1398066738,), (1398066756,), (1398066768,), (1398066800,), (1398066832,), (1398067024,), (1398067027,), (1398067049,), (1398067059,), (1398067062,), (1398067064,), (1398067159,), (1398067161,), (1398067163,), (1398067200,), (1398067233,), (1398067270,), (1398067314,), (1398067351,), (1398067387,), (1398067437,), (1398067428,), (1398067430,), (1398067432,), (1398067434,), (1398067452,), (1398067478,), (1398067480,), (1398067482,), (1398067484,), (1398067500,), (1398067501,), (1398067502,), (1398067503,), (1398067506,), (1398067509,), (1398067527,), (1398067531,), (1398067533,), (1398067536,), (1398067549,), (1398067551,), (1398067553,), (1398067557,), (1398067561,), (1398067565,), (1398067601,), (1398067603,), (1398067606,), (1398067610,), (1398067620,), (1398067622,), (1398067624,), (1398067628,), (1398067632,), (1398067636,), (1398067659,), (1398067661,), (1398067663,), (1398067665,), (1398067668,), (1398067691,), (1398067692,), (1398067693,), (1398067694,), (1398067697,), (1398067710,), (1398067712,), (1398067714,), (1398067716,), (1398067719,), (1398067722,), (1398067728,), (1398067730,), (1398067732,), (1398067753,), (1398067754,), (1398067755,), (1398067756,), (1398067760,), (1398067764,), (1398067788,), (1398067791,), (1398067795,), (1398067798,), (1398067800,), (1398068235,), (1398068103,), (1398068169,), (1398068948,), (1398068982,), (1398069008,), (1398069009,), (1398069012,), (1398069015,), (1398069351,), (1398069381,), (1398069385,), (1398069683,), (1398069684,), (1398069685,), (1398069686,), (1398069688,), (1398069689,), (1398069787,), (1398069820,), (1398069855,), (1398069899,), (1398070348,), (1398070389,), (1398070422,), (1398070457,), (1398070495,), (1398070559,), (1398070580,), (1398070618,), (1398070651,), (1398070686,), (1398071093,), (1398071129,), (1398071193,), (1398071226,), (1398071279,), (1398071316,), (1398071605,), (1398071611,), (1398071614,), (1398071625,), (1398071658,), (1398071889,), (1398071891,), (1398071892,), (1398071894,), (1398071898,), (1398071901,), (1398071903,), (1398071904,), (1398071906,), (1398071908,), (1398071915,), (1398071918,), (1398071920,), (1398071924,), (1398071927,), (1398071938,), (1398071939,), (1398071940,), (1398071954,), (1398072025,), (1398072027,), (1398072030,), (1398072033,), (1398072035,), (1398072037,), (1398072056,), (1398072058,), (1398072060,), (1398072061,), (1398072075,), (1398072077,), (1398072081,), (1398072084,), (1398072087,), (1398072090,), (1398072141,), (1398072132,), (1398072135,), (1398072138,), (1398072149,), (1398072150,), (1398072152,), (1398072154,), (1398072156,), (1398072223,), (1398072335,), (1398072365,), (1398072398,), (1398072435,), (1398072503,), (1398072506,), (1398072508,), (1398072511,), (1398072514,), (1398072550,), (1398072551,), (1398072554,), (1398072556,), (1398072558,), (1398072560,), (1398072563,), (1398072564,), (1398072565,), (1398072567,), (1398072569,), (1398072573,), (1398072575,), (1398072576,), (1398072577,), (1398072578,), (1398072614,), (1398072615,), (1398072616,), (1398072617,), (1398072619,), (1398072621,), (1398072637,), (1398072639,), (1398072643,), (1398072647,), (1398072651,), (1398072732,), (1398072736,), (1398072740,), (1398072743,), (1398072745,), (1398072747,), (1398072780,), (1398072781,), (1398072782,), (1398072783,), (1398072785,), (1398072828,), (1398072829,), (1398072831,), (1398072834,), (1398072837,), (1398072840,), (1398072846,), (1398072849,), (1398072852,), (1398072858,), (1398072859,), (1398072860,), (1398072863,), (1398072866,), (1398072869,), (1398072922,), (1398072924,), (1398072926,), (1398072928,), (1398072952,), (1398072953,), (1398072954,), (1398072955,), (1398072958,), (1398072961,), (1398072982,), (1398072984,), (1398072987,), (1398072989,), (1398073071,), (1398073062,), (1398073063,), (1398073066,), (1398073068,), (1398073087,), (1398073089,), (1398073091,), (1398073093,), (1398073096,), (1398073115,), (1398073117,), (1398073119,), (1398073121,), (1398073125,), (1398073129,), (1398073187,), (1398073188,), (1398073189,), (1398073190,), (1398073192,), (1398073290,), (1398073304,), (1398073306,), (1398073329,), (1398073343,), (1398073362,), (1398073366,), (1398073668,), (1398073699,), (1398073730,), (1398073762,), (1398073797,), (1398073834,), (1398074090,), (1398074123,), (1398074177,), (1398077308,), (1398077305,), (1398077306,), (1398077574,), (1398077576,), (1398077869,), (1398077881,), (1398077883,), (1398077919,), (1398077921,), (1398077922,), (1398077923,), (1398077925,), (1398077926,), (1398077940,), (1398077941,), (1398077943,), (1398077944,), (1398077947,), (1398077950,), (1398077989,), (1398077996,), (1398078001,), (1398078011,), (1398078013,), (1398078014,), (1398078026,), (1398078024,), (1398078044,), (1398078046,), (1398078048,), (1398078059,), (1398078101,), (1398078137,), (1398078432,), (1398078462,), (1398079201,), (1398079234,), (1398079749,), (1398079798,), (1398079811,), (1398079995,), (1398079996,), (1398080239,), (1398080241,), (1398080256,), (1398080445,), (1398080448,), (1398080450,), (1398080457,), (1398080459,), (1398080579,), (1398088749,), (1398089259,), (1398089261,), (1398089263,), (1398089380,), (1398089398,), (1398089400,), (1398089401,), (1398089403,), (1398089419,), (1398089421,), (1398089422,), (1398089424,), (1398089666,), (1398089676,), (1398089678,), (1398089738,), (1398089741,), (1398089744,), (1398089748,), (1398089755,), (1398089756,), (1398089771,), (1398089785,), (1398092535,), (1398092536,), (1398092538,), (1398092540,), (1398092543,), (1398092546,), (1398092553,), (1398092559,), (1398092562,), (1398092565,), (1398092569,), (1398092584,), (1398092586,), (1398092588,), (1398092592,), (1398092596,), (1398092618,), (1398092620,), (1398092622,), (1398092624,), (1398092627,), (1398092630,), (1398092643,), (1398092645,), (1398092646,), (1398092647,), (1398092693,), (1398092687,), (1398092689,), (1398092691,), (1398092710,), (1398092711,), (1398092712,), (1398092713,), (1398092716,), (1398092732,), (1398092734,), (1398092736,), (1398092738,), (1398092741,), (1398092756,), (1398092758,), (1398092759,), (1398092783,), (1398092785,), (1398092787,), (1398092790,), (1398092793,), (1398092794,), (1398092801,), (1398092803,), (1398092805,), (1398092809,), (1398092810,), (1398092811,), (1398092838,), (1398092840,), (1398092842,), (1398092844,), (1398092847,), (1398092861,), (1398092862,), (1398092863,), (1398092864,), (1398092895,), (1398092897,), (1398092899,), (1398092901,), (1398092917,), (1398092919,), (1398092943,), (1398092945,), (1398092946,), (1398092949,), (1398092953,), (1398092956,), (1398092967,), (1398092969,), (1398092971,), (1398092973,), (1398092992,), (1398092993,), (1398092994,), (1398092995,), (1398093013,), (1398093014,), (1398093016,), (1398093018,), (1398093021,), (1398093023,), (1398093042,), (1398093043,), (1398093044,), (1398093048,), (1398093051,), (1398093054,), (1398093063,), (1398093064,), (1398093065,), (1398093075,), (1398093077,), (1398093102,), (1398093088,), (1398093090,), (1398093098,), (1398093100,), (1398093105,), (1398093109,), (1398093113,), (1398093116,), (1398093121,), (1398093130,), (1398093132,), (1398093134,), (1398093136,), (1398093159,), (1398093160,), (1398093161,), (1398093176,), (1398093178,), (1398093180,), (1398093182,), (1398093185,), (1398093212,), (1398093222,), (1398093265,), (1398093267,), (1398093285,), (1398093315,), (1398093319,), (1398093320,), (1398093322,), (1398093336,), (1398093337,), (1398093338,), (1398093364,), (1398093368,), (1398093370,), (1398093372,), (1398093390,), (1398093392,), (1398093393,), (1398093394,), (1398093396,), (1398093415,), (1398093416,), (1398093418,), (1398093420,), (1398093422,), (1398093442,), (1398093448,), (1398093456,), (1398093459,), (1398093499,), (1398093490,), (1398093491,), (1398093492,), (1398093493,), (1398093496,), (1398093509,), (1398093510,), (1398093511,), (1398093512,), (1398093514,), (1398093537,), (1398093538,), (1398093539,), (1398093540,), (1398093560,), (1398093561,), (1398093562,), (1398093563,), (1398093565,), (1398093567,), (1398093579,), (1398093580,), (1398093581,), (1398093583,), (1398093585,), (1398093587,), (1398093603,), (1398093604,), (1398093607,), (1398093610,), (1398093614,), (1398093617,), (1398093623,), (1398093624,), (1398093628,), (1398093631,), (1398093634,), (1398093636,), (1398093643,), (1398093644,), (1398093646,), (1398093648,), (1398093651,), (1398093653,), (1398093654,), (1398093656,), (1398093658,), (1398093661,), (1398093690,), (1398093691,), (1398093692,), (1398093693,), (1398093696,), (1398093726,), (1398093728,), (1398093730,), (1398093732,), (1398093735,), (1398093755,), (1398093756,), (1398093757,), (1398093758,), (1398093761,), (1398093775,), (1398093777,), (1398093779,), (1398093781,), (1398093784,), (1398093787,), (1398094013,), (1398094048,), (1398094068,), (1398094085,), (1398094139,), (1398094143,), (1398094145,), (1398094149,), (1398094152,), (1398094155,), (1398094476,), (1398094601,), (1398094639,), (1398094671,), (1398094706,), (1398094738,), (1398094748,), (1398094866,), (1398094896,), (1398094930,), (1398094302,), (1398094338,), (1398094372,), (1398094405,), (1398094439,), (1398094754,), (1398094756,), (1398094761,), (1398094796,), (1398094829,), (1398094995,), (1398094998,), (1398095000,), (1398095031,), (1398095068,), (1398095367,), (1398095400,), (1398095432,), (1398095463,), (1398095876,), (1398095911,), (1398095945,), (1398095990,), (1398096026,), (1398096339,), (1398096340,), (1398096358,), (1398096361,), (1398096363,), (1398096365,), (1398096393,), (1398096395,), (1398096397,), (1398096400,), (1398096652,), (1398096684,), (1398096715,), (1398096749,), (1398096802,), (1398096846,), (1398097022,), (1398097030,), (1398097131,), (1398097133,), (1398097135,), (1398097138,), (1398097140,), (1398097142,), (1398097458,), (1398097491,), (1398097494,), (1398097497,), (1398097500,), (1398097504,), (1398097537,), (1398097544,), (1398097547,), (1398097557,), (1398097558,), (1398097564,), (1398097568,), (1398097571,), (1398097574,), (1398097585,), (1398097591,), (1398097631,), (1398097632,), (1398097634,), (1398097636,), (1398097679,), (1398097685,), (1398097686,), (1398097687,), (1398097689,), (1398097690,), (1398097717,), (1398097718,), (1398097720,), (1398097721,), (1398097724,), (1398097875,), (1398097868,), (1398097870,), (1398097873,), (1398097923,), (1398097945,), (1398097947,), (1398097950,), (1398097953,), (1398097956,), (1398097959,), (1398097970,), (1398097972,), (1398097974,), (1398097976,), (1398097977,), (1398097981,), (1398098022,), (1398098028,), (1398098036,), (1398098042,), (1398098046,), (1398098050,), (1398098054,), (1398098058,), (1398098067,), (1398098068,), (1398098070,), (1398098093,), (1398098099,), (1398098101,), (1398098103,), (1398098106,), (1398098108,), (1398098152,), (1398098154,), (1398098157,), (1398098180,), (1398098182,), (1398098184,), (1398098393,), (1398098443,), (1398098542,), (1398098548,), (1398098584,), (1398098585,), (1398098588,), (1398098591,), (1398098624,), (1398098627,), (1398098630,), (1398098662,), (1398098664,), (1398098666,), (1398098668,), (1398098686,), (1398098699,), (1398098708,), (1398098718,), (1398098725,), (1398098783,), (1398098784,), (1398098785,), (1398098788,), (1398098791,), (1398098794,), (1398098807,), (1398098809,), (1398098812,), (1398098814,), (1398098816,), (1398098823,), (1398098831,), (1398098837,), (1398098839,), (1398098840,), (1398098842,), (1398098851,), (1398098864,), (1398098875,), (1398098880,), (1398098883,), (1398098886,), (1398098891,), (1398098915,), (1398098916,), (1398098917,), (1398098926,), (1398098929,), (1398098933,), (1398098941,), (1398098953,), (1398098962,), (1398098963,), (1398098965,), (1398098981,), (1398098983,), (1398098985,), (1398098987,), (1398099003,), (1398099139,), (1398100150,), (1398100152,), (1398100154,), (1398100185,), (1398100187,), (1398100189,), (1398100192,), (1398100195,), (1398100200,), (1398100203,), (1398100205,), (1398100207,), (1398100208,), (1398100289,), (1398100290,), (1398100291,), (1398100293,), (1398100295,), (1398100297,), (1398100321,), (1398100323,), (1398100325,), (1398100348,), (1398100350,), (1398100353,), (1398100356,), (1398100359,), (1398100427,), (1398100423,), (1398100426,), (1398100445,), (1398100446,), (1398100447,), (1398100448,), (1398100476,), (1398100478,), (1398100534,), (1398100536,), (1398100537,), (1398100538,), (1398100539,), (1398100565,), (1398100567,), (1398100569,), (1398100572,), (1398100575,), (1398100577,), (1398100796,), (1398100831,), (1398100864,), (1398100900,), (1398100909,), (1398100915,), (1398100941,), (1398100943,), (1398100946,), (1398100948,), (1398100952,), (1398100954,), (1398100961,), (1398100963,), (1398100966,), (1398100969,), (1398100970,), (1398100971,), (1398100976,), (1398100979,), (1398100982,), (1398100985,), (1398100988,), (1398100991,), (1398100996,), (1398101001,), (1398101003,), (1398101005,), (1398101007,), (1398101041,), (1398101042,), (1398101043,), (1398101044,), (1398101047,), (1398101050,), (1398101086,), (1398101096,), (1398101098,), (1398101100,), (1398101103,), (1398101117,), (1398101119,), (1398101120,), (1398101121,), (1398101123,), (1398101125,), (1398101184,), (1398101185,), (1398101187,), (1398101189,), (1398101192,), (1398101203,), (1398101206,), (1398101209,), (1398101213,), (1398101244,), (1398101246,), (1398101248,), (1398101250,), (1398101253,), (1398101255,), (1398101304,), (1398101313,), (1398101314,), (1398101315,), (1398101317,), (1398101319,), (1398101322,), (1398101337,), (1398101338,), (1398101354,), (1398101281,), (1398101284,), (1398101287,), (1398101291,), (1398101297,), (1398101329,), (1398101332,), (1398101335,), (1398101336,), (1398101343,), (1398101345,), (1398101348,), (1398101350,), (1398101352,), (1398101399,), (1398101400,), (1398101401,), (1398101416,), (1398101419,), (1398101420,), (1398101422,), (1398101425,), (1398101428,), (1398101443,), (1398101445,), (1398101455,), (1398101473,), (1398101479,), (1398101537,), (1398101538,), (1398101539,), (1398101556,), (1398101557,), (1398101558,), (1398101559,), (1398101561,), (1398101563,), (1398101618,), (1398101619,), (1398101620,), (1398101635,), (1398101640,), (1398101671,), (1398101673,), (1398101674,), (1398101677,), (1398101680,), (1398101682,), (1398101694,), (1398101695,), (1398101698,), (1398101702,), (1398101705,), (1398101708,), (1398101744,), (1398101759,), (1398101762,), (1398101769,), (1398101777,), (1398101786,), (1398101825,), (1398101827,), (1398101829,), (1398101831,), (1398101834,), (1398101837,), (1398101841,), (1398101843,), (1398101844,), (1398101845,), (1398101848,), (1398101911,), (1398101913,), (1398101915,), (1398101917,), (1398102082,), (1398102101,), (1398102103,), (1398102107,), (1398102112,), (1398102245,), (1398102232,), (1398102235,), (1398102238,), (1398102241,), (1398102329,), (1398102332,), (1398102336,), (1398102340,), (1398102344,), (1398102364,), (1398102366,), (1398102368,), (1398102370,), (1398102373,), (1398102388,), (1398102389,), (1398102390,), (1398102391,), (1398102394,), (1398102397,), (1398102419,), (1398102421,), (1398102423,), (1398102426,), (1398102429,), (1398102431,), (1398102441,), (1398102442,), (1398102445,), (1398102451,), (1398102454,), (1398102468,), (1398102478,), (1398102480,), (1398102486,), (1398102488,), (1398102490,), (1398102492,), (1398102524,), (1398102558,), (1398102594,), (1398102629,), (1398102663,), (1398102667,), (1398102669,), (1398102671,), (1398102673,), (1398102675,), (1398102706,), (1398102740,), (1398102782,), (1398102794,), (1398102843,), (1398102844,), (1398102845,), (1398102846,), (1398102849,), (1398102850,), (1398102864,), (1398102866,), (1398102868,), (1398102870,), (1398102894,), (1398102898,), (1398102899,), (1398102903,), (1398102932,), (1398102940,), (1398102973,), (1398102974,), (1398102976,), (1398102978,), (1398102980,), (1398103005,), (1398103007,), (1398103009,), (1398103011,), (1398103014,), (1398103017,), (1398103190,), (1398103259,), (1398103340,), (1398103400,), (1398103471,), (1398104549,), (1398104663,), (1398104698,), (1398104735,), (1398104796,), (1398104894,), (1398104999,), (1398105745,), (1398104220,), (1398104318,), (1398104385,), (1398104460,), (1398104509,), (1398105237,), (1398105270,), (1398105305,), (1398105353,), (1398105420,), (1398105485,), (1398105959,), (1398105991,), (1398106022,), (1398106059,), (1398106296,), (1398106308,), (1398106338,), (1398106372,), (1398106390,), (1398106737,), (1398106740,), (1398106743,), (1398106771,), (1398106784,), (1398106813,), (1398106873,), (1398106933,), (1398106935,), (1398106961,), (1398106989,), (1398107135,), (1398107136,), (1398107137,), (1398107138,), (1398107173,), (1398107175,), (1398107219,), (1398107220,), (1398107221,), (1398107222,), (1398107225,), (1398107249,), (1398107276,), (1398107277,), (1398107288,), (1398107290,), (1398107293,), (1398107373,), (1398107343,), (1398107348,), (1398107357,), (1398107366,), (1398107412,), (1398107413,), (1398107414,), (1398107415,), (1398107418,), (1398107617,), (1398107619,), (1398107621,), (1398107622,), (1398107642,), (1398107874,), (1398107909,), (1398107911,), (1398107913,), (1398107947,), (1398107948,), (1398107949,), (1398107952,), (1398107955,), (1398107958,), (1398107970,), (1398107972,), (1398107975,), (1398107977,), (1398107979,), (1398107981,), (1398107994,), (1398107996,), (1398107998,), (1398108006,), (1398108007,), (1398108009,), (1398108011,), (1398108013,), (1398108016,), (1398108019,), (1398108023,), (1398108025,), (1398108042,), (1398108044,), (1398108047,), (1398108050,), (1398108054,), (1398108084,), (1398108102,), (1398108108,), (1398108116,), (1398108118,), (1398108121,), (1398108123,), (1398108136,), (1398108137,), (1398108138,), (1398108139,), (1398108142,), (1398108162,), (1398108164,), (1398108166,), (1398108168,), (1398108171,), (1398108174,), (1398108189,), (1398108192,), (1398108194,), (1398108198,), (1398108235,), (1398108238,), (1398108242,), (1398108245,), (1398108259,), (1398108292,), (1398108345,), (1398109706,), (1398109641,), (1398109675,), (1398110124,), (1398110485,), (1398110487,), (1398110489,), (1398110491,), (1398110494,), (1398110507,), (1398110510,), (1398110511,), (1398110919,), (1398110952,), (1398110975,), (1398110985,), (1398110992,), (1398111029,), (1398111100,), (1398111102,), (1398111103,), (1398111105,), (1398111107,), (1398111138,), (1398111139,), (1398111140,), (1398111176,), (1398111177,), (1398111179,), (1398111181,), (1398111184,), (1398111340,), (1398111347,), (1398111350,), (1398111358,), (1398111361,), (1398111362,), (1398111373,), (1398111374,), (1398111377,), (1398111380,), (1398111383,), (1398111389,), (1398111414,), (1398111415,), (1398111423,), (1398111428,), (1398111430,), (1398111432,), (1398111437,), (1398111439,), (1398111441,), (1398111443,), (1398111447,), (1398111473,), (1398111547,), (1398111548,), (1398111549,), (1398111554,), (1398111557,), (1398111560,), (1398111563,), (1398111569,), (1398111571,), (1398111573,), (1398111575,), (1398111590,), (1398111592,), (1398111594,), (1398111595,), (1398111701,), (1398111676,), (1398111678,), (1398111690,), (1398111698,), (1398111860,), (1398111861,), (1398111865,), (1398111894,), (1398111895,), (1398112016,), (1398112018,), (1398112020,), (1398112022,), (1398112038,), (1398112039,), (1398112040,), (1398112041,), (1398112043,), (1398112059,), (1398112061,), (1398112063,), (1398112066,), (1398112069,), (1398112071,), (1398112082,), (1398112086,), (1398112089,), (1398112092,), (1398112097,), (1398112104,), (1398112107,), (1398112108,), (1398112113,), (1398112117,), (1398112119,), (1398112121,), (1398112127,), (1398112130,), (1398112131,), (1398112133,), (1398112136,), (1398112137,), (1398112138,), (1398112140,), (1398112142,), (1398112148,), (1398112150,), (1398112153,), (1398112155,), (1398112159,), (1398112163,), (1398112177,), (1398112179,), (1398112180,), (1398112198,), (1398112200,), (1398112202,), (1398112204,), (1398112207,), (1398112210,), (1398112224,), (1398112225,), (1398112226,), (1398112240,), (1398112260,), (1398112261,), (1398112263,), (1398112265,), (1398112268,), (1398112293,), (1398112297,), (1398112298,), (1398112299,), (1398112302,), (1398112305,), (1398112316,), (1398112318,), (1398112320,), (1398112349,), (1398112351,), (1398112353,), (1398112356,), (1398112360,), (1398112362,), (1398112384,), (1398112391,), (1398112403,), (1398112404,), (1398112409,), (1398112414,), (1398112416,), (1398112418,), (1398112433,), (1398112435,), (1398112374,), (1398112375,), (1398112378,), (1398112381,), (1398112422,), (1398112425,), (1398112427,), (1398112429,), (1398112432,), (1398112439,), (1398112441,), (1398112444,), (1398112446,), (1398112448,), (1398112450,), (1398112461,), (1398112462,), (1398112463,), (1398112478,), (1398112480,), (1398112483,), (1398112486,), (1398112489,), (1398112522,), (1398112524,), (1398112526,), (1398112528,), (1398112531,), (1398112552,), (1398112553,), (1398112554,), (1398112584,), (1398112585,), (1398112586,), (1398112587,), (1398112590,), (1398112593,), (1398112605,), (1398112607,), (1398112610,), (1398112614,), (1398112644,), (1398112651,), (1398112660,), (1398112662,), (1398112664,), (1398112667,), (1398112676,), (1398112679,), (1398112682,), (1398112685,), (1398112692,), (1398112697,), (1398112703,), (1398112704,), (1398112706,), (1398112708,), (1398112710,), (1398112712,), (1398112717,), (1398112719,), (1398112722,), (1398112726,), (1398112728,), (1398112731,), (1398112733,), (1398112734,), (1398112735,), (1398112736,), (1398112739,), (1398112758,), (1398112761,), (1398112763,), (1398112779,), (1398112780,), (1398112782,), (1398112784,), (1398112904,), (1398112871,), (1398112891,), (1398112893,), (1398112898,), (1398112901,), (1398113043,), (1398113044,), (1398113046,), (1398113048,), (1398113051,), (1398113054,), (1398113079,), (1398113081,), (1398113082,), (1398113098,), (1398113100,), (1398113102,), (1398113104,), (1398113107,), (1398113124,), (1398113126,), (1398113128,), (1398113130,), (1398113133,), (1398113136,), (1398113145,), (1398113146,), (1398113149,), (1398113152,), (1398113154,), (1398113156,), (1398113167,), (1398113170,), (1398113173,), (1398113175,), (1398113177,), (1398113178,), (1398113186,), (1398113187,), (1398113189,), (1398113192,), (1398113206,), (1398113207,), (1398113209,), (1398113211,), (1398113213,), (1398113242,), (1398113244,), (1398113246,), (1398113248,), (1398113251,), (1398113258,), (1398113262,), (1398113264,), (1398113267,), (1398113293,), (1398113295,), (1398113296,), (1398113297,), (1398113300,), (1398113303,), (1398113320,), (1398113328,), (1398113337,), (1398113339,), (1398113342,), (1398113364,), (1398113366,), (1398113367,), (1398113368,), (1398113383,), (1398113387,), (1398113391,), (1398113395,), (1398113422,), (1398113425,), (1398113428,), (1398113432,), (1398113436,), (1398113438,), (1398113440,), (1398113443,), (1398113451,), (1398113416,), (1398113418,), (1398113420,), (1398113454,), (1398113455,), (1398113464,), (1398113474,), (1398113477,), (1398113687,), (1398113722,), (1398113758,), (1398113790,), (1398115012,), (1398115030,), (1398115035,), (1398115036,), (1398115038,), (1398115093,), (1398115267,), (1398115312,), (1398115346,), (1398115362,), (1398115364,), (1398115366,), (1398115377,), (1398115416,), (1398115453,), (1398115549,), (1398115550,), (1398115551,), (1398115552,), (1398115570,), (1398115572,), (1398115574,), (1398115576,), (1398115579,), (1398115581,), (1398115602,), (1398115610,), (1398115612,), (1398115614,), (1398116013,), (1398116045,), (1398116078,), (1398116112,), (1398116151,), (1398116184,), (1398116520,), (1398116555,), (1398116594,), (1398116630,), (1398116662,), (1398116694,), (1398116713,), (1398116716,), (1398116717,), (1398116719,), (1398116721,), (1398116722,), (1398116727,), (1398116730,), (1398116732,), (1398116734,), (1398116738,), (1398116740,), (1398116750,), (1398116756,), (1398116878,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05122025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29233782]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] map_info['map_portfolio_photo'] : {29233782: [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727, 1398116722, 1398116721, 1398116719, 1398116717, 1398116716, 1398116713, 1398116694, 1398116662, 1398116630, 1398116594, 1398116555, 1398116520, 1398116184, 1398116151, 1398116112, 1398116078, 1398116045, 1398116013, 1398115614, 1398115612, 1398115610, 1398115602, 1398115581, 1398115579, 1398115576, 1398115574, 1398115572, 1398115570, 1398115552, 1398115551, 1398115550, 1398115549, 1398115453, 1398115416, 1398115377, 1398115366, 1398115364, 1398115362, 1398115346, 1398115312, 1398115267, 1398115093, 1398115038, 1398115036, 1398115035, 1398115030, 1398115012, 1398113790, 1398113758, 1398113722, 1398113687, 1398113477, 1398113474, 1398113464, 1398113455, 1398113454, 1398113420, 1398113418, 1398113416]} final : True mtd_id 4302 list_pids : [1398116878, 1398116756, 1398116750, 1398116740, 1398116738, 1398116734, 1398116732, 1398116730, 1398116727] Looping around the photos to save general results len do output : 1 /29233782Didn'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, '4191959') ('4302', '29233782', '1398116878', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116756', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116750', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116740', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116738', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116734', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116732', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116730', None, None, None, None, None, '4191959') ('4302', None, None, None, None, None, None, None, '4191959') ('4302', '29233782', '1398116727', None, None, None, None, None, '4191959') 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', None, '29233782', 'None', None, None, None, None, '4191959'), ('4302', '29233782', '1398116878', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116756', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116750', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116740', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116738', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116734', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116732', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116730', None, None, None, None, None, '4191959'), ('4302', '29233782', '1398116727', None, None, None, None, None, '4191959')] time used for this insertion : 0.016106605529785156 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.255920648574829 time spend to save output : 0.016336679458618164 total time spend for step 5 : 4.272257328033447 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 (4191959) 2.14user 2.62system 0:16.77elapsed 28%CPU (0avgtext+0avgdata 168904maxresident)k 136inputs+16336outputs (0major+79737minor)pagefaults 0swaps