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 : 2427629 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 (4147176) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4147176) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053377 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4147176'] with mtr_portfolio_ids : ['29053377'] and first list_photo_ids : [] new path : /proc/2427629/ Name: python3 Umask: 0002 State: R (running) Tgid: 2427629 Ngid: 0 Pid: 2427629 PPid: 2427628 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2427629 NSpid: 2427629 NSpgid: 2425991 NSsid: 2425991 VmPeak: 1113360 kB VmSize: 1113360 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105752 kB VmRSS: 105752 kB RssAnon: 66288 kB RssFile: 39464 kB RssShmem: 0 kB VmData: 872088 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 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: 47 nonvoluntary_ctxt_switches: 63 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2427629', 'Ngid': '0', 'Pid': '2427629', 'PPid': '2427628', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2427629', 'NSpid': '2427629', 'NSpgid': '2425991', 'NSsid': '2425991', 'VmPeak': '1113360 kB', 'VmSize': '1113360 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105752 kB', 'VmRSS': '105752 kB', 'RssAnon': '66288 kB', 'RssFile': '39464 kB', 'RssShmem': '0 kB', 'VmData': '872088 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 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': '47', 'nonvoluntary_ctxt_switches': '63'} ('datou_batch_current', '2427629', '1113360', '0', '1113360', '872088', '105752', b'', 'marlene', '4147176') 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 (29053377) 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 (4147176 ) ) 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 (29053377) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397236759, 'portfolio_id': 29053377}, {'photo_id': 1397236725, 'portfolio_id': 29053377}, {'photo_id': 1397236693, 'portfolio_id': 29053377}, {'photo_id': 1397236661, 'portfolio_id': 29053377}, {'photo_id': 1397236570, 'portfolio_id': 29053377}, {'photo_id': 1397236564, 'portfolio_id': 29053377}, {'photo_id': 1397236558, 'portfolio_id': 29053377}, {'photo_id': 1397236555, 'portfolio_id': 29053377}, {'photo_id': 1397236551, 'portfolio_id': 29053377}, {'photo_id': 1397236546, 'portfolio_id': 29053377}, {'photo_id': 1397236539, 'portfolio_id': 29053377}, {'photo_id': 1397236531, 'portfolio_id': 29053377}, {'photo_id': 1397236510, 'portfolio_id': 29053377}, {'photo_id': 1397236508, 'portfolio_id': 29053377}, {'photo_id': 1397236505, 'portfolio_id': 29053377}, {'photo_id': 1397236490, 'portfolio_id': 29053377}, {'photo_id': 1397236488, 'portfolio_id': 29053377}, {'photo_id': 1397236483, 'portfolio_id': 29053377}, {'photo_id': 1397236478, 'portfolio_id': 29053377}, {'photo_id': 1397236476, 'portfolio_id': 29053377}, {'photo_id': 1397236474, 'portfolio_id': 29053377}, {'photo_id': 1397236459, 'portfolio_id': 29053377}, {'photo_id': 1397236455, 'portfolio_id': 29053377}, {'photo_id': 1397236450, 'portfolio_id': 29053377}, {'photo_id': 1397236447, 'portfolio_id': 29053377}, {'photo_id': 1397236445, 'portfolio_id': 29053377}, {'photo_id': 1397236444, 'portfolio_id': 29053377}, {'photo_id': 1397236424, 'portfolio_id': 29053377}, {'photo_id': 1397236419, 'portfolio_id': 29053377}, {'photo_id': 1397236416, 'portfolio_id': 29053377}, {'photo_id': 1397236414, 'portfolio_id': 29053377}, {'photo_id': 1397236413, 'portfolio_id': 29053377}, {'photo_id': 1397236379, 'portfolio_id': 29053377}, {'photo_id': 1397236377, 'portfolio_id': 29053377}, {'photo_id': 1397236376, 'portfolio_id': 29053377}, {'photo_id': 1397236374, 'portfolio_id': 29053377}, {'photo_id': 1397236312, 'portfolio_id': 29053377}, {'photo_id': 1397236220, 'portfolio_id': 29053377}, {'photo_id': 1397236206, 'portfolio_id': 29053377}, {'photo_id': 1397236200, 'portfolio_id': 29053377}, {'photo_id': 1397236198, 'portfolio_id': 29053377}, {'photo_id': 1397236169, 'portfolio_id': 29053377}, {'photo_id': 1397236158, 'portfolio_id': 29053377}, {'photo_id': 1397236149, 'portfolio_id': 29053377}, {'photo_id': 1397236148, 'portfolio_id': 29053377}, {'photo_id': 1397236126, 'portfolio_id': 29053377}, {'photo_id': 1397236122, 'portfolio_id': 29053377}, {'photo_id': 1397236119, 'portfolio_id': 29053377}, {'photo_id': 1397236115, 'portfolio_id': 29053377}, {'photo_id': 1397236112, 'portfolio_id': 29053377}, {'photo_id': 1397236109, 'portfolio_id': 29053377}, {'photo_id': 1397236087, 'portfolio_id': 29053377}, {'photo_id': 1397236082, 'portfolio_id': 29053377}, {'photo_id': 1397236079, 'portfolio_id': 29053377}, {'photo_id': 1397236075, 'portfolio_id': 29053377}, {'photo_id': 1397235992, 'portfolio_id': 29053377}, {'photo_id': 1397235987, 'portfolio_id': 29053377}, {'photo_id': 1397235983, 'portfolio_id': 29053377}, {'photo_id': 1397235978, 'portfolio_id': 29053377}, {'photo_id': 1397235974, 'portfolio_id': 29053377}, {'photo_id': 1397235970, 'portfolio_id': 29053377}, {'photo_id': 1397235926, 'portfolio_id': 29053377}, {'photo_id': 1397235821, 'portfolio_id': 29053377}, {'photo_id': 1397235782, 'portfolio_id': 29053377}, {'photo_id': 1397235764, 'portfolio_id': 29053377}, {'photo_id': 1397235759, 'portfolio_id': 29053377}, {'photo_id': 1397235734, 'portfolio_id': 29053377}, {'photo_id': 1397235305, 'portfolio_id': 29053377}, {'photo_id': 1397235256, 'portfolio_id': 29053377}, {'photo_id': 1397235180, 'portfolio_id': 29053377}, {'photo_id': 1397235135, 'portfolio_id': 29053377}, {'photo_id': 1397234565, 'portfolio_id': 29053377}, {'photo_id': 1397234528, 'portfolio_id': 29053377}, {'photo_id': 1397234452, 'portfolio_id': 29053377}, {'photo_id': 1397234359, 'portfolio_id': 29053377}] map_portfolio_id_photo_id: {29053377: [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474, 1397236459, 1397236455, 1397236450, 1397236447, 1397236445, 1397236444, 1397236424, 1397236419, 1397236416, 1397236414, 1397236413, 1397236379, 1397236377, 1397236376, 1397236374, 1397236312, 1397236220, 1397236206, 1397236200, 1397236198, 1397236169, 1397236158, 1397236149, 1397236148, 1397236126, 1397236122, 1397236119, 1397236115, 1397236112, 1397236109, 1397236087, 1397236082, 1397236079, 1397236075, 1397235992, 1397235987, 1397235983, 1397235978, 1397235974, 1397235970, 1397235926, 1397235821, 1397235782, 1397235764, 1397235759, 1397235734, 1397235305, 1397235256, 1397235180, 1397235135, 1397234565, 1397234528, 1397234452, 1397234359]} ##### 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.021988391876220703 #### 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 Mon Dec 1 15:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29053377) 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 : 29053377 get user id for portfolio 29053377 get sub ptf for main ptf 29053377, type 3726 and hashtags ['metal', 'autre_refus', 'Carton_brun', 'papier', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'cartonnette', 'Carton_gris', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29053377 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Carton_brun','papier','mal_croppe','flou','Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_gris','plastique')) 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`=29053377 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Carton_brun','papier','mal_croppe','flou','Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29053377, 'sub_port_id': 29053385, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746402, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'Carton_brun': {'main_port_id': 29053377, 'sub_port_id': 29053386, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746403, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'environnement': {'main_port_id': 29053377, 'sub_port_id': 29053387, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746404, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'kraft': {'main_port_id': 29053377, 'sub_port_id': 29053388, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746405, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'autre_refus': {'main_port_id': 29053377, 'sub_port_id': 29053389, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746406, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'papier': {'main_port_id': 29053377, 'sub_port_id': 29053390, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746407, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'plastique': {'main_port_id': 29053377, 'sub_port_id': 29053391, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746408, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29053377, 'sub_port_id': 29053392, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746409, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'metal': {'main_port_id': 29053377, 'sub_port_id': 29053393, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746410, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'cartonnette': {'main_port_id': 29053377, 'sub_port_id': 29053394, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746411, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'mal_croppe': {'main_port_id': 29053377, 'sub_port_id': 29053395, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746412, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}, 'Carton_gris': {'main_port_id': 29053377, 'sub_port_id': 29053396, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746413, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053385 , 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=29053377 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 (29053385) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053386 , 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=29053377 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 (29053386) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053387 , 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=29053377 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 (29053387) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053388 , 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=29053377 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 (29053388) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053389 , 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=29053377 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 (29053389) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053390 , 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=29053377 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 (29053390) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053391 , 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=29053377 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 (29053391) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053392 , 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=29053377 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 (29053392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053393 , 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=29053377 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 (29053393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053394 , 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=29053377 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 (29053394) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053395 , 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=29053377 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 (29053395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29053396 , 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=29053377 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 (29053396) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29053377) result : ((1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) 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 (1397236200) and cspi.crop_hashtag_id = chi.id; 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`=29053377 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Carton_brun','papier','mal_croppe','flou','Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_gris','plastique')) 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`=29053377 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Carton_brun','papier','mal_croppe','flou','Teint_Dans_La_Masse','environnement','kraft','cartonnette','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29053377, 'sub_port_id': 29053397, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746414, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'Carton_brun': {'main_port_id': 29053377, 'sub_port_id': 29053398, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746415, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'environnement': {'main_port_id': 29053377, 'sub_port_id': 29053399, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746416, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'kraft': {'main_port_id': 29053377, 'sub_port_id': 29053400, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746417, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'autre_refus': {'main_port_id': 29053377, 'sub_port_id': 29053401, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746418, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'papier': {'main_port_id': 29053377, 'sub_port_id': 29053402, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746419, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'plastique': {'main_port_id': 29053377, 'sub_port_id': 29053403, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746420, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29053377, 'sub_port_id': 29053404, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746421, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'metal': {'main_port_id': 29053377, 'sub_port_id': 29053405, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746422, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'cartonnette': {'main_port_id': 29053377, 'sub_port_id': 29053406, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746423, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'mal_croppe': {'main_port_id': 29053377, 'sub_port_id': 29053407, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746424, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}, 'Carton_gris': {'main_port_id': 29053377, 'sub_port_id': 29053408, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19746425, 'last_updated_at': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 15, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29053408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29053396 lien utilise dans velours : https://marlene.fotonower.com/velours/29053397,29053398,29053399,29053400,29053401,29053402,29053403,29053404,29053405,29053406,29053407,29053408?tags=flou,Carton_brun,environnement,kraft,autre_refus,papier,plastique,Teint_Dans_La_Masse,metal,cartonnette,mal_croppe,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29053377]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] map_info['map_portfolio_photo'] : {29053377: [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474, 1397236459, 1397236455, 1397236450, 1397236447, 1397236445, 1397236444, 1397236424, 1397236419, 1397236416, 1397236414, 1397236413, 1397236379, 1397236377, 1397236376, 1397236374, 1397236312, 1397236220, 1397236206, 1397236200, 1397236198, 1397236169, 1397236158, 1397236149, 1397236148, 1397236126, 1397236122, 1397236119, 1397236115, 1397236112, 1397236109, 1397236087, 1397236082, 1397236079, 1397236075, 1397235992, 1397235987, 1397235983, 1397235978, 1397235974, 1397235970, 1397235926, 1397235821, 1397235782, 1397235764, 1397235759, 1397235734, 1397235305, 1397235256, 1397235180, 1397235135, 1397234565, 1397234528, 1397234452, 1397234359]} final : False mtd_id 4302 list_pids : [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] Looping around the photos to save general results len do output : 1 /29053377. 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, '4147176') ('4302', '29053377', '1397236759', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236725', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236693', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236661', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236570', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236564', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236558', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236555', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236551', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236546', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236539', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236531', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236510', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236508', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236505', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236490', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236488', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236483', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236478', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236476', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236474', None, None, None, None, None, '4147176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '29053377', "{'flou': 29053385, 'Carton_brun': 29053386, 'environnement': 29053387, 'kraft': 29053388, 'autre_refus': 29053389, 'papier': 29053390, 'plastique': 29053391, 'Teint_Dans_La_Masse': 29053392, 'metal': 29053393, 'cartonnette': 29053394, 'mal_croppe': 29053395, 'Carton_gris': 29053396}", None, None, None, None, '4147176'), ('4302', '29053377', '1397236759', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236725', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236693', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236661', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236570', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236564', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236558', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236555', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236551', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236546', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236539', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236531', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236510', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236508', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236505', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236490', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236488', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236483', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236478', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236476', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236474', None, None, None, None, None, '4147176')] time used for this insertion : 0.019843339920043945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5284497737884521 time spend to save output : 0.02022719383239746 total time spend for step 1 : 0.5486769676208496 step2:final Mon Dec 1 15:14:58 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 (29053377) 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 29053377 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397234565,1397234528,1397234452,1397234359,1397235305,1397235256,1397235180,1397235135,1397235926,1397235821,1397235782,1397235764,1397235759,1397235734,1397235992,1397235987,1397235983,1397235978,1397235974,1397235970,1397236087,1397236082,1397236079,1397236075,1397236126,1397236122,1397236119,1397236115,1397236112,1397236109,1397236169,1397236158,1397236149,1397236148,1397236312,1397236220,1397236206,1397236200,1397236198,1397236379,1397236377,1397236376,1397236374,1397236424,1397236419,1397236416,1397236414,1397236413,1397236539,1397236459,1397236531,1397236455,1397236450,1397236510,1397236447,1397236508,1397236445,1397236505,1397236444,1397236490,1397236488,1397236483,1397236478,1397236476,1397236474,1397236570,1397236564,1397236558,1397236555,1397236551,1397236546,1397236759,1397236725,1397236693,1397236661); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29053377]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} new output for save of step final : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] map_info['map_portfolio_photo'] : {29053377: [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474, 1397236459, 1397236455, 1397236450, 1397236447, 1397236445, 1397236444, 1397236424, 1397236419, 1397236416, 1397236414, 1397236413, 1397236379, 1397236377, 1397236376, 1397236374, 1397236312, 1397236220, 1397236206, 1397236200, 1397236198, 1397236169, 1397236158, 1397236149, 1397236148, 1397236126, 1397236122, 1397236119, 1397236115, 1397236112, 1397236109, 1397236087, 1397236082, 1397236079, 1397236075, 1397235992, 1397235987, 1397235983, 1397235978, 1397235974, 1397235970, 1397235926, 1397235821, 1397235782, 1397235764, 1397235759, 1397235734, 1397235305, 1397235256, 1397235180, 1397235135, 1397234565, 1397234528, 1397234452, 1397234359]} final : False mtd_id 4302 list_pids : [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] Looping around the photos to save general results len do output : 21 /1397236759.Didn't retrieve data . /1397236725.Didn't retrieve data . /1397236693.Didn't retrieve data . /1397236661.Didn't retrieve data . /1397236570.Didn't retrieve data . /1397236564.Didn't retrieve data . /1397236558.Didn't retrieve data . /1397236555.Didn't retrieve data . /1397236551.Didn't retrieve data . /1397236546.Didn't retrieve data . /1397236539.Didn't retrieve data . /1397236531.Didn't retrieve data . /1397236510.Didn't retrieve data . /1397236508.Didn't retrieve data . /1397236505.Didn't retrieve data . /1397236490.Didn't retrieve data . /1397236488.Didn't retrieve data . /1397236483.Didn't retrieve data . /1397236478.Didn't retrieve data . /1397236476.Didn't retrieve data . /1397236474.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, '4147176') ('4302', '29053377', '1397236759', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236725', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236693', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236661', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236570', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236564', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236558', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236555', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236551', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236546', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236539', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236531', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236510', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236508', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236505', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236490', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236488', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236483', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236478', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236476', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236474', None, None, None, None, None, '4147176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '29053377', '1397236759', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236725', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236693', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236661', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236570', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236564', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236558', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236555', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236551', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236546', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236539', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236531', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236510', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236508', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236505', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236490', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236488', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236483', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236478', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236476', '0.0', None, None, None, None, '4147176'), ('4302', '29053377', '1397236474', '0.0', None, None, None, None, '4147176')] time used for this insertion : 0.018343210220336914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06561970710754395 time spend to save output : 0.01932525634765625 total time spend for step 2 : 0.0849449634552002 step3:velours_tree Mon Dec 1 15:14:58 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 : {29053377: [{'flou': 29053385, 'Carton_brun': 29053386, 'environnement': 29053387, 'kraft': 29053388, 'autre_refus': 29053389, 'papier': 29053390, 'plastique': 29053391, 'Teint_Dans_La_Masse': 29053392, 'metal': 29053393, 'cartonnette': 29053394, 'mal_croppe': 29053395, 'Carton_gris': 29053396}]} input_args_next_step : {29053377: ()} output_args : {29053377: [{'flou': 29053385, 'Carton_brun': 29053386, 'environnement': 29053387, 'kraft': 29053388, 'autre_refus': 29053389, 'papier': 29053390, 'plastique': 29053391, 'Teint_Dans_La_Masse': 29053392, 'metal': 29053393, 'cartonnette': 29053394, 'mal_croppe': 29053395, 'Carton_gris': 29053396}]} args : 29053377 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 : ({'flou': 29053385, 'Carton_brun': 29053386, 'environnement': 29053387, 'kraft': 29053388, 'autre_refus': 29053389, 'papier': 29053390, 'plastique': 29053391, 'Teint_Dans_La_Masse': 29053392, 'metal': 29053393, 'cartonnette': 29053394, 'mal_croppe': 29053395, 'Carton_gris': 29053396},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29053377) 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([29053377]) 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.2782423496246338 time spend to save output : 5.9604644775390625e-05 total time spend for step 3 : 0.2783019542694092 step4:send_mail_cod Mon Dec 1 15:14:58 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 : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} input_args_next_step : {1397236759: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236759 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236725 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236693 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236661 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236570 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236564 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236558 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236555 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236551 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236546 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236539 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236531 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236510 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236508 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236505 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236490 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236488 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236483 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236478 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236476 depend.output_id : 0 input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ()} output_args : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',)} args : 1397236474 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 : {29053377: [{'flou': 29053385, 'Carton_brun': 29053386, 'environnement': 29053387, 'kraft': 29053388, 'autre_refus': 29053389, 'papier': 29053390, 'plastique': 29053391, 'Teint_Dans_La_Masse': 29053392, 'metal': 29053393, 'cartonnette': 29053394, 'mal_croppe': 29053395, 'Carton_gris': 29053396}]} input_args_next_step : {1397236759: ('0.0',), 1397236725: ('0.0',), 1397236693: ('0.0',), 1397236661: ('0.0',), 1397236570: ('0.0',), 1397236564: ('0.0',), 1397236558: ('0.0',), 1397236555: ('0.0',), 1397236551: ('0.0',), 1397236546: ('0.0',), 1397236539: ('0.0',), 1397236531: ('0.0',), 1397236510: ('0.0',), 1397236508: ('0.0',), 1397236505: ('0.0',), 1397236490: ('0.0',), 1397236488: ('0.0',), 1397236483: ('0.0',), 1397236478: ('0.0',), 1397236476: ('0.0',), 1397236474: ('0.0',), 29053377: ()} output_args : {29053377: [{'flou': 29053385, 'Carton_brun': 29053386, 'environnement': 29053387, 'kraft': 29053388, 'autre_refus': 29053389, 'papier': 29053390, 'plastique': 29053391, 'Teint_Dans_La_Masse': 29053392, 'metal': 29053393, 'cartonnette': 29053394, 'mal_croppe': 29053395, 'Carton_gris': 29053396}]} args : 29053377 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 :22, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29053377) 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 (1397236759,1397236725,1397236693,1397236661,1397236570,1397236564,1397236558,1397236555,1397236551,1397236546,1397236539,1397236531,1397236510,1397236508,1397236505,1397236490,1397236488,1397236483,1397236478,1397236476,1397236474) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397236474 begin to download photo : 1397236490 begin to download photo : 1397236539 begin to download photo : 1397236564 begin to download photo : 1397236759 download finish for photo 1397236490 begin to download photo : 1397236505 download finish for photo 1397236759 download finish for photo 1397236474 begin to download photo : 1397236476 download finish for photo 1397236539 begin to download photo : 1397236546 download finish for photo 1397236564 begin to download photo : 1397236570 download finish for photo 1397236505 begin to download photo : 1397236508 download finish for photo 1397236476 begin to download photo : 1397236478 download finish for photo 1397236508 begin to download photo : 1397236510 download finish for photo 1397236546 begin to download photo : 1397236551 download finish for photo 1397236478 begin to download photo : 1397236483 download finish for photo 1397236570 begin to download photo : 1397236661 download finish for photo 1397236551 begin to download photo : 1397236555 download finish for photo 1397236510 begin to download photo : 1397236531 download finish for photo 1397236483 begin to download photo : 1397236488 download finish for photo 1397236661 begin to download photo : 1397236693 download finish for photo 1397236555 begin to download photo : 1397236558 download finish for photo 1397236488 download finish for photo 1397236531 download finish for photo 1397236693 begin to download photo : 1397236725 download finish for photo 1397236558 download finish for photo 1397236725 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette290533851764598499/ imagette290533881764598499/ imagette290533891764598499/ imagette290533911764598499/ imagette290533931764598499/ imagette290533941764598499/ imagette290533951764598499/ imagette290533861764598499/ imagette290533921764598499/ imagette290533961764598499/ length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P29053377_01-12-2025_15_14_59.pdf 29053385 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=29053385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533851764598499 29053388 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=29053388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533881764598499 29053389 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=29053389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533891764598499 29053391 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=29053391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533911764598499 29053393 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=29053393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533931764598499 29053394 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=29053394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533941764598499 29053395 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=29053395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533951764598499 29053386 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=29053386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533861764598499 29053392 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=29053392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533921764598499 29053396 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=29053396 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290533961764598499 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29053377 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29053397,29053398,29053399,29053400,29053401,29053402,29053403,29053404,29053405,29053406,29053407,29053408?tags=flou,Carton_brun,environnement,kraft,autre_refus,papier,plastique,Teint_Dans_La_Masse,metal,cartonnette,mal_croppe,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1397236759] : ('0.0',) no score found for photo 1397236759 We are sending mail with results at report@fotonower.com args[1397236725] : ('0.0',) no score found for photo 1397236725 We are sending mail with results at report@fotonower.com args[1397236693] : ('0.0',) no score found for photo 1397236693 We are sending mail with results at report@fotonower.com args[1397236661] : ('0.0',) no score found for photo 1397236661 We are sending mail with results at report@fotonower.com args[1397236570] : ('0.0',) no score found for photo 1397236570 We are sending mail with results at report@fotonower.com args[1397236564] : ('0.0',) no score found for photo 1397236564 We are sending mail with results at report@fotonower.com args[1397236558] : ('0.0',) no score found for photo 1397236558 We are sending mail with results at report@fotonower.com args[1397236555] : ('0.0',) no score found for photo 1397236555 We are sending mail with results at report@fotonower.com args[1397236551] : ('0.0',) no score found for photo 1397236551 We are sending mail with results at report@fotonower.com args[1397236546] : ('0.0',) no score found for photo 1397236546 We are sending mail with results at report@fotonower.com args[1397236539] : ('0.0',) no score found for photo 1397236539 We are sending mail with results at report@fotonower.com args[1397236531] : ('0.0',) no score found for photo 1397236531 We are sending mail with results at report@fotonower.com args[1397236510] : ('0.0',) no score found for photo 1397236510 We are sending mail with results at report@fotonower.com args[1397236508] : ('0.0',) no score found for photo 1397236508 We are sending mail with results at report@fotonower.com args[1397236505] : ('0.0',) no score found for photo 1397236505 We are sending mail with results at report@fotonower.com args[1397236490] : ('0.0',) no score found for photo 1397236490 We are sending mail with results at report@fotonower.com args[1397236488] : ('0.0',) no score found for photo 1397236488 We are sending mail with results at report@fotonower.com args[1397236483] : ('0.0',) no score found for photo 1397236483 We are sending mail with results at report@fotonower.com args[1397236478] : ('0.0',) no score found for photo 1397236478 We are sending mail with results at report@fotonower.com args[1397236476] : ('0.0',) no score found for photo 1397236476 We are sending mail with results at report@fotonower.com args[1397236474] : ('0.0',) no score found for photo 1397236474 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=29053377 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_P29053377_01-12-2025_15_14_59.pdf results_Auto_P29053377_01-12-2025_15_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29053377_01-12-2025_15_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29053377','results_Auto_P29053377_01-12-2025_15_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29053377_01-12-2025_15_14_59.pdf','pdf','','0.17','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29053377]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] map_info['map_portfolio_photo'] : {29053377: [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474, 1397236459, 1397236455, 1397236450, 1397236447, 1397236445, 1397236444, 1397236424, 1397236419, 1397236416, 1397236414, 1397236413, 1397236379, 1397236377, 1397236376, 1397236374, 1397236312, 1397236220, 1397236206, 1397236200, 1397236198, 1397236169, 1397236158, 1397236149, 1397236148, 1397236126, 1397236122, 1397236119, 1397236115, 1397236112, 1397236109, 1397236087, 1397236082, 1397236079, 1397236075, 1397235992, 1397235987, 1397235983, 1397235978, 1397235974, 1397235970, 1397235926, 1397235821, 1397235782, 1397235764, 1397235759, 1397235734, 1397235305, 1397235256, 1397235180, 1397235135, 1397234565, 1397234528, 1397234452, 1397234359]} final : False mtd_id 4302 list_pids : [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] 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, '4147176') ('4302', '29053377', '1397236759', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236725', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236693', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236661', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236570', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236564', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236558', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236555', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236551', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236546', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236539', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236531', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236510', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236508', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236505', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236490', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236488', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236483', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236478', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236476', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236474', None, None, None, None, None, '4147176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '29053377', '1397236759', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236725', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236693', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236661', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236570', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236564', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236558', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236555', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236551', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236546', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236539', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236531', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236510', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236508', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236505', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236490', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236488', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236483', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236478', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236476', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236474', None, None, None, None, None, '4147176')] time used for this insertion : 0.01746082305908203 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.510796546936035 time spend to save output : 0.017870664596557617 total time spend for step 4 : 2.5286672115325928 step5:split_time_score Mon Dec 1 15: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 : ['29053377'] 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 : [('29053377',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29053377) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397236759: {'path': 'temp/1764598498_2427629_1397236759_2ebab25a06c5413d59a7de7e9aa82f94.jpg', 'extension': 'jpg'}, 1397236474: {'path': 'temp/1764598498_2427629_1397236474_d040cdc10c9df61accd500e74ec6f102.jpg', 'extension': 'jpg'}, 1397236476: {'path': 'temp/1764598498_2427629_1397236476_246a3559e61155579a9c4f4c3a03e103.jpg', 'extension': 'jpg'}, 1397236478: {'path': 'temp/1764598498_2427629_1397236478_eda11db418754e6362a22e05e977b245.jpg', 'extension': 'jpg'}, 1397236483: {'path': 'temp/1764598498_2427629_1397236483_be5dd3a7c91b8bf8fe7cbf66ef01bade.jpg', 'extension': 'jpg'}, 1397236488: {'path': 'temp/1764598498_2427629_1397236488_16c420006a0276f2584c2369819e17b3.jpg', 'extension': 'jpg'}, 1397236490: {'path': 'temp/1764598498_2427629_1397236490_90e796641550d43ccae4d0ecc650d503.jpg', 'extension': 'jpg'}, 1397236505: {'path': 'temp/1764598498_2427629_1397236505_2b8e58c4de60063242984acd1a4234e3.jpg', 'extension': 'jpg'}, 1397236508: {'path': 'temp/1764598498_2427629_1397236508_704c30433cb23384fc4d9edb318b8a40.jpg', 'extension': 'jpg'}, 1397236510: {'path': 'temp/1764598498_2427629_1397236510_10070ccf4e22525edb56a8609166d381.jpg', 'extension': 'jpg'}, 1397236531: {'path': 'temp/1764598498_2427629_1397236531_5a28b09a27d46b7e715abd08e40a2636.jpg', 'extension': 'jpg'}, 1397236539: {'path': 'temp/1764598498_2427629_1397236539_2874e0f8d67c452b7ca6cc4d5e6ff87e.jpg', 'extension': 'jpg'}, 1397236546: {'path': 'temp/1764598498_2427629_1397236546_4c86ad0fbdaba1853e854677b118753f.jpg', 'extension': 'jpg'}, 1397236551: {'path': 'temp/1764598498_2427629_1397236551_f611cd5e6fcee89a5cd0bc60587f0007.jpg', 'extension': 'jpg'}, 1397236555: {'path': 'temp/1764598498_2427629_1397236555_e40c75ee1f76873e0cd1c591f4690789.jpg', 'extension': 'jpg'}, 1397236558: {'path': 'temp/1764598498_2427629_1397236558_351a99822c145219913d3a5a32e34b12.jpg', 'extension': 'jpg'}, 1397236564: {'path': 'temp/1764598498_2427629_1397236564_b6d62fdaa21b8cb85c9adfca11625bb3.jpg', 'extension': 'jpg'}, 1397236570: {'path': 'temp/1764598498_2427629_1397236570_d77729b0037bf8583e70c0da9e25ac03.jpg', 'extension': 'jpg'}, 1397236661: {'path': 'temp/1764598498_2427629_1397236661_5f65f5d15860812bd889cab1cf6cd21a.jpg', 'extension': 'jpg'}, 1397236693: {'path': 'temp/1764598498_2427629_1397236693_be4fb154df37a975465f8e827887815a.jpg', 'extension': 'jpg'}, 1397236725: {'path': 'temp/1764598498_2427629_1397236725_9646685526742ad4f026ca060f806554.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 = 29053377; (('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 = 29053377 group by h (('15', 75),) 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=29053377 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 (29053377) 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 (29053377) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01122025 29053377 Nombre de photos uploadées : 75 / 23040 (0%) 01122025 29053377 Nombre de photos taguées (types de déchets): 0 / 75 (0%) 01122025 29053377 Nombre de photos taguées (volume) : 0 / 75 (0%) [{'photo_id': 1397234565, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/10edcee11cb7294943406176073bbcd0.jpg', 'username': None, 'uploaded_at': 1764597667, 'text': 'image_01122025_15_00_14_10192.jpg'}, {'photo_id': 1397234528, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4496b5e953616e5d35cd53c9a55d5b77.jpg', 'username': None, 'uploaded_at': 1764597667, 'text': 'image_01122025_15_00_24_10141.jpg'}, {'photo_id': 1397234452, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/88e8316aec5e7b617d8022d9bc34c171.jpg', 'username': None, 'uploaded_at': 1764597667, 'text': 'image_01122025_15_00_34_10138.jpg'}, {'photo_id': 1397234359, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/7cfb285a137f92bd6858b7f0a1f6f107.jpg', 'username': None, 'uploaded_at': 1764597667, 'text': 'image_01122025_15_00_44_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.2159347534179688e-05 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004232883453369141 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29053377, '2025-12-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2671044,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2658703327178955 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= 2671044 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29035031, 'dashboard_result_id': 17909212, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29035264, 'dashboard_result_id': 17909213, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29035717, 'dashboard_result_id': 17909214, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29035848, 'dashboard_result_id': 17909215, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29036243, 'dashboard_result_id': 17909216, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29036694, 'dashboard_result_id': 17909217, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036694_01-12-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036706, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29037055, 'dashboard_result_id': 17909218, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037055_01-12-2025_06_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037122, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29037632, 'dashboard_result_id': 17909219, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037632_01-12-2025_07_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037658, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037669, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29037953, 'dashboard_result_id': 17909220, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_19_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037996, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29038579, 'dashboard_result_id': 17909221, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038579_01-12-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29038584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29038585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29038586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29038587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29038588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29038589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29038590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29038591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29038592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29038593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29038595, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29038983, 'dashboard_result_id': 17909222, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038983_01-12-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29039016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29039017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29039018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29039019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29039020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29039021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29039022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29039023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29039024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29039025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29039026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29039027, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29039568, 'dashboard_result_id': 17909223, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29039568_01-12-2025_08_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29039601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29039602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29039603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29039604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29039605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29039606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29039607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29039608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29039609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29039610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29039611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29039612, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29040029, 'dashboard_result_id': 17909224, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040029_01-12-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29040065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29040066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29040067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29040068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29040069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29040070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29040071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29040072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29040073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29040074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29040075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29040076, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29040695, 'dashboard_result_id': 17909225, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040695_01-12-2025_08_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29040703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29040704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29040705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29040706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29040707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29040708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29040709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29040710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29040711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29040712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29040713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29040714, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29041159, 'dashboard_result_id': 17909226, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041159_01-12-2025_08_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29041171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29041172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29041173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29041174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29041175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29041176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29041177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29041178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29041179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29041180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29041181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29041182, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29041633, 'dashboard_result_id': 17909227, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041633_01-12-2025_09_33_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29041655, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29041656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29041657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29041658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29041659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29041661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29041662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29041663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29041664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29041665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29041666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29041667, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29042707, 'dashboard_result_id': 17909228, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29042707_01-12-2025_09_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29042714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29042715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29042716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29042717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29042718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29042719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29042720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29042721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29042722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29042723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29042724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29042725, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29043192, 'dashboard_result_id': 17909229, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043192_01-12-2025_10_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29043213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29043214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29043215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29043216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29043217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29043218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29043219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29043220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29043221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29043222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29043223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29043224, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29043523, 'dashboard_result_id': 17909230, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043523_01-12-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29043535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29043536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29043537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29043538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29043539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29043540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29043541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29043542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29043543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29043544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29043545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29043546, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29044010, 'dashboard_result_id': 17909231, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044010_01-12-2025_10_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29044027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29044028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29044029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29044030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29044031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29044032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29044033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29044034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29044035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29044036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29044037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29044038, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29044544, 'dashboard_result_id': 17909232, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044544_01-12-2025_10_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29044554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29044555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29044556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29044557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29044558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29044559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29044560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29044561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29044562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29044563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29044564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29044565, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29044978, 'dashboard_result_id': 17909233, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044978_01-12-2025_11_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29045006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29045007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29045008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29045009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29045010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29045011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29045012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29045013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29045014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29045015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29045016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29045017, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29045428, 'dashboard_result_id': 17909234, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045428_01-12-2025_11_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29045473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29045474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29045475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29045476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29045477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29045478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29045479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29045480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29045481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29045482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29045483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29045484, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29045985, 'dashboard_result_id': 17909235, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045985_01-12-2025_11_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29046032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29046033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29046034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29046035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29046036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29046037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29046038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29046039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29046040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29046041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29046042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29046043, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29046814, 'dashboard_result_id': 17909236, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29046814_01-12-2025_11_41_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29046884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29046885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29046886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29046887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29046888, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29046889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29046890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29046891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29046892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29046893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29046894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29046895, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29048023, 'dashboard_result_id': 17909237, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 29048053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29048054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29048055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29048056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29048058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29048059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29048060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29048061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29048062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29048063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29048064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29048066, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29048393, 'dashboard_result_id': 17909238, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29048403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29048404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29048405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29048406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29048407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29048408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29048409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29048410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29048411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29048412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29048413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29048414, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29050949, 'dashboard_result_id': 17909239, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29050949_01-12-2025_14_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29050985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29050986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29050987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29050988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29050989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29050990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29050991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29050992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29050993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29050994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29050995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29050996, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29051507, 'dashboard_result_id': 17909240, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051507_01-12-2025_14_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29051510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29051511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29051512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29051513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29051514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29051515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29051516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29051517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29051518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29051519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29051520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29051521, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29051907, 'dashboard_result_id': 17909241, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051907_01-12-2025_14_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29051913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29051914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29051915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29051916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29051917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29051918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29051919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29051920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29051921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29051922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29051923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29051924, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29052269, 'dashboard_result_id': 17909242, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052269_01-12-2025_14_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29052352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29052353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29052354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29052355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29052356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29052357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29052358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29052359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29052360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29052361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29052362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29052363, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29052764, 'dashboard_result_id': 17909243, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052764_01-12-2025_15_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29052822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29052823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29052824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29052825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29052826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29052827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29052828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29052829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29052830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29052831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29052832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29052833, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2680717, 'mtr_portfolio_id': 29053377, 'dashboard_result_id': 17909244, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29053377_01-12-2025_15_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29053385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29053386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29053387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29053388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29053389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29053390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29053391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29053392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29053393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29053394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29053395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29053396, '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 = 29035031 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4142623, 'mtr_portfolio_id': 29035031, 'created_at': datetime.datetime(2025, 12, 1, 5, 18, 59), 'result': '0.052209996136521615', 'result_long': None, 'result_double': None}] Qualite : 0.052209996136521615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035031 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}" where mtr_portfolio_id = 29035031 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29035031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909212, 0.052209996136521615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29035264 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4142651, 'mtr_portfolio_id': 29035264, 'created_at': datetime.datetime(2025, 12, 1, 5, 41), 'result': '0.04045093731297344', 'result_long': None, 'result_double': None}] Qualite : 0.04045093731297344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035264 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}" where mtr_portfolio_id = 29035264 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29035264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909213, 0.04045093731297344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29035717 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4142721, 'mtr_portfolio_id': 29035717, 'created_at': datetime.datetime(2025, 12, 1, 5, 49), 'result': '0.044011842645829045', 'result_long': None, 'result_double': None}] Qualite : 0.044011842645829045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035717 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}" where mtr_portfolio_id = 29035717 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29035717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909214, 0.044011842645829045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29035848 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4142737, 'mtr_portfolio_id': 29035848, 'created_at': datetime.datetime(2025, 12, 1, 6, 2, 59), 'result': '0.05611569585040716', 'result_long': None, 'result_double': None}] Qualite : 0.05611569585040716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035848 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}" where mtr_portfolio_id = 29035848 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29035848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909215, 0.05611569585040716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29036243 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4142791, 'mtr_portfolio_id': 29036243, 'created_at': datetime.datetime(2025, 12, 1, 6, 19), 'result': '0.05817993189886997', 'result_long': None, 'result_double': None}] Qualite : 0.05817993189886997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29036243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29036243 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, 'pht': 3726}}" where mtr_portfolio_id = 29036243 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29036243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909216, 0.05817993189886997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29036694 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4142859, 'mtr_portfolio_id': 29036694, 'created_at': datetime.datetime(2025, 12, 1, 6, 33), 'result': '0.04455331966731145', 'result_long': None, 'result_double': None}] Qualite : 0.04455331966731145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29036694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036694_01-12-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29036694 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036694_01-12-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036706, 'pht': 3726}}" where mtr_portfolio_id = 29036694 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29036694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909217, 0.04455331966731145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036694_01-12-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036706, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29037055 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4142918, 'mtr_portfolio_id': 29037055, 'created_at': datetime.datetime(2025, 12, 1, 6, 49, 1), 'result': '0.02886405103627226', 'result_long': None, 'result_double': None}] Qualite : 0.02886405103627226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29037055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037055_01-12-2025_06_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29037055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037055_01-12-2025_06_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037122, 'pht': 3726}}" where mtr_portfolio_id = 29037055 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29037055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909218, 0.02886405103627226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037055_01-12-2025_06_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037122, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29037632 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143031, 'mtr_portfolio_id': 29037632, 'created_at': datetime.datetime(2025, 12, 1, 7, 5), 'result': '0.04548725315135064', 'result_long': None, 'result_double': None}] Qualite : 0.04548725315135064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29037632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037632_01-12-2025_07_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29037632 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037632_01-12-2025_07_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037658, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037669, 'pht': 3726}}" where mtr_portfolio_id = 29037632 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29037632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909219, 0.04548725315135064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037632_01-12-2025_07_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037658, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037669, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29037953 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143110, 'mtr_portfolio_id': 29037953, 'created_at': datetime.datetime(2025, 12, 1, 7, 19, 26), 'result': '0.050439325531809694', 'result_long': None, 'result_double': None}] Qualite : 0.050439325531809694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29037953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_19_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29037953 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_19_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037996, 'pht': 3726}}" where mtr_portfolio_id = 29037953 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29037953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909220, 0.050439325531809694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_19_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037996, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29038579 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143173, 'mtr_portfolio_id': 29038579, 'created_at': datetime.datetime(2025, 12, 1, 7, 32, 59), 'result': '0.0606458571260456', 'result_long': None, 'result_double': None}] Qualite : 0.0606458571260456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29038579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038579_01-12-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29038579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038579_01-12-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29038584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29038585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29038586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29038587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29038588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29038589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29038590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29038591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29038592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29038593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29038595, 'pht': 3726}}" where mtr_portfolio_id = 29038579 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29038579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909221, 0.0606458571260456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038579_01-12-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29038584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29038585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29038586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29038587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29038588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29038589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29038590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29038591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29038592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29038593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29038595, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29038983 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143258, 'mtr_portfolio_id': 29038983, 'created_at': datetime.datetime(2025, 12, 1, 7, 48, 59), 'result': '0.046325256114276764', 'result_long': None, 'result_double': None}] Qualite : 0.046325256114276764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29038983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038983_01-12-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29038983 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038983_01-12-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29039016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29039017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29039018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29039019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29039020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29039021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29039022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29039023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29039024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29039025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29039026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29039027, 'pht': 3726}}" where mtr_portfolio_id = 29038983 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29038983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909222, 0.046325256114276764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29038983_01-12-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29039016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29039017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29039018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29039019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29039020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29039021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29039022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29039023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29039024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29039025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29039026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29039027, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29039568 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143365, 'mtr_portfolio_id': 29039568, 'created_at': datetime.datetime(2025, 12, 1, 8, 3), 'result': '0.03802848807857166', 'result_long': None, 'result_double': None}] Qualite : 0.03802848807857166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29039568 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29039568_01-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29039568 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29039568_01-12-2025_08_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29039601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29039602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29039603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29039604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29039605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29039606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29039607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29039608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29039609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29039610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29039611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29039612, 'pht': 3726}}" where mtr_portfolio_id = 29039568 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29039568 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909223, 0.03802848807857166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29039568_01-12-2025_08_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29039601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29039602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29039603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29039604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29039605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29039606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29039607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29039608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29039609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29039610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29039611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29039612, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29040029 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143469, 'mtr_portfolio_id': 29040029, 'created_at': datetime.datetime(2025, 12, 1, 8, 19), 'result': '0.03194452201964104', 'result_long': None, 'result_double': None}] Qualite : 0.03194452201964104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29040029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040029_01-12-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29040029 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040029_01-12-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29040065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29040066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29040067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29040068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29040069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29040070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29040071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29040072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29040073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29040074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29040075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29040076, 'pht': 3726}}" where mtr_portfolio_id = 29040029 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29040029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909224, 0.03194452201964104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040029_01-12-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29040065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29040066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29040067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29040068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29040069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29040070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29040071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29040072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29040073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29040074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29040075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29040076, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29040695 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143567, 'mtr_portfolio_id': 29040695, 'created_at': datetime.datetime(2025, 12, 1, 8, 32, 58), 'result': '0.02952629949014364', 'result_long': None, 'result_double': None}] Qualite : 0.02952629949014364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29040695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040695_01-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29040695 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040695_01-12-2025_08_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29040703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29040704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29040705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29040706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29040707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29040708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29040709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29040710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29040711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29040712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29040713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29040714, 'pht': 3726}}" where mtr_portfolio_id = 29040695 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29040695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909225, 0.02952629949014364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29040695_01-12-2025_08_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29040703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29040704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29040705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29040706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29040707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29040708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29040709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29040710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29040711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29040712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29040713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29040714, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29041159 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143659, 'mtr_portfolio_id': 29041159, 'created_at': datetime.datetime(2025, 12, 1, 8, 49), 'result': '0.055342722563224186', 'result_long': None, 'result_double': None}] Qualite : 0.055342722563224186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29041159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041159_01-12-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29041159 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041159_01-12-2025_08_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29041171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29041172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29041173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29041174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29041175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29041176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29041177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29041178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29041179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29041180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29041181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29041182, 'pht': 3726}}" where mtr_portfolio_id = 29041159 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29041159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909226, 0.055342722563224186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041159_01-12-2025_08_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29041171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29041172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29041173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29041174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29041175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29041176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29041177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29041178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29041179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29041180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29041181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29041182, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29041633 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143727, 'mtr_portfolio_id': 29041633, 'created_at': datetime.datetime(2025, 12, 1, 9, 33, 30), 'result': '0.03155964918550496', 'result_long': None, 'result_double': None}] Qualite : 0.03155964918550496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29041633 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041633_01-12-2025_09_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29041633 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041633_01-12-2025_09_33_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29041655, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29041656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29041657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29041658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29041659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29041661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29041662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29041663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29041664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29041665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29041666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29041667, 'pht': 3726}}" where mtr_portfolio_id = 29041633 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29041633 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909227, 0.03155964918550496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29041633_01-12-2025_09_33_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29041655, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29041656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29041657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29041658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29041659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29041661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29041662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29041663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29041664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29041665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29041666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29041667, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29042707 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143928, 'mtr_portfolio_id': 29042707, 'created_at': datetime.datetime(2025, 12, 1, 9, 48, 58), 'result': '0.033563068859333106', 'result_long': None, 'result_double': None}] Qualite : 0.033563068859333106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29042707 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29042707_01-12-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29042707 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29042707_01-12-2025_09_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29042714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29042715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29042716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29042717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29042718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29042719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29042720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29042721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29042722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29042723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29042724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29042725, 'pht': 3726}}" where mtr_portfolio_id = 29042707 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29042707 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909228, 0.033563068859333106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29042707_01-12-2025_09_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29042714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29042715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29042716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29042717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29042718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29042719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29042720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29042721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29042722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29042723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29042724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29042725, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29043192 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4143989, 'mtr_portfolio_id': 29043192, 'created_at': datetime.datetime(2025, 12, 1, 10, 3, 28), 'result': '0.0294755314786569', 'result_long': None, 'result_double': None}] Qualite : 0.0294755314786569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29043192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043192_01-12-2025_10_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29043192 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043192_01-12-2025_10_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29043213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29043214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29043215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29043216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29043217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29043218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29043219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29043220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29043221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29043222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29043223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29043224, 'pht': 3726}}" where mtr_portfolio_id = 29043192 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29043192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909229, 0.0294755314786569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043192_01-12-2025_10_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29043213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29043214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29043215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29043216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29043217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29043218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29043219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29043220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29043221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29043222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29043223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29043224, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29043523 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4144077, 'mtr_portfolio_id': 29043523, 'created_at': datetime.datetime(2025, 12, 1, 10, 17), 'result': '0.03876755651900516', 'result_long': None, 'result_double': None}] Qualite : 0.03876755651900516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29043523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043523_01-12-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29043523 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043523_01-12-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29043535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29043536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29043537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29043538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29043539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29043540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29043541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29043542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29043543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29043544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29043545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29043546, 'pht': 3726}}" where mtr_portfolio_id = 29043523 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29043523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909230, 0.03876755651900516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29043523_01-12-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29043535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29043536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29043537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29043538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29043539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29043540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29043541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29043542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29043543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29043544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29043545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29043546, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29044010 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4144165, 'mtr_portfolio_id': 29044010, 'created_at': datetime.datetime(2025, 12, 1, 10, 34, 59), 'result': '0.05395578172640818', 'result_long': None, 'result_double': None}] Qualite : 0.05395578172640818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29044010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044010_01-12-2025_10_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29044010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044010_01-12-2025_10_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29044027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29044028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29044029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29044030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29044031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29044032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29044033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29044034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29044035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29044036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29044037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29044038, 'pht': 3726}}" where mtr_portfolio_id = 29044010 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29044010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909231, 0.05395578172640818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044010_01-12-2025_10_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29044027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29044028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29044029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29044030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29044031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29044032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29044033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29044034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29044035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29044036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29044037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29044038, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29044544 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4144308, 'mtr_portfolio_id': 29044544, 'created_at': datetime.datetime(2025, 12, 1, 10, 48, 59), 'result': '0.060140515284643065', 'result_long': None, 'result_double': None}] Qualite : 0.060140515284643065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29044544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044544_01-12-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29044544 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044544_01-12-2025_10_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29044554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29044555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29044556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29044557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29044558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29044559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29044560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29044561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29044562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29044563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29044564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29044565, 'pht': 3726}}" where mtr_portfolio_id = 29044544 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29044544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909232, 0.060140515284643065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044544_01-12-2025_10_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29044554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29044555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29044556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29044557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29044558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29044559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29044560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29044561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29044562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29044563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29044564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29044565, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29044978 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4144469, 'mtr_portfolio_id': 29044978, 'created_at': datetime.datetime(2025, 12, 1, 11, 2, 57), 'result': '0.0529303651376777', 'result_long': None, 'result_double': None}] Qualite : 0.0529303651376777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29044978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044978_01-12-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29044978 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044978_01-12-2025_11_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29045006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29045007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29045008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29045009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29045010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29045011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29045012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29045013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29045014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29045015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29045016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29045017, 'pht': 3726}}" where mtr_portfolio_id = 29044978 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29044978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909233, 0.0529303651376777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29044978_01-12-2025_11_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29045006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29045007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29045008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29045009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29045010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29045011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29045012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29045013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29045014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29045015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29045016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29045017, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29045428 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4144609, 'mtr_portfolio_id': 29045428, 'created_at': datetime.datetime(2025, 12, 1, 11, 19), 'result': '0.034563080103169684', 'result_long': None, 'result_double': None}] Qualite : 0.034563080103169684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29045428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045428_01-12-2025_11_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29045428 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045428_01-12-2025_11_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29045473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29045474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29045475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29045476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29045477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29045478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29045479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29045480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29045481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29045482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29045483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29045484, 'pht': 3726}}" where mtr_portfolio_id = 29045428 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29045428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909234, 0.034563080103169684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045428_01-12-2025_11_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29045473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29045474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29045475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29045476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29045477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29045478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29045479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29045480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29045481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29045482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29045483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29045484, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29045985 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4144815, 'mtr_portfolio_id': 29045985, 'created_at': datetime.datetime(2025, 12, 1, 11, 32, 59), 'result': '0.02031691692585728', 'result_long': None, 'result_double': None}] Qualite : 0.02031691692585728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29045985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045985_01-12-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29045985 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045985_01-12-2025_11_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29046032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29046033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29046034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29046035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29046036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29046037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29046038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29046039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29046040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29046041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29046042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29046043, 'pht': 3726}}" where mtr_portfolio_id = 29045985 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29045985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909235, 0.02031691692585728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29045985_01-12-2025_11_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29046032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29046033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29046034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29046035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29046036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29046037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29046038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29046039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29046040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29046041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29046042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29046043, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29046814 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4145032, 'mtr_portfolio_id': 29046814, 'created_at': datetime.datetime(2025, 12, 1, 12, 1, 13), 'result': '0.031000065986225445', 'result_long': None, 'result_double': None}] Qualite : 0.031000065986225445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29046814 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29046814_01-12-2025_11_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29046814 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29046814_01-12-2025_11_41_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29046884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29046885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29046886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29046887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29046888, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29046889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29046890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29046891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29046892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29046893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29046894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29046895, 'pht': 3726}}" where mtr_portfolio_id = 29046814 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29046814 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909236, 0.031000065986225445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29046814_01-12-2025_11_41_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29046884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29046885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29046886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29046887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29046888, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29046889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29046890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29046891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29046892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29046893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29046894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29046895, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29048023 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29048023 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29048023 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%29048023%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29048023 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 29048053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29048054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29048055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29048056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29048058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29048059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29048060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29048061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29048062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29048063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29048064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29048066, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 29048023 and dashboard_run_id = 2680717 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29048393 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29048393 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29048393 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%29048393%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29048393 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29048403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29048404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29048405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29048406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29048407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29048408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29048409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29048410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29048411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29048412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29048413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29048414, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 29048393 and dashboard_run_id = 2680717 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29050949 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4146770, 'mtr_portfolio_id': 29050949, 'created_at': datetime.datetime(2025, 12, 1, 14, 3, 1), 'result': '0.01786811182674413', 'result_long': None, 'result_double': None}] Qualite : 0.01786811182674413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29050949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29050949_01-12-2025_14_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29050949 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29050949_01-12-2025_14_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29050985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29050986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29050987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29050988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29050989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29050990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29050991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29050992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29050993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29050994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29050995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29050996, 'pht': 3726}}" where mtr_portfolio_id = 29050949 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29050949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909239, 0.01786811182674413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29050949_01-12-2025_14_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29050985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29050986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29050987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29050988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29050989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29050990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29050991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29050992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29050993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29050994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29050995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29050996, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29051507 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4146824, 'mtr_portfolio_id': 29051507, 'created_at': datetime.datetime(2025, 12, 1, 14, 18, 59), 'result': '0.031289457581057376', 'result_long': None, 'result_double': None}] Qualite : 0.031289457581057376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29051507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051507_01-12-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29051507 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051507_01-12-2025_14_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29051510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29051511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29051512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29051513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29051514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29051515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29051516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29051517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29051518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29051519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29051520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29051521, 'pht': 3726}}" where mtr_portfolio_id = 29051507 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29051507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909240, 0.031289457581057376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051507_01-12-2025_14_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29051510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29051511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29051512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29051513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29051514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29051515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29051516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29051517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29051518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29051519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29051520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29051521, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29051907 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4146857, 'mtr_portfolio_id': 29051907, 'created_at': datetime.datetime(2025, 12, 1, 14, 32, 59), 'result': '0.04340098281674764', 'result_long': None, 'result_double': None}] Qualite : 0.04340098281674764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29051907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051907_01-12-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29051907 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051907_01-12-2025_14_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29051913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29051914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29051915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29051916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29051917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29051918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29051919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29051920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29051921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29051922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29051923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29051924, 'pht': 3726}}" where mtr_portfolio_id = 29051907 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29051907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909241, 0.04340098281674764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29051907_01-12-2025_14_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29051913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29051914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29051915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29051916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29051917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29051918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29051919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29051920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29051921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29051922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29051923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29051924, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29052269 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4146915, 'mtr_portfolio_id': 29052269, 'created_at': datetime.datetime(2025, 12, 1, 14, 48, 58), 'result': '0.04554611100629338', 'result_long': None, 'result_double': None}] Qualite : 0.04554611100629338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29052269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052269_01-12-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29052269 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052269_01-12-2025_14_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29052352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29052353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29052354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29052355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29052356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29052357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29052358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29052359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29052360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29052361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29052362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29052363, 'pht': 3726}}" where mtr_portfolio_id = 29052269 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29052269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909242, 0.04554611100629338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052269_01-12-2025_14_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29052352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29052353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29052354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29052355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29052356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29052357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29052358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29052359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29052360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29052361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29052362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29052363, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29052764 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4147028, 'mtr_portfolio_id': 29052764, 'created_at': datetime.datetime(2025, 12, 1, 15, 3, 28), 'result': '0.08409297987016427', 'result_long': None, 'result_double': None}] Qualite : 0.08409297987016427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29052764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052764_01-12-2025_15_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29052764 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052764_01-12-2025_15_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29052822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29052823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29052824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29052825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29052826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29052827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29052828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29052829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29052830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29052831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29052832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29052833, 'pht': 3726}}" where mtr_portfolio_id = 29052764 and dashboard_run_id = 2680717 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29052764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17909243, 0.08409297987016427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29052764_01-12-2025_15_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29052822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29052823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29052824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29052825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29052826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29052827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29052828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29052829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29052830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29052831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29052832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29052833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29053377 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29053377 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29053377 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29053377 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29053377 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29053377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29053377_01-12-2025_15_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29053377 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29053377_01-12-2025_15_14_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29053385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29053386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29053387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29053388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29053389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29053390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29053391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29053392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29053393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29053394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29053395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29053396, 'pht': 3726}}" where mtr_portfolio_id = 29053377 and dashboard_run_id = 2680717 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035031,29035264,29035717,29035848,29036243,29036694,29037055,29037632,29037953,29038579,29038983,29039568,29040029,29040695,29041159,29041633,29042707,29043192,29043523,29044010,29044544,29044978,29045428,29045985,29046814,29048023,29048393,29050949,29051507,29051907,29052269,29052764,29053377) result : ((1397157552,), (1397157615,), (1397157616,), (1397157617,), (1397157618,), (1397157669,), (1397157670,), (1397157688,), (1397157689,), (1397157691,), (1397157693,), (1397157705,), (1397157707,), (1397157709,), (1397157711,), (1397157713,), (1397157739,), (1397157741,), (1397157743,), (1397157754,), (1397157756,), (1397157759,), (1397157762,), (1397157765,), (1397157767,), (1397157774,), (1397157775,), (1397157777,), (1397157780,), (1397157788,), (1397157796,), (1397157798,), (1397157818,), (1397157820,), (1397157821,), (1397157822,), (1397157823,), (1397157824,), (1397157833,), (1397157835,), (1397157836,), (1397157837,), (1397157839,), (1397157876,), (1397157878,), (1397157882,), (1397157883,), (1397157884,), (1397157885,), (1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,), (1397158880,), (1397158883,), (1397158887,), (1397158891,), (1397158894,), (1397158898,), (1397158940,), (1397158944,), (1397158948,), (1397158950,), (1397158988,), (1397158990,), (1397158992,), (1397158994,), (1397158996,), (1397158998,), (1397159016,), (1397159017,), (1397159018,), (1397159020,), (1397159022,), (1397159024,), (1397159030,), (1397159031,), (1397159032,), (1397159035,), (1397159245,), (1397159239,), (1397159241,), (1397159243,), (1397159256,), (1397159258,), (1397159260,), (1397159262,), (1397159264,), (1397159267,), (1397159279,), (1397159281,), (1397159283,), (1397159295,), (1397159299,), (1397159304,), (1397159306,), (1397159308,), (1397159310,), (1397159311,), (1397159312,), (1397159313,), (1397159325,), (1397159328,), (1397159330,), (1397159334,), (1397159338,), (1397159339,), (1397159340,), (1397159341,), (1397159343,), (1397159344,), (1397159358,), (1397159360,), (1397159362,), (1397159364,), (1397159367,), (1397159368,), (1397159369,), (1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,), (1397159554,), (1397159555,), (1397159557,), (1397159559,), (1397159561,), (1397159562,), (1397159595,), (1397159601,), (1397159602,), (1397159604,), (1397159606,), (1397159608,), (1397159611,), (1397159612,), (1397159613,), (1397159614,), (1397159618,), (1397159620,), (1397159622,), (1397159624,), (1397159626,), (1397159633,), (1397159634,), (1397159635,), (1397159636,), (1397159638,), (1397159642,), (1397159657,), (1397159660,), (1397159662,), (1397160059,), (1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,), (1397160516,), (1397160518,), (1397160522,), (1397160526,), (1397160530,), (1397160534,), (1397160542,), (1397160543,), (1397160545,), (1397160547,), (1397160550,), (1397160553,), (1397160559,), (1397160560,), (1397160561,), (1397160570,), (1397160578,), (1397160595,), (1397160602,), (1397160604,), (1397160607,), (1397160610,), (1397160647,), (1397160649,), (1397160651,), (1397160653,), (1397160656,), (1397160658,), (1397160675,), (1397160686,), (1397160694,), (1397160713,), (1397160715,), (1397160716,), (1397160717,), (1397160725,), (1397160753,), (1397160756,), (1397160759,), (1397160774,), (1397160775,), (1397160776,), (1397160746,), (1397160748,), (1397160750,), (1397160781,), (1397160782,), (1397160784,), (1397160786,), (1397160789,), (1397160792,), (1397160805,), (1397160806,), (1397160808,), (1397160810,), (1397160818,), (1397160827,), (1397160836,), (1397160838,), (1397160840,), (1397160842,), (1397160859,), (1397160861,), (1397160863,), (1397160865,), (1397160868,), (1397160880,), (1397160881,), (1397160882,), (1397160883,), (1397160886,), (1397160889,), (1397160899,), (1397160900,), (1397160902,), (1397160904,), (1397160907,), (1397160917,), (1397160919,), (1397160922,), (1397160925,), (1397160929,), (1397160945,), (1397160950,), (1397160952,), (1397160954,), (1397160976,), (1397160977,), (1397160978,), (1397160979,), (1397160982,), (1397160985,), (1397161004,), (1397161015,), (1397161026,), (1397161036,), (1397161039,), (1397161041,), (1397161047,), (1397161049,), (1397161051,), (1397161053,), (1397161055,), (1397161057,), (1397161060,), (1397161061,), (1397161064,), (1397161067,), (1397161087,), (1397161093,), (1397161094,), (1397161095,), (1397161108,), (1397161111,), (1397161113,), (1397161117,), (1397161121,), (1397161124,), (1397161138,), (1397161141,), (1397161143,), (1397161171,), (1397161158,), (1397161160,), (1397161162,), (1397161165,), (1397161169,), (1397161185,), (1397161187,), (1397161189,), (1397161192,), (1397161222,), (1397161223,), (1397161224,), (1397161226,), (1397161246,), (1397161248,), (1397161254,), (1397161262,), (1397161266,), (1397161284,), (1397161285,), (1397161286,), (1397161288,), (1397161291,), (1397161295,), (1397161312,), (1397161314,), (1397161318,), (1397161326,), (1397161329,), (1397161332,), (1397161341,), (1397161342,), (1397161344,), (1397161347,), (1397161349,), (1397161352,), (1397161356,), (1397161360,), (1397161364,), (1397161390,), (1397161392,), (1397161394,), (1397161397,), (1397161418,), (1397161428,), (1397161431,), (1397161435,), (1397161439,), (1397161443,), (1397161454,), (1397161456,), (1397161458,), (1397161467,), (1397161495,), (1397161503,), (1397161513,), (1397161517,), (1397161536,), (1397161538,), (1397161540,), (1397161543,), (1397161547,), (1397161551,), (1397161565,), (1397161566,), (1397161567,), (1397161572,), (1397161612,), (1397161613,), (1397161615,), (1397161618,), (1397161621,), (1397161625,), (1397161645,), (1397161646,), (1397161648,), (1397161650,), (1397161687,), (1397161676,), (1397161677,), (1397161679,), (1397161681,), (1397161684,), (1397161702,), (1397161703,), (1397161705,), (1397161708,), (1397161712,), (1397161730,), (1397161735,), (1397161737,), (1397161741,), (1397161745,), (1397161764,), (1397161774,), (1397161779,), (1397161781,), (1397161785,), (1397161789,), (1397161804,), (1397161806,), (1397161809,), (1397161811,), (1397161832,), (1397161833,), (1397161834,), (1397161836,), (1397161840,), (1397161843,), (1397161858,), (1397161859,), (1397161861,), (1397161890,), (1397161892,), (1397161894,), (1397161897,), (1397161901,), (1397161904,), (1397161915,), (1397161916,), (1397161918,), (1397161922,), (1397161931,), (1397161947,), (1397161949,), (1397161951,), (1397161954,), (1397161957,), (1397161993,), (1397161995,), (1397161998,), (1397162002,), (1397162006,), (1397162009,), (1397162017,), (1397162019,), (1397162021,), (1397162023,), (1397162025,), (1397162030,), (1397162033,), (1397162037,), (1397162040,), (1397162045,), (1397162063,), (1397162066,), (1397162070,), (1397162074,), (1397162078,), (1397162081,), (1397162207,), (1397162242,), (1397162276,), (1397162316,), (1397162351,), (1397162390,), (1397162560,), (1397162643,), (1397162743,), (1397162844,), (1397162933,), (1397163036,), (1397164053,), (1397164072,), (1397164478,), (1397164509,), (1397164552,), (1397164609,), (1397164625,), (1397164627,), (1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,), (1397166906,), (1397166924,), (1397166925,), (1397166955,), (1397166965,), (1397167008,), (1397167010,), (1397167011,), (1397167013,), (1397167018,), (1397167325,), (1397167441,), (1397167474,), (1397167503,), (1397167537,), (1397167567,), (1397167162,), (1397167192,), (1397167222,), (1397167255,), (1397167292,), (1397167666,), (1397167668,), (1397167672,), (1397167676,), (1397167839,), (1397167854,), (1397167859,), (1397167884,), (1397167888,), (1397167892,), (1397167918,), (1397167919,), (1397167921,), (1397167924,), (1397167928,), (1397167954,), (1397167956,), (1397167958,), (1397167961,), (1397167965,), (1397167968,), (1397167987,), (1397167989,), (1397167990,), (1397167992,), (1397168036,), (1397168037,), (1397168039,), (1397168042,), (1397168046,), (1397168074,), (1397168075,), (1397168077,), (1397168080,), (1397168084,), (1397168088,), (1397168108,), (1397168109,), (1397168110,), (1397168111,), (1397168162,), (1397168163,), (1397168165,), (1397168168,), (1397168172,), (1397168175,), (1397168203,), (1397168206,), (1397168209,), (1397168223,), (1397168244,), (1397168249,), (1397168257,), (1397168259,), (1397168262,), (1397168264,), (1397168273,), (1397168276,), (1397168280,), (1397168283,), (1397168286,), (1397168289,), (1397168328,), (1397168333,), (1397168335,), (1397168338,), (1397168360,), (1397168362,), (1397168364,), (1397168368,), (1397168374,), (1397168378,), (1397168413,), (1397168415,), (1397168418,), (1397168421,), (1397168464,), (1397168453,), (1397168454,), (1397168455,), (1397168457,), (1397168461,), (1397168485,), (1397168486,), (1397168488,), (1397168491,), (1397168522,), (1397168524,), (1397168526,), (1397168529,), (1397168533,), (1397168537,), (1397168577,), (1397168578,), (1397168579,), (1397168581,), (1397168970,), (1397169006,), (1397169039,), (1397169077,), (1397169113,), (1397169149,), (1397169243,), (1397169270,), (1397169304,), (1397169348,), (1397169388,), (1397169426,), (1397169477,), (1397169481,), (1397169485,), (1397169515,), (1397169532,), (1397169535,), (1397169539,), (1397169544,), (1397169547,), (1397169551,), (1397169565,), (1397169566,), (1397169567,), (1397169569,), (1397169605,), (1397169607,), (1397169609,), (1397169612,), (1397169620,), (1397169630,), (1397169667,), (1397169675,), (1397169677,), (1397169707,), (1397169709,), (1397169711,), (1397169714,), (1397169718,), (1397169721,), (1397169748,), (1397169750,), (1397169751,), (1397169754,), (1397169807,), (1397169809,), (1397169811,), (1397169815,), (1397169820,), (1397169824,), (1397169848,), (1397169851,), (1397169854,), (1397169859,), (1397169864,), (1397169885,), (1397169887,), (1397169889,), (1397169892,), (1397169896,), (1397169946,), (1397169951,), (1397169962,), (1397169963,), (1397169964,), (1397169966,), (1397169930,), (1397169933,), (1397169937,), (1397169941,), (1397169971,), (1397169975,), (1397169978,), (1397169983,), (1397170015,), (1397170016,), (1397170017,), (1397170019,), (1397170023,), (1397170026,), (1397170057,), (1397170060,), (1397170062,), (1397170091,), (1397170093,), (1397170095,), (1397170100,), (1397170109,), (1397170113,), (1397170135,), (1397170136,), (1397170138,), (1397170161,), (1397170162,), (1397170164,), (1397170174,), (1397170176,), (1397170200,), (1397170203,), (1397170206,), (1397170211,), (1397170232,), (1397170234,), (1397170238,), (1397170240,), (1397170249,), (1397170258,), (1397170277,), (1397170278,), (1397170279,), (1397170283,), (1397170333,), (1397170335,), (1397170337,), (1397170340,), (1397170344,), (1397170346,), (1397170366,), (1397170368,), (1397170369,), (1397170371,), (1397170396,), (1397170397,), (1397170402,), (1397170404,), (1397170407,), (1397170410,), (1397170468,), (1397170504,), (1397170537,), (1397170605,), (1397171384,), (1397171389,), (1397171395,), (1397171432,), (1397171478,), (1397171675,), (1397171218,), (1397171381,), (1397171771,), (1397171775,), (1397171786,), (1397171790,), (1397171792,), (1397171795,), (1397171812,), (1397171814,), (1397171817,), (1397171821,), (1397172075,), (1397172108,), (1397172141,), (1397172176,), (1397172212,), (1397172249,), (1397172394,), (1397172426,), (1397172458,), (1397172484,), (1397172639,), (1397172640,), (1397172642,), (1397172645,), (1397172655,), (1397172667,), (1397172687,), (1397172688,), (1397172691,), (1397172695,), (1397172726,), (1397172728,), (1397172730,), (1397172733,), (1397172736,), (1397172740,), (1397172759,), (1397172763,), (1397172768,), (1397172783,), (1397172793,), (1397172818,), (1397172823,), (1397172828,), (1397172836,), (1397172846,), (1397172850,), (1397172884,), (1397172886,), (1397172888,), (1397172891,), (1397172896,), (1397173035,), (1397173036,), (1397173038,), (1397173040,), (1397173049,), (1397173057,), (1397173111,), (1397173145,), (1397173169,), (1397173180,), (1397173242,), (1397173250,), (1397173257,), (1397173262,), (1397173266,), (1397173270,), (1397173288,), (1397173289,), (1397173290,), (1397173293,), (1397173298,), (1397173350,), (1397173353,), (1397173363,), (1397173365,), (1397173368,), (1397173370,), (1397173339,), (1397173341,), (1397173344,), (1397173348,), (1397173379,), (1397173462,), (1397173475,), (1397173477,), (1397173482,), (1397173486,), (1397173618,), (1397173621,), (1397173623,), (1397173627,), (1397173632,), (1397173653,), (1397173655,), (1397173657,), (1397173706,), (1397173709,), (1397173711,), (1397173715,), (1397173723,), (1397173729,), (1397173760,), (1397173762,), (1397173766,), (1397173768,), (1397173884,), (1397173886,), (1397174013,), (1397174015,), (1397174018,), (1397174022,), (1397174026,), (1397174031,), (1397174058,), (1397174069,), (1397174072,), (1397174076,), (1397174079,), (1397174082,), (1397174091,), (1397174094,), (1397174096,), (1397174099,), (1397174101,), (1397174106,), (1397174109,), (1397174115,), (1397174119,), (1397174124,), (1397174136,), (1397174137,), (1397174140,), (1397174145,), (1397174191,), (1397174192,), (1397174194,), (1397174196,), (1397174230,), (1397174232,), (1397174235,), (1397174238,), (1397174240,), (1397174265,), (1397174367,), (1397174369,), (1397174372,), (1397174375,), (1397174396,), (1397174397,), (1397174399,), (1397174422,), (1397174424,), (1397174427,), (1397174430,), (1397174433,), (1397174437,), (1397174465,), (1397174466,), (1397174469,), (1397174471,), (1397174489,), (1397174491,), (1397174494,), (1397174497,), (1397174518,), (1397174521,), (1397174524,), (1397174528,), (1397174545,), (1397174547,), (1397174575,), (1397174576,), (1397174577,), (1397174578,), (1397174582,), (1397174585,), (1397174614,), (1397174625,), (1397174629,), (1397174631,), (1397174634,), (1397174637,), (1397174649,), (1397174652,), (1397174654,), (1397174656,), (1397174702,), (1397174726,), (1397174734,), (1397174742,), (1397174749,), (1397174757,), (1397174775,), (1397174777,), (1397174781,), (1397174790,), (1397175092,), (1397175095,), (1397175151,), (1397175194,), (1397175229,), (1397175502,), (1397175488,), (1397175491,), (1397175494,), (1397175496,), (1397175499,), (1397175522,), (1397175523,), (1397175525,), (1397175583,), (1397175629,), (1397175664,), (1397175702,), (1397175733,), (1397175918,), (1397175919,), (1397175921,), (1397175922,), (1397175925,), (1397175927,), (1397175945,), (1397175947,), (1397175950,), (1397175952,), (1397175974,), (1397175976,), (1397175978,), (1397175986,), (1397175993,), (1397175995,), (1397176038,), (1397176050,), (1397176053,), (1397176139,), (1397176172,), (1397176207,), (1397176217,), (1397176219,), (1397176221,), (1397176244,), (1397176247,), (1397176249,), (1397176271,), (1397176272,), (1397176332,), (1397176358,), (1397176361,), (1397176364,), (1397176366,), (1397176371,), (1397176421,), (1397176423,), (1397176425,), (1397176427,), (1397176454,), (1397176458,), (1397176462,), (1397176468,), (1397176471,), (1397181846,), (1397181843,), (1397181844,), (1397181880,), (1397181883,), (1397181887,), (1397181891,), (1397181895,), (1397181899,), (1397181932,), (1397181937,), (1397181938,), (1397181939,), (1397181968,), (1397181971,), (1397181973,), (1397181977,), (1397181981,), (1397182014,), (1397182022,), (1397182027,), (1397182033,), (1397182037,), (1397182040,), (1397182066,), (1397182070,), (1397182073,), (1397182075,), (1397182144,), (1397182146,), (1397182148,), (1397182151,), (1397182155,), (1397182159,), (1397182192,), (1397182203,), (1397182238,), (1397182275,), (1397182282,), (1397182327,), (1397182332,), (1397182366,), (1397182400,), (1397182434,), (1397182470,), (1397182473,), (1397182475,), (1397182478,), (1397182481,), (1397182484,), (1397182512,), (1397182514,), (1397182516,), (1397182519,), (1397182569,), (1397182571,), (1397182574,), (1397182577,), (1397182581,), (1397182584,), (1397182647,), (1397182649,), (1397182651,), (1397182653,), (1397182850,), (1397182852,), (1397182855,), (1397182872,), (1397183062,), (1397183036,), (1397183043,), (1397183046,), (1397183049,), (1397183058,), (1397183086,), (1397183088,), (1397183090,), (1397183092,), (1397183180,), (1397183211,), (1397183240,), (1397183280,), (1397183369,), (1397183408,), (1397183464,), (1397183467,), (1397183469,), (1397183472,), (1397183503,), (1397183506,), (1397183508,), (1397183510,), (1397183514,), (1397183538,), (1397183554,), (1397183555,), (1397183557,), (1397183561,), (1397183604,), (1397183607,), (1397183610,), (1397183612,), (1397183638,), (1397183641,), (1397183643,), (1397183645,), (1397183649,), (1397183652,), (1397183679,), (1397183681,), (1397183683,), (1397183685,), (1397183690,), (1397183719,), (1397183721,), (1397183724,), (1397183727,), (1397183758,), (1397183760,), (1397183761,), (1397183763,), (1397183772,), (1397183774,), (1397183796,), (1397183799,), (1397183800,), (1397183803,), (1397183838,), (1397183840,), (1397183842,), (1397183844,), (1397183846,), (1397183851,), (1397183879,), (1397183881,), (1397183885,), (1397183897,), (1397184036,), (1397184037,), (1397184070,), (1397184074,), (1397184106,), (1397184113,), (1397184143,), (1397184150,), (1397184444,), (1397184339,), (1397184371,), (1397184410,), (1397184625,), (1397184674,), (1397184735,), (1397184796,), (1397184857,), (1397185368,), (1397185433,), (1397185471,), (1397185507,), (1397185542,), (1397185965,), (1397186020,), (1397186055,), (1397186114,), (1397186183,), (1397186242,), (1397186471,), (1397186536,), (1397186589,), (1397186621,), (1397186780,), (1397186782,), (1397186784,), (1397186786,), (1397186789,), (1397186816,), (1397186818,), (1397186821,), (1397186825,), (1397186830,), (1397186849,), (1397186853,), (1397186856,), (1397186860,), (1397186865,), (1397186886,), (1397186932,), (1397186941,), (1397186946,), (1397186949,), (1397186979,), (1397186982,), (1397186985,), (1397186989,), (1397187083,), (1397187085,), (1397187089,), (1397187092,), (1397187097,), (1397187160,), (1397187180,), (1397187188,), (1397187256,), (1397187257,), (1397187259,), (1397187261,), (1397187266,), (1397187298,), (1397187301,), (1397187304,), (1397187307,), (1397187338,), (1397187342,), (1397187343,), (1397187344,), (1397187346,), (1397187414,), (1397187396,), (1397187398,), (1397187400,), (1397187407,), (1397187436,), (1397187454,), (1397187464,), (1397187490,), (1397187506,), (1397187530,), (1397187550,), (1397187583,), (1397187620,), (1397187655,), (1397187692,), (1397187821,), (1397187826,), (1397187828,), (1397187853,), (1397187857,), (1397187861,), (1397187948,), (1397187953,), (1397187956,), (1397187958,), (1397187986,), (1397187990,), (1397188026,), (1397188058,), (1397188424,), (1397188425,), (1397188427,), (1397188429,), (1397188435,), (1397188663,), (1397188681,), (1397188693,), (1397188696,), (1397188729,), (1397188733,), (1397188736,), (1397188738,), (1397188742,), (1397188745,), (1397188772,), (1397188775,), (1397188778,), (1397188813,), (1397188816,), (1397188819,), (1397188821,), (1397188826,), (1397188831,), (1397188864,), (1397188868,), (1397188870,), (1397188873,), (1397188917,), (1397188919,), (1397188921,), (1397188924,), (1397188930,), (1397188934,), (1397188956,), (1397188959,), (1397188962,), (1397188992,), (1397188995,), (1397188997,), (1397188998,), (1397189001,), (1397189004,), (1397189045,), (1397189127,), (1397189039,), (1397189040,), (1397189042,), (1397189089,), (1397189093,), (1397189095,), (1397189101,), (1397189105,), (1397189107,), (1397189117,), (1397189121,), (1397189124,), (1397189134,), (1397189135,), (1397189136,), (1397189140,), (1397189143,), (1397189169,), (1397189171,), (1397189173,), (1397189176,), (1397189203,), (1397189205,), (1397189206,), (1397189208,), (1397189212,), (1397189216,), (1397189235,), (1397189237,), (1397189240,), (1397189245,), (1397189249,), (1397189253,), (1397189266,), (1397189267,), (1397189269,), (1397189270,), (1397189272,), (1397189275,), (1397189278,), (1397189283,), (1397189288,), (1397189291,), (1397189311,), (1397189314,), (1397189315,), (1397189319,), (1397189333,), (1397189406,), (1397189408,), (1397189410,), (1397189413,), (1397189415,), (1397189465,), (1397189468,), (1397189470,), (1397189473,), (1397189477,), (1397189501,), (1397189503,), (1397189504,), (1397189506,), (1397189513,), (1397189519,), (1397189562,), (1397189564,), (1397189567,), (1397189570,), (1397189574,), (1397189609,), (1397189613,), (1397189614,), (1397189616,), (1397189620,), (1397189621,), (1397189656,), (1397189659,), (1397189661,), (1397189664,), (1397189696,), (1397189698,), (1397189701,), (1397189703,), (1397189707,), (1397189710,), (1397189763,), (1397189773,), (1397189775,), (1397189777,), (1397189779,), (1397189781,), (1397189783,), (1397189745,), (1397189748,), (1397189751,), (1397189755,), (1397189759,), (1397189801,), (1397189809,), (1397189811,), (1397189820,), (1397189828,), (1397189843,), (1397189846,), (1397189847,), (1397189849,), (1397189859,), (1397189869,), (1397189903,), (1397189905,), (1397189909,), (1397189911,), (1397189957,), (1397189959,), (1397189962,), (1397189965,), (1397189969,), (1397189971,), (1397189989,), (1397189992,), (1397189994,), (1397189997,), (1397190058,), (1397190061,), (1397190063,), (1397190065,), (1397190069,), (1397190073,), (1397190090,), (1397190092,), (1397190095,), (1397190098,), (1397190135,), (1397190137,), (1397190139,), (1397190140,), (1397190144,), (1397190148,), (1397190166,), (1397190170,), (1397190172,), (1397190175,), (1397190200,), (1397190204,), (1397190205,), (1397190207,), (1397190213,), (1397190225,), (1397190249,), (1397190252,), (1397190254,), (1397190256,), (1397190300,), (1397190302,), (1397190304,), (1397190306,), (1397190309,), (1397190336,), (1397190340,), (1397190345,), (1397190348,), (1397190353,), (1397190358,), (1397190416,), (1397190389,), (1397190397,), (1397190410,), (1397190445,), (1397190448,), (1397190451,), (1397190454,), (1397190458,), (1397190461,), (1397190494,), (1397190497,), (1397190499,), (1397190501,), (1397190572,), (1397190575,), (1397190578,), (1397190582,), (1397190586,), (1397190591,), (1397190607,), (1397190610,), (1397190612,), (1397190615,), (1397190619,), (1397190642,), (1397190647,), (1397190651,), (1397190653,), (1397190658,), (1397190663,), (1397190715,), (1397190718,), (1397190719,), (1397190722,), (1397190726,), (1397190755,), (1397190763,), (1397190816,), (1397190819,), (1397190828,), (1397190880,), (1397190882,), (1397190883,), (1397190885,), (1397190899,), (1397190912,), (1397190978,), (1397190980,), (1397190993,), (1397191146,), (1397191152,), (1397191155,), (1397191158,), (1397191162,), (1397191166,), (1397191251,), (1397191255,), (1397191256,), (1397191259,), (1397191263,), (1397191352,), (1397191354,), (1397191357,), (1397191361,), (1397191368,), (1397191396,), (1397191398,), (1397191402,), (1397191406,), (1397191410,), (1397191506,), (1397191442,), (1397191466,), (1397191496,), (1397191499,), (1397191502,), (1397191527,), (1397191535,), (1397191538,), (1397191541,), (1397191570,), (1397191573,), (1397191575,), (1397191579,), (1397191584,), (1397191589,), (1397191614,), (1397191617,), (1397191619,), (1397191648,), (1397191652,), (1397191655,), (1397191659,), (1397191664,), (1397191668,), (1397191920,), (1397191954,), (1397191986,), (1397192017,), (1397192142,), (1397192143,), (1397192145,), (1397192154,), (1397192166,), (1397192171,), (1397192182,), (1397192185,), (1397192190,), (1397192191,), (1397192202,), (1397192207,), (1397192212,), (1397192219,), (1397192267,), (1397192269,), (1397192273,), (1397192277,), (1397192281,), (1397192292,), (1397192361,), (1397192395,), (1397192430,), (1397192472,), (1397192656,), (1397192658,), (1397192666,), (1397192668,), (1397192671,), (1397192707,), (1397192723,), (1397192762,), (1397192775,), (1397192796,), (1397192867,), (1397192869,), (1397192872,), (1397192875,), (1397192878,), (1397192882,), (1397193098,), (1397193130,), (1397193160,), (1397193192,), (1397193662,), (1397193701,), (1397193740,), (1397193746,), (1397193758,), (1397193764,), (1397194040,), (1397193930,), (1397193963,), (1397193998,), (1397194024,), (1397194036,), (1397194176,), (1397194178,), (1397194194,), (1397194203,), (1397194472,), (1397194475,), (1397194476,), (1397194479,), (1397194483,), (1397194487,), (1397194706,), (1397194740,), (1397194781,), (1397194815,), (1397195030,), (1397195033,), (1397195052,), (1397195418,), (1397195430,), (1397195444,), (1397195449,), (1397195479,), (1397195481,), (1397195482,), (1397195485,), (1397195489,), (1397195509,), (1397195510,), (1397195513,), (1397195529,), (1397195618,), (1397195621,), (1397195623,), (1397195633,), (1397195641,), (1397195666,), (1397195668,), (1397195670,), (1397195673,), (1397195677,), (1397195704,), (1397195706,), (1397195708,), (1397195712,), (1397195717,), (1397195749,), (1397195750,), (1397195771,), (1397197912,), (1397197924,), (1397197934,), (1397197944,), (1397197954,), (1397197964,), (1397198114,), (1397198127,), (1397198140,), (1397198152,), (1397198163,), (1397198174,), (1397198471,), (1397198476,), (1397198479,), (1397198482,), (1397198485,), (1397197112,), (1397197114,), (1397197119,), (1397197135,), (1397197143,), (1397197148,), (1397197187,), (1397197190,), (1397197193,), (1397197196,), (1397197199,), (1397197202,), (1397197246,), (1397197249,), (1397197258,), (1397197265,), (1397197278,), (1397197284,), (1397197516,), (1397197519,), (1397197522,), (1397197525,), (1397197528,), (1397197530,), (1397197569,), (1397197573,), (1397197579,), (1397197593,), (1397197604,), (1397197614,), (1397197727,), (1397197730,), (1397197731,), (1397197732,), (1397197733,), (1397197734,), (1397197746,), (1397197750,), (1397197754,), (1397197758,), (1397197761,), (1397197763,), (1397197776,), (1397197779,), (1397197780,), (1397197781,), (1397197782,), (1397197783,), (1397197802,), (1397197806,), (1397197808,), (1397197810,), (1397197812,), (1397197813,), (1397197838,), (1397197843,), (1397197846,), (1397197850,), (1397197854,), (1397197856,), (1397197881,), (1397197885,), (1397197889,), (1397197891,), (1397197892,), (1397197893,), (1397198427,), (1397198430,), (1397198435,), (1397198440,), (1397198446,), (1397198450,), (1397198668,), (1397198617,), (1397198639,), (1397198656,), (1397198835,), (1397198841,), (1397198852,), (1397198854,), (1397199059,), (1397199061,), (1397199063,), (1397199064,), (1397199065,), (1397199066,), (1397199139,), (1397199142,), (1397199145,), (1397199147,), (1397199148,), (1397199193,), (1397199205,), (1397199217,), (1397199228,), (1397199235,), (1397199237,), (1397199273,), (1397199274,), (1397199275,), (1397199276,), (1397199278,), (1397199281,), (1397199300,), (1397199301,), (1397199302,), (1397199303,), (1397199304,), (1397199305,), (1397199306,), (1397199307,), (1397199386,), (1397199401,), (1397199411,), (1397199423,), (1397199434,), (1397199437,), (1397199624,), (1397199626,), (1397199628,), (1397199629,), (1397199630,), (1397200013,), (1397200024,), (1397200035,), (1397200046,), (1397200139,), (1397219823,), (1397221560,), (1397221657,), (1397221667,), (1397221669,), (1397221686,), (1397221785,), (1397222452,), (1397222486,), (1397222514,), (1397223143,), (1397223195,), (1397223233,), (1397223307,), (1397223345,), (1397223605,), (1397223610,), (1397223612,), (1397223640,), (1397223642,), (1397223644,), (1397223647,), (1397223651,), (1397223656,), (1397223673,), (1397223675,), (1397223678,), (1397223682,), (1397223686,), (1397223716,), (1397223718,), (1397223721,), (1397223732,), (1397223755,), (1397224018,), (1397224060,), (1397224098,), (1397224149,), (1397224185,), (1397224322,), (1397224331,), (1397224355,), (1397224373,), (1397224417,), (1397224433,), (1397224435,), (1397224440,), (1397224445,), (1397224852,), (1397224907,), (1397224949,), (1397224991,), (1397225041,), (1397225369,), (1397225666,), (1397225946,), (1397225997,), (1397226006,), (1397226017,), (1397226031,), (1397226036,), (1397226062,), (1397226419,), (1397226427,), (1397226433,), (1397226444,), (1397226484,), (1397226486,), (1397226517,), (1397226765,), (1397226771,), (1397226776,), (1397226779,), (1397226782,), (1397226785,), (1397226840,), (1397226842,), (1397226843,), (1397226845,), (1397226849,), (1397226874,), (1397226877,), (1397226879,), (1397226890,), (1397226897,), (1397226919,), (1397226925,), (1397226934,), (1397226941,), (1397226945,), (1397226972,), (1397226973,), (1397226976,), (1397227033,), (1397227035,), (1397227070,), (1397227105,), (1397227141,), (1397227162,), (1397227209,), (1397227230,), (1397227239,), (1397227246,), (1397227266,), (1397227270,), (1397227476,), (1397227411,), (1397227448,), (1397227466,), (1397227577,), (1397227605,), (1397227607,), (1397227610,), (1397227615,), (1397227619,), (1397227718,), (1397227724,), (1397227756,), (1397227787,), (1397227832,), (1397227833,), (1397227835,), (1397227838,), (1397227841,), (1397227844,), (1397227861,), (1397227863,), (1397227865,), (1397227868,), (1397227893,), (1397227895,), (1397227896,), (1397227898,), (1397227901,), (1397227904,), (1397228030,), (1397228043,), (1397228082,), (1397228117,), (1397228140,), (1397228179,), (1397228181,), (1397228183,), (1397228185,), (1397228189,), (1397228193,), (1397228218,), (1397228220,), (1397228221,), (1397228228,), (1397228238,), (1397228279,), (1397228280,), (1397228281,), (1397228283,), (1397228322,), (1397228355,), (1397228395,), (1397228434,), (1397228473,), (1397228513,), (1397228638,), (1397228642,), (1397228675,), (1397228683,), (1397228845,), (1397228870,), (1397228877,), (1397228880,), (1397228889,), (1397228912,), (1397228913,), (1397228915,), (1397228941,), (1397228982,), (1397229270,), (1397229272,), (1397229276,), (1397229292,), (1397229297,), (1397229380,), (1397229367,), (1397229369,), (1397229370,), (1397229372,), (1397229376,), (1397229422,), (1397229424,), (1397229439,), (1397229442,), (1397229560,), (1397229562,), (1397229564,), (1397229567,), (1397229571,), (1397229575,), (1397229596,), (1397229598,), (1397229599,), (1397229601,), (1397229604,), (1397229626,), (1397229628,), (1397229639,), (1397229680,), (1397229724,), (1397229761,), (1397230290,), (1397230330,), (1397230347,), (1397230358,), (1397230364,), (1397230393,), (1397230441,), (1397230475,), (1397230477,), (1397230486,), (1397230490,), (1397230492,), (1397230496,), (1397230501,), (1397230505,), (1397230513,), (1397230515,), (1397230516,), (1397230518,), (1397230522,), (1397230589,), (1397230599,), (1397230601,), (1397230613,), (1397230626,), (1397230630,), (1397230672,), (1397230674,), (1397230676,), (1397230679,), (1397230701,), (1397230703,), (1397230706,), (1397230710,), (1397230715,), (1397230720,), (1397231216,), (1397231259,), (1397231280,), (1397231287,), (1397231396,), (1397231404,), (1397231406,), (1397231409,), (1397231413,), (1397231437,), (1397231439,), (1397231440,), (1397231442,), (1397231445,), (1397231448,), (1397231507,), (1397231508,), (1397231510,), (1397231955,), (1397231878,), (1397231880,), (1397231896,), (1397231937,), (1397231941,), (1397232054,), (1397232055,), (1397232056,), (1397232081,), (1397232082,), (1397232083,), (1397232085,), (1397232088,), (1397232137,), (1397232139,), (1397232143,), (1397232146,), (1397232485,), (1397232517,), (1397232551,), (1397232587,), (1397232625,), (1397232639,), (1397232707,), (1397232722,), (1397232769,), (1397232843,), (1397232845,), (1397232847,), (1397232856,), (1397232862,), (1397232866,), (1397232920,), (1397232947,), (1397232959,), (1397232962,), (1397232966,), (1397232993,), (1397233017,), (1397233020,), (1397233022,), (1397233143,), (1397233146,), (1397233149,), (1397233154,), (1397233159,), (1397233355,), (1397233361,), (1397233400,), (1397233446,), (1397233500,), (1397233503,), (1397233505,), (1397233509,), (1397233514,), (1397233518,), (1397233563,), (1397233566,), (1397233567,), (1397233704,), (1397233708,), (1397233728,), (1397233766,), (1397233808,), (1397233847,), (1397234636,), (1397234359,), (1397234452,), (1397234528,), (1397234565,), (1397235135,), (1397235180,), (1397235256,), (1397235305,), (1397235734,), (1397235759,), (1397235764,), (1397235782,), (1397235821,), (1397235926,), (1397235970,), (1397235974,), (1397235978,), (1397235983,), (1397235987,), (1397235992,), (1397236075,), (1397236079,), (1397236082,), (1397236087,), (1397236109,), (1397236112,), (1397236115,), (1397236119,), (1397236122,), (1397236126,), (1397236148,), (1397236149,), (1397236158,), (1397236169,), (1397236198,), (1397236200,), (1397236206,), (1397236220,), (1397236312,), (1397236374,), (1397236376,), (1397236377,), (1397236379,), (1397236413,), (1397236414,), (1397236416,), (1397236419,), (1397236424,), (1397236444,), (1397236445,), (1397236447,), (1397236450,), (1397236455,), (1397236459,), (1397236474,), (1397236476,), (1397236478,), (1397236483,), (1397236488,), (1397236490,), (1397236505,), (1397236508,), (1397236510,), (1397236531,), (1397236539,), (1397236546,), (1397236551,), (1397236555,), (1397236558,), (1397236564,), (1397236570,), (1397236661,), (1397236693,), (1397236725,), (1397236759,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01122025': {'nb_upload': 75, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29053377]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] map_info['map_portfolio_photo'] : {29053377: [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474, 1397236459, 1397236455, 1397236450, 1397236447, 1397236445, 1397236444, 1397236424, 1397236419, 1397236416, 1397236414, 1397236413, 1397236379, 1397236377, 1397236376, 1397236374, 1397236312, 1397236220, 1397236206, 1397236200, 1397236198, 1397236169, 1397236158, 1397236149, 1397236148, 1397236126, 1397236122, 1397236119, 1397236115, 1397236112, 1397236109, 1397236087, 1397236082, 1397236079, 1397236075, 1397235992, 1397235987, 1397235983, 1397235978, 1397235974, 1397235970, 1397235926, 1397235821, 1397235782, 1397235764, 1397235759, 1397235734, 1397235305, 1397235256, 1397235180, 1397235135, 1397234565, 1397234528, 1397234452, 1397234359]} final : True mtd_id 4302 list_pids : [1397236759, 1397236725, 1397236693, 1397236661, 1397236570, 1397236564, 1397236558, 1397236555, 1397236551, 1397236546, 1397236539, 1397236531, 1397236510, 1397236508, 1397236505, 1397236490, 1397236488, 1397236483, 1397236478, 1397236476, 1397236474] Looping around the photos to save general results len do output : 1 /29053377Didn'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, '4147176') ('4302', '29053377', '1397236759', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236725', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236693', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236661', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236570', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236564', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236558', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236555', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236551', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236546', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236539', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236531', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236510', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236508', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236505', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236490', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236488', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236483', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236478', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236476', None, None, None, None, None, '4147176') ('4302', None, None, None, None, None, None, None, '4147176') ('4302', '29053377', '1397236474', None, None, None, None, None, '4147176') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '29053377', 'None', None, None, None, None, '4147176'), ('4302', '29053377', '1397236759', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236725', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236693', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236661', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236570', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236564', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236558', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236555', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236551', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236546', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236539', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236531', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236510', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236508', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236505', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236490', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236488', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236483', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236478', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236476', None, None, None, None, None, '4147176'), ('4302', '29053377', '1397236474', None, None, None, None, None, '4147176')] time used for this insertion : 0.018692970275878906 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.253741979598999 time spend to save output : 0.01900625228881836 total time spend for step 5 : 5.272748231887817 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 (4147176) 2.48user 2.40system 0:10.84elapsed 45%CPU (0avgtext+0avgdata 167400maxresident)k 256inputs+12080outputs (3major+79667minor)pagefaults 0swaps