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 : 3465037 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 (3347773) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3347773) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310123 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3347773'] with mtr_portfolio_ids : ['25310123'] and first list_photo_ids : [] new path : /proc/3465037/ Name: python3 Umask: 0002 State: R (running) Tgid: 3465037 Ngid: 0 Pid: 3465037 PPid: 3465036 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3465037 NSpid: 3465037 NSpgid: 3463868 NSsid: 3463868 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98960 kB VmRSS: 98960 kB RssAnon: 59820 kB RssFile: 39140 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 50 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3465037', 'Ngid': '0', 'Pid': '3465037', 'PPid': '3465036', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3465037', 'NSpid': '3465037', 'NSpgid': '3463868', 'NSsid': '3463868', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98960 kB', 'VmRSS': '98960 kB', 'RssAnon': '59820 kB', 'RssFile': '39140 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '50', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3465037', '1106896', '0', '1106896', '865648', '98960', b'', 'marlene', '3347773') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25310123) 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 (3347773 ) ) 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 (25310123) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373659851, 'portfolio_id': 25310123}, {'photo_id': 1373659848, 'portfolio_id': 25310123}, {'photo_id': 1373659846, 'portfolio_id': 25310123}, {'photo_id': 1373659845, 'portfolio_id': 25310123}, {'photo_id': 1373659838, 'portfolio_id': 25310123}, {'photo_id': 1373659831, 'portfolio_id': 25310123}, {'photo_id': 1373659817, 'portfolio_id': 25310123}, {'photo_id': 1373659815, 'portfolio_id': 25310123}, {'photo_id': 1373659812, 'portfolio_id': 25310123}, {'photo_id': 1373659809, 'portfolio_id': 25310123}, {'photo_id': 1373659807, 'portfolio_id': 25310123}, {'photo_id': 1373659803, 'portfolio_id': 25310123}, {'photo_id': 1373659784, 'portfolio_id': 25310123}, {'photo_id': 1373659763, 'portfolio_id': 25310123}, {'photo_id': 1373659761, 'portfolio_id': 25310123}, {'photo_id': 1373659759, 'portfolio_id': 25310123}, {'photo_id': 1373659757, 'portfolio_id': 25310123}, {'photo_id': 1373659756, 'portfolio_id': 25310123}, {'photo_id': 1373659754, 'portfolio_id': 25310123}, {'photo_id': 1373659747, 'portfolio_id': 25310123}, {'photo_id': 1373659746, 'portfolio_id': 25310123}, {'photo_id': 1373659744, 'portfolio_id': 25310123}, {'photo_id': 1373659742, 'portfolio_id': 25310123}, {'photo_id': 1373659741, 'portfolio_id': 25310123}, {'photo_id': 1373659739, 'portfolio_id': 25310123}, {'photo_id': 1373659717, 'portfolio_id': 25310123}, {'photo_id': 1373659715, 'portfolio_id': 25310123}, {'photo_id': 1373659713, 'portfolio_id': 25310123}, {'photo_id': 1373659710, 'portfolio_id': 25310123}, {'photo_id': 1373659703, 'portfolio_id': 25310123}, {'photo_id': 1373659695, 'portfolio_id': 25310123}, {'photo_id': 1373659679, 'portfolio_id': 25310123}, {'photo_id': 1373659676, 'portfolio_id': 25310123}, {'photo_id': 1373659673, 'portfolio_id': 25310123}, {'photo_id': 1373659672, 'portfolio_id': 25310123}, {'photo_id': 1373659670, 'portfolio_id': 25310123}, {'photo_id': 1373659668, 'portfolio_id': 25310123}, {'photo_id': 1373659646, 'portfolio_id': 25310123}, {'photo_id': 1373659643, 'portfolio_id': 25310123}, {'photo_id': 1373659641, 'portfolio_id': 25310123}, {'photo_id': 1373659638, 'portfolio_id': 25310123}, {'photo_id': 1373659636, 'portfolio_id': 25310123}, {'photo_id': 1373659635, 'portfolio_id': 25310123}, {'photo_id': 1373659620, 'portfolio_id': 25310123}, {'photo_id': 1373659615, 'portfolio_id': 25310123}, {'photo_id': 1373659612, 'portfolio_id': 25310123}, {'photo_id': 1373659610, 'portfolio_id': 25310123}, {'photo_id': 1373659607, 'portfolio_id': 25310123}, {'photo_id': 1373659604, 'portfolio_id': 25310123}, {'photo_id': 1373659594, 'portfolio_id': 25310123}, {'photo_id': 1373659591, 'portfolio_id': 25310123}, {'photo_id': 1373659588, 'portfolio_id': 25310123}, {'photo_id': 1373659585, 'portfolio_id': 25310123}, {'photo_id': 1373659581, 'portfolio_id': 25310123}, {'photo_id': 1373659578, 'portfolio_id': 25310123}, {'photo_id': 1373659562, 'portfolio_id': 25310123}, {'photo_id': 1373659560, 'portfolio_id': 25310123}, {'photo_id': 1373659558, 'portfolio_id': 25310123}, {'photo_id': 1373659557, 'portfolio_id': 25310123}, {'photo_id': 1373659552, 'portfolio_id': 25310123}, {'photo_id': 1373659547, 'portfolio_id': 25310123}, {'photo_id': 1373659530, 'portfolio_id': 25310123}, {'photo_id': 1373659528, 'portfolio_id': 25310123}, {'photo_id': 1373659525, 'portfolio_id': 25310123}, {'photo_id': 1373659524, 'portfolio_id': 25310123}, {'photo_id': 1373659521, 'portfolio_id': 25310123}, {'photo_id': 1373659518, 'portfolio_id': 25310123}, {'photo_id': 1373659498, 'portfolio_id': 25310123}, {'photo_id': 1373659477, 'portfolio_id': 25310123}, {'photo_id': 1373659475, 'portfolio_id': 25310123}, {'photo_id': 1373659473, 'portfolio_id': 25310123}, {'photo_id': 1373659466, 'portfolio_id': 25310123}, {'photo_id': 1373659460, 'portfolio_id': 25310123}, {'photo_id': 1373659459, 'portfolio_id': 25310123}] map_portfolio_id_photo_id: {25310123: [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803, 1373659784, 1373659763, 1373659761, 1373659759, 1373659757, 1373659756, 1373659754, 1373659747, 1373659746, 1373659744, 1373659742, 1373659741, 1373659739, 1373659717, 1373659715, 1373659713, 1373659710, 1373659703, 1373659695, 1373659679, 1373659676, 1373659673, 1373659672, 1373659670, 1373659668, 1373659646, 1373659643, 1373659641, 1373659638, 1373659636, 1373659635, 1373659620, 1373659615, 1373659612, 1373659610, 1373659607, 1373659604, 1373659594, 1373659591, 1373659588, 1373659585, 1373659581, 1373659578, 1373659562, 1373659560, 1373659558, 1373659557, 1373659552, 1373659547, 1373659530, 1373659528, 1373659525, 1373659524, 1373659521, 1373659518, 1373659498, 1373659477, 1373659475, 1373659473, 1373659466, 1373659460, 1373659459]} ##### 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.01566624641418457 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Jul 25 05:44:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25310123) 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 : 25310123 get user id for portfolio 25310123 get sub ptf for main ptf 25310123, type 3726 and hashtags ['papier', 'cartonnette', 'mal_croppe', 'Teint_Dans_La_Masse', 'plastique', 'Carton_gris', 'Carton_brun', 'metal', 'flou', 'environnement', 'kraft', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25310123 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun','metal','flou','environnement','kraft','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25310123 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun','metal','flou','environnement','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25310123, 'sub_port_id': 25310129, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073731, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'papier': {'main_port_id': 25310123, 'sub_port_id': 25310130, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073732, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'Carton_brun': {'main_port_id': 25310123, 'sub_port_id': 25310131, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073733, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'flou': {'main_port_id': 25310123, 'sub_port_id': 25310132, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073734, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25310123, 'sub_port_id': 25310133, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073735, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'plastique': {'main_port_id': 25310123, 'sub_port_id': 25310134, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073736, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'environnement': {'main_port_id': 25310123, 'sub_port_id': 25310135, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073737, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'Carton_gris': {'main_port_id': 25310123, 'sub_port_id': 25310136, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073738, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'autre_refus': {'main_port_id': 25310123, 'sub_port_id': 25310137, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073739, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'cartonnette': {'main_port_id': 25310123, 'sub_port_id': 25310138, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073740, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'metal': {'main_port_id': 25310123, 'sub_port_id': 25310139, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073741, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}, 'mal_croppe': {'main_port_id': 25310123, 'sub_port_id': 25310140, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073742, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310129 , 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=25310123 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 (25310129) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310130 , 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=25310123 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 (25310130) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310131 , 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=25310123 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 (25310131) result : ((1373659706,), (1373659707,), (1373659783,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310132 , 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=25310123 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 (25310132) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310133 , 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=25310123 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 (25310133) result : ((1373659697,), (1373659698,), (1373659699,), (1373659700,), (1373659701,), (1373659702,), (1373659737,), (1373659774,), (1373659775,), (1373659776,), (1373659832,), (1373659833,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310134 , 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=25310123 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 (25310134) result : ((1373659708,), (1373659709,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310135 , 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=25310123 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 (25310135) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310136 , 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=25310123 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 (25310136) result : ((1373659839,), (1373659840,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310137 , 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=25310123 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 (25310137) result : ((1373659704,), (1373659777,), (1373659801,), (1373659802,), (1373659835,), (1373659836,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310138 , 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=25310123 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 (25310138) result : ((1373659778,), (1373659779,), (1373659780,), (1373659841,), (1373659842,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310139 , 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=25310123 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 (25310139) result : ((1373659711,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25310140 , 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=25310123 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 (25310140) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25310123) result : ((1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25310123 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun','metal','flou','environnement','kraft','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25310123 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun','metal','flou','environnement','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25310123, 'sub_port_id': 25310142, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073743, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'papier': {'main_port_id': 25310123, 'sub_port_id': 25310143, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073744, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'Carton_brun': {'main_port_id': 25310123, 'sub_port_id': 25310144, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073745, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'flou': {'main_port_id': 25310123, 'sub_port_id': 25310145, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073746, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25310123, 'sub_port_id': 25310146, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073747, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'plastique': {'main_port_id': 25310123, 'sub_port_id': 25310147, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073748, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'environnement': {'main_port_id': 25310123, 'sub_port_id': 25310148, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073749, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'Carton_gris': {'main_port_id': 25310123, 'sub_port_id': 25310149, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073750, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'autre_refus': {'main_port_id': 25310123, 'sub_port_id': 25310150, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073751, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'cartonnette': {'main_port_id': 25310123, 'sub_port_id': 25310151, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073752, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'metal': {'main_port_id': 25310123, 'sub_port_id': 25310152, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073753, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}, 'mal_croppe': {'main_port_id': 25310123, 'sub_port_id': 25310153, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17073754, 'last_updated_at': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 5, 42, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 5, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310142,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310129 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310143,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310130 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310144,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310131 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310145,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310132 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310146,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310133 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310134 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25310153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25310140 lien utilise dans velours : https://www.fotonower.com/velours/25310142,25310143,25310144,25310145,25310146,25310147,25310148,25310149,25310150,25310151,25310152,25310153?tags=kraft,papier,Carton_brun,flou,Teint_Dans_La_Masse,plastique,environnement,Carton_gris,autre_refus,cartonnette,metal,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25310123]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] map_info['map_portfolio_photo'] : {25310123: [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803, 1373659784, 1373659763, 1373659761, 1373659759, 1373659757, 1373659756, 1373659754, 1373659747, 1373659746, 1373659744, 1373659742, 1373659741, 1373659739, 1373659717, 1373659715, 1373659713, 1373659710, 1373659703, 1373659695, 1373659679, 1373659676, 1373659673, 1373659672, 1373659670, 1373659668, 1373659646, 1373659643, 1373659641, 1373659638, 1373659636, 1373659635, 1373659620, 1373659615, 1373659612, 1373659610, 1373659607, 1373659604, 1373659594, 1373659591, 1373659588, 1373659585, 1373659581, 1373659578, 1373659562, 1373659560, 1373659558, 1373659557, 1373659552, 1373659547, 1373659530, 1373659528, 1373659525, 1373659524, 1373659521, 1373659518, 1373659498, 1373659477, 1373659475, 1373659473, 1373659466, 1373659460, 1373659459]} final : False mtd_id 4302 list_pids : [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] Looping around the photos to save general results len do output : 1 /25310123. 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, '3347773') ('4302', '25310123', '1373659851', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659848', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659846', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659845', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659838', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659831', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659817', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659815', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659812', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659809', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659807', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659803', None, None, None, None, None, '3347773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25310123', "{'kraft': 25310129, 'papier': 25310130, 'Carton_brun': 25310131, 'flou': 25310132, 'Teint_Dans_La_Masse': 25310133, 'plastique': 25310134, 'environnement': 25310135, 'Carton_gris': 25310136, 'autre_refus': 25310137, 'cartonnette': 25310138, 'metal': 25310139, 'mal_croppe': 25310140}", None, None, None, None, '3347773'), ('4302', '25310123', '1373659851', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659848', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659846', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659845', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659838', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659831', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659817', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659815', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659812', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659809', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659807', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659803', None, None, None, None, None, '3347773')] time used for this insertion : 0.018735647201538086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7365942001342773 time spend to save output : 0.01909661293029785 total time spend for step 1 : 1.7556908130645752 step2:final Fri Jul 25 05:45:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25310123) 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 25310123 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373659477,1373659475,1373659473,1373659466,1373659460,1373659459,1373659498,1373659530,1373659528,1373659525,1373659524,1373659521,1373659518,1373659562,1373659560,1373659558,1373659557,1373659552,1373659547,1373659594,1373659591,1373659588,1373659585,1373659581,1373659578,1373659620,1373659615,1373659612,1373659610,1373659607,1373659604,1373659646,1373659643,1373659641,1373659638,1373659636,1373659635,1373659679,1373659676,1373659673,1373659672,1373659670,1373659668,1373659717,1373659715,1373659713,1373659710,1373659703,1373659695,1373659747,1373659746,1373659744,1373659742,1373659741,1373659739,1373659763,1373659761,1373659759,1373659757,1373659756,1373659754,1373659784,1373659817,1373659815,1373659812,1373659809,1373659807,1373659803,1373659851,1373659848,1373659846,1373659845,1373659838,1373659831); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25310123]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} new output for save of step final : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] map_info['map_portfolio_photo'] : {25310123: [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803, 1373659784, 1373659763, 1373659761, 1373659759, 1373659757, 1373659756, 1373659754, 1373659747, 1373659746, 1373659744, 1373659742, 1373659741, 1373659739, 1373659717, 1373659715, 1373659713, 1373659710, 1373659703, 1373659695, 1373659679, 1373659676, 1373659673, 1373659672, 1373659670, 1373659668, 1373659646, 1373659643, 1373659641, 1373659638, 1373659636, 1373659635, 1373659620, 1373659615, 1373659612, 1373659610, 1373659607, 1373659604, 1373659594, 1373659591, 1373659588, 1373659585, 1373659581, 1373659578, 1373659562, 1373659560, 1373659558, 1373659557, 1373659552, 1373659547, 1373659530, 1373659528, 1373659525, 1373659524, 1373659521, 1373659518, 1373659498, 1373659477, 1373659475, 1373659473, 1373659466, 1373659460, 1373659459]} final : False mtd_id 4302 list_pids : [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] Looping around the photos to save general results len do output : 12 /1373659851.Didn't retrieve data . /1373659848.Didn't retrieve data . /1373659846.Didn't retrieve data . /1373659845.Didn't retrieve data . /1373659838.Didn't retrieve data . /1373659831.Didn't retrieve data . /1373659817.Didn't retrieve data . /1373659815.Didn't retrieve data . /1373659812.Didn't retrieve data . /1373659809.Didn't retrieve data . /1373659807.Didn't retrieve data . /1373659803.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, '3347773') ('4302', '25310123', '1373659851', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659848', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659846', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659845', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659838', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659831', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659817', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659815', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659812', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659809', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659807', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659803', None, None, None, None, None, '3347773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25310123', '1373659851', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659848', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659846', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659845', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659838', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659831', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659817', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659815', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659812', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659809', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659807', '0.02166378378882364', None, None, None, None, '3347773'), ('4302', '25310123', '1373659803', '0.02166378378882364', None, None, None, None, '3347773')] time used for this insertion : 0.3818976879119873 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3091602325439453 time spend to save output : 0.3824882507324219 total time spend for step 2 : 0.6916484832763672 step3:velours_tree Fri Jul 25 05:45:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25310123: [{'kraft': 25310129, 'papier': 25310130, 'Carton_brun': 25310131, 'flou': 25310132, 'Teint_Dans_La_Masse': 25310133, 'plastique': 25310134, 'environnement': 25310135, 'Carton_gris': 25310136, 'autre_refus': 25310137, 'cartonnette': 25310138, 'metal': 25310139, 'mal_croppe': 25310140}]} input_args_next_step : {25310123: ()} output_args : {25310123: [{'kraft': 25310129, 'papier': 25310130, 'Carton_brun': 25310131, 'flou': 25310132, 'Teint_Dans_La_Masse': 25310133, 'plastique': 25310134, 'environnement': 25310135, 'Carton_gris': 25310136, 'autre_refus': 25310137, 'cartonnette': 25310138, 'metal': 25310139, 'mal_croppe': 25310140}]} args : 25310123 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 : ({'kraft': 25310129, 'papier': 25310130, 'Carton_brun': 25310131, 'flou': 25310132, 'Teint_Dans_La_Masse': 25310133, 'plastique': 25310134, 'environnement': 25310135, 'Carton_gris': 25310136, 'autre_refus': 25310137, 'cartonnette': 25310138, 'metal': 25310139, 'mal_croppe': 25310140},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25310123) 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([25310123]) 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.31328606605529785 time spend to save output : 5.0067901611328125e-05 total time spend for step 3 : 0.3133361339569092 step4:send_mail_cod Fri Jul 25 05:45:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} input_args_next_step : {1373659851: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659851 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659848 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659846 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659845 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659838 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659831 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659817 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659815 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659812 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659809 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659807 depend.output_id : 0 input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ()} output_args : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',)} args : 1373659803 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 : {25310123: [{'kraft': 25310129, 'papier': 25310130, 'Carton_brun': 25310131, 'flou': 25310132, 'Teint_Dans_La_Masse': 25310133, 'plastique': 25310134, 'environnement': 25310135, 'Carton_gris': 25310136, 'autre_refus': 25310137, 'cartonnette': 25310138, 'metal': 25310139, 'mal_croppe': 25310140}]} input_args_next_step : {1373659851: ('0.02166378378882364',), 1373659848: ('0.02166378378882364',), 1373659846: ('0.02166378378882364',), 1373659845: ('0.02166378378882364',), 1373659838: ('0.02166378378882364',), 1373659831: ('0.02166378378882364',), 1373659817: ('0.02166378378882364',), 1373659815: ('0.02166378378882364',), 1373659812: ('0.02166378378882364',), 1373659809: ('0.02166378378882364',), 1373659807: ('0.02166378378882364',), 1373659803: ('0.02166378378882364',), 25310123: ()} output_args : {25310123: [{'kraft': 25310129, 'papier': 25310130, 'Carton_brun': 25310131, 'flou': 25310132, 'Teint_Dans_La_Masse': 25310133, 'plastique': 25310134, 'environnement': 25310135, 'Carton_gris': 25310136, 'autre_refus': 25310137, 'cartonnette': 25310138, 'metal': 25310139, 'mal_croppe': 25310140}]} args : 25310123 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 :13, first value : ('0.02166378378882364',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25310123) 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 ph WHERE photo_id IN (1373659851,1373659848,1373659846,1373659845,1373659838,1373659831,1373659817,1373659815,1373659812,1373659809,1373659807,1373659803) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373659803 begin to download photo : 1373659812 begin to download photo : 1373659831 begin to download photo : 1373659846 download finish for photo 1373659831 begin to download photo : 1373659838 download finish for photo 1373659846 begin to download photo : 1373659848 download finish for photo 1373659812 begin to download photo : 1373659815 download finish for photo 1373659803 begin to download photo : 1373659807 download finish for photo 1373659838 begin to download photo : 1373659845 download finish for photo 1373659807 begin to download photo : 1373659809 download finish for photo 1373659815 begin to download photo : 1373659817 download finish for photo 1373659848 begin to download photo : 1373659851 download finish for photo 1373659845 download finish for photo 1373659809 download finish for photo 1373659817 download finish for photo 1373659851 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette253101291753415102/ imagette253101321753415102/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25310123_25-07-2025_05_45_02.pdf 25310129 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310129 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253101291753415102 25310132 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253101321753415102 25310134 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310134 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373659708: '1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374302_0.png', 1373659709: '1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374305_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/65158343950dc50f922ba1fc960aed1d_93311075.png change filename to text .imagette253101341753415102/ imagette253101341753415102/1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374305_0.png.png imagette253101341753415102/1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374302_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/502e494f1b85c2518ac063584917c0ba_91435686.png imagette253101341753415102 25310137 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310137 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373659704: '1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374304_0.png', 1373659777: '1753414885_1527573_1373659525_1b123fadf03ef51db9b9499a61dde45c_rle_crop_3893374581_0.png', 1373659801: '1753414947_1528901_1373659703_1d9c51cb818f5eaa38205ac5f0c6d00c_rle_crop_3893374699_0.png', 1373659802: '1753414947_1528901_1373659695_e1d697d21ba66e8d9b55ab9b6f926b5c_rle_crop_3893374705_0.png', 1373659835: '1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374902_0.png', 1373659836: '1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374911_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/bad8e9d9be8bf64d42e4f776aa653b2c_57359902.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/4a70f278fa4c5a3b14b8280969d17a00_11623953.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/0233d926b10a27f54e69130f17de6daa_57702914.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/6f7da0adca066960c8e98531527e4ec9_97232429.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/8f0f3e9c9a9c7055d709033ecd95dfc3_36625100.png change filename to text .imagette253101371753415103/ imagette253101371753415103/1753414885_1527573_1373659525_1b123fadf03ef51db9b9499a61dde45c_rle_crop_3893374581_0.png.png imagette253101371753415103/1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374902_0.png.png imagette253101371753415103/1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374304_0.png.png imagette253101371753415103/1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374911_0.png.png imagette253101371753415103/1753414947_1528901_1373659695_e1d697d21ba66e8d9b55ab9b6f926b5c_rle_crop_3893374705_0.png.png imagette253101371753415103/1753414947_1528901_1373659703_1d9c51cb818f5eaa38205ac5f0c6d00c_rle_crop_3893374699_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/cde674e204d8fad230454ea8eb4a9998_37816064.png imagette253101371753415103 25310138 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373659778: '1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374550_0.png', 1373659779: '1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374552_0.png', 1373659780: '1753414885_1527573_1373659528_28e704f5f369316bb70854d12a84af55_rle_crop_3893374571_0.png', 1373659841: '1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374870_0.png', 1373659842: '1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374867_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/c35d44cdc991d9b907869241ba2491ce_94790095.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/f8b7842ad81ad8021798fb215ff7c130_23344284.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/fb0659f4b7e76592c166abb70f9e7844_65758407.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/48d363f0c8c5fcad62c11faff408735c_57849155.png change filename to text .imagette253101381753415103/ imagette253101381753415103/1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374867_0.png.png imagette253101381753415103/1753414885_1527573_1373659528_28e704f5f369316bb70854d12a84af55_rle_crop_3893374571_0.png.png imagette253101381753415103/1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374870_0.png.png imagette253101381753415103/1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374552_0.png.png imagette253101381753415103/1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374550_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/07778c85b865ca163f41bb5cf9022dc2_19124026.png imagette253101381753415103 25310139 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373659711: '1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374303_0.png'} change filename to text .imagette253101391753415103/ imagette253101391753415103/1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374303_0.png.png imagette253101401753415103/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/5d397bc81fc978ed19bec21849370d83_20780850.png imagette253101391753415103 25310140 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253101401753415103 25310131 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373659706: '1753414705_1521297_1373659585_546b1bcdfff7538aac5f2defe0c39978_rle_crop_3893374293_0.png', 1373659707: '1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374311_0.png', 1373659783: '1753414885_1527573_1373659525_1b123fadf03ef51db9b9499a61dde45c_rle_crop_3893374584_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/fd3df88319af91774e0d2ccbc9123b49_24217803.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/5d92c4e760c9186618399322e1c47f46_5152824.png change filename to text .imagette253101311753415103/ imagette253101311753415103/1753414705_1521297_1373659585_546b1bcdfff7538aac5f2defe0c39978_rle_crop_3893374293_0.png.png imagette253101311753415103/1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374311_0.png.png imagette253101311753415103/1753414885_1527573_1373659525_1b123fadf03ef51db9b9499a61dde45c_rle_crop_3893374584_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/e3afa694058466c90412f76e7d6ce32f_51677030.png imagette253101311753415103 25310133 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373659697: '1753414705_1521297_1373659588_186076cdfa61e066edc352b62dced670_rle_crop_3893374281_0.png', 1373659698: '1753414705_1521297_1373659588_186076cdfa61e066edc352b62dced670_rle_crop_3893374274_0.png', 1373659699: '1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374313_0.png', 1373659700: '1753414705_1521297_1373659578_a93dc404d1c9c504e10d6240e4be319d_rle_crop_3893374325_0.png', 1373659701: '1753414705_1521297_1373659578_a93dc404d1c9c504e10d6240e4be319d_rle_crop_3893374331_0.png', 1373659702: '1753414705_1521297_1373659578_a93dc404d1c9c504e10d6240e4be319d_rle_crop_3893374327_0.png', 1373659737: '1753414766_1521911_1373659610_53f5515895142f086c25eb4a5b03152c_rle_crop_3893374425_0.png', 1373659774: '1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374560_0.png', 1373659775: '1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374562_0.png', 1373659776: '1753414885_1527573_1373659525_1b123fadf03ef51db9b9499a61dde45c_rle_crop_3893374587_0.png', 1373659832: '1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374871_0.png', 1373659833: '1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374909_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/6751890333317bf23d9cb025c3cf20e0_85541231.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/d1f589083dab48a140285379a3fc2c79_71857608.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/75a9b53df600f95dc38923c06dededfb_18395012.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/1abaffb9b5d8bd6e1b9638bb95b8a58f_93031211.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/a43123026007f891d600060275512a56_44105074.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/70fb37271fb588e91c821227ec740687_98020362.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/19e3a3236c56cfeb8b85aba45b315f97_64995660.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/ae0bd78ad36ad43c7a932f361444e3cc_28080709.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/d86625ed4ffb7023bc6e81541a85574e_68463062.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/16ce95bc4cbcda63fef98107370cc9ca_37908669.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/a87b0934d2be40cb9657b29b6eac3c47_2400341.png change filename to text .imagette253101331753415103/ imagette253101331753415103/1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374871_0.png.png imagette253101331753415103/1753414885_1527573_1373659525_1b123fadf03ef51db9b9499a61dde45c_rle_crop_3893374587_0.png.png imagette253101331753415103/1753414705_1521297_1373659581_1f280e64cf3685dca036f3f2f9592b2b_rle_crop_3893374313_0.png.png imagette253101331753415103/1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374909_0.png.png imagette253101331753415103/1753414766_1521911_1373659610_53f5515895142f086c25eb4a5b03152c_rle_crop_3893374425_0.png.png imagette253101331753415103/1753414705_1521297_1373659578_a93dc404d1c9c504e10d6240e4be319d_rle_crop_3893374327_0.png.png imagette253101331753415103/1753414705_1521297_1373659578_a93dc404d1c9c504e10d6240e4be319d_rle_crop_3893374325_0.png.png imagette253101331753415103/1753414705_1521297_1373659588_186076cdfa61e066edc352b62dced670_rle_crop_3893374281_0.png.png imagette253101331753415103/1753414705_1521297_1373659588_186076cdfa61e066edc352b62dced670_rle_crop_3893374274_0.png.png imagette253101331753415103/1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374562_0.png.png imagette253101331753415103/1753414885_1527573_1373659530_496b4d7532408fc0441e72abf25d8970_rle_crop_3893374560_0.png.png imagette253101331753415103/1753414705_1521297_1373659578_a93dc404d1c9c504e10d6240e4be319d_rle_crop_3893374331_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/59b4064d79da7b1449a91eb58d1de2f3_87476286.png imagette253101331753415103 25310136 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373659839: '1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374865_0.png', 1373659840: '1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374901_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/7bb92a3d4a67ab8bd1e85a52924a9592_32813175.png change filename to text .imagette253101361753415104/ imagette253101361753415104/1753415005_1532200_1373659679_b9c891fefd54128bb30e636b32347310_rle_crop_3893374865_0.png.png imagette253101361753415104/1753415005_1532200_1373659672_cacafcc25dadbdc741805e27fd0426ca_rle_crop_3893374901_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/13976c9d719f4b4af4ad963d78d90ff4_28697633.png imagette253101361753415104 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25310123 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25310142,25310143,25310144,25310145,25310146,25310147,25310148,25310149,25310150,25310151,25310152,25310153?tags=kraft,papier,Carton_brun,flou,Teint_Dans_La_Masse,plastique,environnement,Carton_gris,autre_refus,cartonnette,metal,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1373659851] : ('0.02166378378882364',) no score found for photo 1373659851 We are sending mail with results at report@fotonower.com args[1373659848] : ('0.02166378378882364',) no score found for photo 1373659848 We are sending mail with results at report@fotonower.com args[1373659846] : ('0.02166378378882364',) no score found for photo 1373659846 We are sending mail with results at report@fotonower.com args[1373659845] : ('0.02166378378882364',) no score found for photo 1373659845 We are sending mail with results at report@fotonower.com args[1373659838] : ('0.02166378378882364',) no score found for photo 1373659838 We are sending mail with results at report@fotonower.com args[1373659831] : ('0.02166378378882364',) no score found for photo 1373659831 We are sending mail with results at report@fotonower.com args[1373659817] : ('0.02166378378882364',) no score found for photo 1373659817 We are sending mail with results at report@fotonower.com args[1373659815] : ('0.02166378378882364',) no score found for photo 1373659815 We are sending mail with results at report@fotonower.com args[1373659812] : ('0.02166378378882364',) no score found for photo 1373659812 We are sending mail with results at report@fotonower.com args[1373659809] : ('0.02166378378882364',) no score found for photo 1373659809 We are sending mail with results at report@fotonower.com args[1373659807] : ('0.02166378378882364',) no score found for photo 1373659807 We are sending mail with results at report@fotonower.com args[1373659803] : ('0.02166378378882364',) no score found for photo 1373659803 We are sending mail with results at report@fotonower.com refus_total : 0.02166378378882364 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310123 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_P25310123_25-07-2025_05_45_02.pdf results_Auto_P25310123_25-07-2025_05_45_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310123_25-07-2025_05_45_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25310123','results_Auto_P25310123_25-07-2025_05_45_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310123_25-07-2025_05_45_02.pdf','pdf','','0.17','0.02166378378882364') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25310123]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] map_info['map_portfolio_photo'] : {25310123: [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803, 1373659784, 1373659763, 1373659761, 1373659759, 1373659757, 1373659756, 1373659754, 1373659747, 1373659746, 1373659744, 1373659742, 1373659741, 1373659739, 1373659717, 1373659715, 1373659713, 1373659710, 1373659703, 1373659695, 1373659679, 1373659676, 1373659673, 1373659672, 1373659670, 1373659668, 1373659646, 1373659643, 1373659641, 1373659638, 1373659636, 1373659635, 1373659620, 1373659615, 1373659612, 1373659610, 1373659607, 1373659604, 1373659594, 1373659591, 1373659588, 1373659585, 1373659581, 1373659578, 1373659562, 1373659560, 1373659558, 1373659557, 1373659552, 1373659547, 1373659530, 1373659528, 1373659525, 1373659524, 1373659521, 1373659518, 1373659498, 1373659477, 1373659475, 1373659473, 1373659466, 1373659460, 1373659459]} final : False mtd_id 4302 list_pids : [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] 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, '3347773') ('4302', '25310123', '1373659851', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659848', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659846', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659845', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659838', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659831', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659817', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659815', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659812', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659809', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659807', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659803', None, None, None, None, None, '3347773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '25310123', '1373659851', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659848', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659846', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659845', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659838', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659831', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659817', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659815', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659812', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659809', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659807', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659803', None, None, None, None, None, '3347773')] time used for this insertion : 0.25012922286987305 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.09751033782959 time spend to save output : 0.2503228187561035 total time spend for step 4 : 3.3478331565856934 step5:split_time_score Fri Jul 25 05:45:05 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 : ['25310123'] 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 : [('25310123',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25310123) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373659831: {'path': 'temp/1753415102_3465037_1373659831_f468bd164f2625ef70ec6a5e5a4cc8c4.jpg', 'extension': 'jpg'}, 1373659838: {'path': 'temp/1753415102_3465037_1373659838_ff3f0b76290c49268268391070f6468a.jpg', 'extension': 'jpg'}, 1373659845: {'path': 'temp/1753415102_3465037_1373659845_2b466b37d21e46fbfd207c46408b88a4.jpg', 'extension': 'jpg'}, 1373659803: {'path': 'temp/1753415102_3465037_1373659803_428f821ebe9800a654a35d3368096c56.jpg', 'extension': 'jpg'}, 1373659807: {'path': 'temp/1753415102_3465037_1373659807_25584c45cd9cc00e815e643348dd4a2f.jpg', 'extension': 'jpg'}, 1373659809: {'path': 'temp/1753415102_3465037_1373659809_64fa08e75812f1549b7c10e8afcf3ec7.jpg', 'extension': 'jpg'}, 1373659812: {'path': 'temp/1753415102_3465037_1373659812_192895bc0ad73aca7dbd167a6a623040.jpg', 'extension': 'jpg'}, 1373659815: {'path': 'temp/1753415102_3465037_1373659815_d7df66fc19b334a3af7ff8cd8bc2c8de.jpg', 'extension': 'jpg'}, 1373659817: {'path': 'temp/1753415102_3465037_1373659817_a75dbda3a0889188db7c715e1aaa9d15.jpg', 'extension': 'jpg'}, 1373659846: {'path': 'temp/1753415102_3465037_1373659846_21ce8790b5ca890d51a41d1b3c4f9bca.jpg', 'extension': 'jpg'}, 1373659848: {'path': 'temp/1753415102_3465037_1373659848_6d701b7cc2e59439ff6985fa418ae1f4.jpg', 'extension': 'jpg'}, 1373659851: {'path': 'temp/1753415102_3465037_1373659851_b557a452b18a20e3eaf33244b6e7efbe.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 = 25310123; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25310123 group by h (('05', 74),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25310123 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 (25310123) 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 (25310123) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25072025 25310123 Nombre de photos uploadées : 74 / 23040 (0%) 25072025 25310123 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 25072025 25310123 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1373659477, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/38714f7fb9875c829cc1191332705cd6.jpg', 'username': None, 'uploaded_at': 1753414263, 'text': 'image_25072025_05_30_04_9127.jpg'}, {'photo_id': 1373659475, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/abf99d6182876a9f47c5ae27ee04108c.jpg', 'username': None, 'uploaded_at': 1753414263, 'text': 'image_25072025_05_30_14_10138.jpg'}, {'photo_id': 1373659473, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/fbc7d0593604a158874b7e338312ba96.jpg', 'username': None, 'uploaded_at': 1753414263, 'text': 'image_25072025_05_30_24_10134.jpg'}, {'photo_id': 1373659466, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/9cffa60bbef352e0923b2705ab7c6250.jpg', 'username': None, 'uploaded_at': 1753414263, 'text': 'image_25072025_05_30_35_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003064393997192383 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25310123, '2025-07-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2006529,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03400397300720215 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= 2006529 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25300799, 'dashboard_result_id': 13083129, '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_P25300799_25-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25300845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25300846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25300847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25300848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25300849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25300850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25300851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25300852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25300853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25300854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25300855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25300856, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25301195, 'dashboard_result_id': 13083130, '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_P25301195_25-07-2025_01_07_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301210, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25301514, 'dashboard_result_id': 13083131, '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_P25301514_25-07-2025_00_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301533, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25301834, 'dashboard_result_id': 13083132, '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_P25301834_25-07-2025_01_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301871, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25302231, 'dashboard_result_id': 13083133, '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_P25302231_25-07-2025_01_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302249, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25302823, 'dashboard_result_id': 13083134, '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_P25302823_25-07-2025_01_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302860, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25303320, 'dashboard_result_id': 13083135, '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_P25303320_25-07-2025_01_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303368, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25303775, 'dashboard_result_id': 13083136, '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_P25303775_25-07-2025_02_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303807, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25304225, 'dashboard_result_id': 13083137, '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_P25304225_25-07-2025_02_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304255, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25304897, 'dashboard_result_id': 13083138, '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_P25304897_25-07-2025_02_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304914, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25305370, 'dashboard_result_id': 13083139, '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_P25305370_25-07-2025_02_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305382, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25305682, 'dashboard_result_id': 13083140, '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_P25305682_25-07-2025_03_00_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305719, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25306068, 'dashboard_result_id': 13083141, '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_P25306068_25-07-2025_03_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25306119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306130, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25306533, 'dashboard_result_id': 13083142, '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_P25306533_25-07-2025_03_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25306569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306580, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25306957, 'dashboard_result_id': 13083143, '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_P25306957_25-07-2025_04_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306974, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25307315, 'dashboard_result_id': 13083144, '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_P25307315_25-07-2025_04_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307332, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25307617, 'dashboard_result_id': 13083145, '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_P25307617_25-07-2025_04_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307671, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25308128, 'dashboard_result_id': 13083146, '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_P25308128_25-07-2025_04_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308151, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25308546, 'dashboard_result_id': 13083147, '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_P25308546_25-07-2025_04_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308563, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25308925, 'dashboard_result_id': 13083148, '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_P25308925_25-07-2025_05_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308937, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25309168, 'dashboard_result_id': 13083149, '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_P25309168_25-07-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309180, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25309704, 'dashboard_result_id': 13083150, '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_P25309704_25-07-2025_05_31_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309752, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2014603, 'mtr_portfolio_id': 25310123, 'dashboard_result_id': 13083151, '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_P25310123_25-07-2025_05_40_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310140, '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 = 25300799 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': 3345608, 'mtr_portfolio_id': 25300799, 'created_at': datetime.datetime(2025, 7, 25, 0, 17), 'result': '0.057063479914127815', 'result_long': None, 'result_double': None}] Qualite : 0.057063479914127815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25300799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25300799_25-07-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25300799 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_P25300799_25-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25300845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25300846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25300847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25300848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25300849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25300850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25300851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25300852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25300853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25300854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25300855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25300856, 'pht': 3726}}" where mtr_portfolio_id = 25300799 and dashboard_run_id = 2014603 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`=25300799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083129, 0.057063479914127815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25300799_25-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25300845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25300846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25300847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25300848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25300849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25300850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25300851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25300852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25300853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25300854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25300855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25300856, '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 = 25301195 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': 3345663, 'mtr_portfolio_id': 25301195, 'created_at': datetime.datetime(2025, 7, 25, 1, 7, 29), 'result': '0.03881167555127673', 'result_long': None, 'result_double': None}] Qualite : 0.03881167555127673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25301195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301195_25-07-2025_01_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25301195 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_P25301195_25-07-2025_01_07_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301210, 'pht': 3726}}" where mtr_portfolio_id = 25301195 and dashboard_run_id = 2014603 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`=25301195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083130, 0.03881167555127673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301195_25-07-2025_01_07_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301210, '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 = 25301514 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': 3345718, 'mtr_portfolio_id': 25301514, 'created_at': datetime.datetime(2025, 7, 25, 0, 46, 59), 'result': '0.0214947703384812', 'result_long': None, 'result_double': None}] Qualite : 0.0214947703384812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25301514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301514_25-07-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25301514 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_P25301514_25-07-2025_00_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301533, 'pht': 3726}}" where mtr_portfolio_id = 25301514 and dashboard_run_id = 2014603 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`=25301514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083131, 0.0214947703384812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301514_25-07-2025_00_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301533, '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 = 25301834 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': 3345799, 'mtr_portfolio_id': 25301834, 'created_at': datetime.datetime(2025, 7, 25, 1, 0, 58), 'result': '0.035788087413267444', 'result_long': None, 'result_double': None}] Qualite : 0.035788087413267444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25301834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301834_25-07-2025_01_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25301834 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_P25301834_25-07-2025_01_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301871, 'pht': 3726}}" where mtr_portfolio_id = 25301834 and dashboard_run_id = 2014603 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`=25301834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083132, 0.035788087413267444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301834_25-07-2025_01_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301871, '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 = 25302231 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 = 25302231 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 = 25302231 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25302231 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 = 25302231 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3345904, 'mtr_portfolio_id': 25302231, 'created_at': datetime.datetime(2025, 7, 25, 1, 17), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25302231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302231_25-07-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25302231 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_P25302231_25-07-2025_01_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302249, 'pht': 3726}}" where mtr_portfolio_id = 25302231 and dashboard_run_id = 2014603 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`=25302231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083133, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302231_25-07-2025_01_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302249, '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 = 25302823 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 = 25302823 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 = 25302823 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25302823 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 = 25302823 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3346000, 'mtr_portfolio_id': 25302823, 'created_at': datetime.datetime(2025, 7, 25, 1, 32, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25302823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302823_25-07-2025_01_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25302823 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_P25302823_25-07-2025_01_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302860, 'pht': 3726}}" where mtr_portfolio_id = 25302823 and dashboard_run_id = 2014603 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`=25302823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083134, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302823_25-07-2025_01_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302860, '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 = 25303320 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': 3346097, 'mtr_portfolio_id': 25303320, 'created_at': datetime.datetime(2025, 7, 25, 1, 46, 59), 'result': '0.023712583617140674', 'result_long': None, 'result_double': None}] Qualite : 0.023712583617140674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25303320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303320_25-07-2025_01_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25303320 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_P25303320_25-07-2025_01_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303368, 'pht': 3726}}" where mtr_portfolio_id = 25303320 and dashboard_run_id = 2014603 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`=25303320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083135, 0.023712583617140674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303320_25-07-2025_01_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303368, '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 = 25303775 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': 3346215, 'mtr_portfolio_id': 25303775, 'created_at': datetime.datetime(2025, 7, 25, 2, 0, 58), 'result': '0.03325099951023666', 'result_long': None, 'result_double': None}] Qualite : 0.03325099951023666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25303775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303775_25-07-2025_02_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25303775 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_P25303775_25-07-2025_02_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303807, 'pht': 3726}}" where mtr_portfolio_id = 25303775 and dashboard_run_id = 2014603 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`=25303775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083136, 0.03325099951023666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303775_25-07-2025_02_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303807, '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 = 25304225 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': 3346323, 'mtr_portfolio_id': 25304225, 'created_at': datetime.datetime(2025, 7, 25, 2, 16, 31), 'result': '0.05288500366378851', 'result_long': None, 'result_double': None}] Qualite : 0.05288500366378851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25304225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304225_25-07-2025_02_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25304225 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_P25304225_25-07-2025_02_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304255, 'pht': 3726}}" where mtr_portfolio_id = 25304225 and dashboard_run_id = 2014603 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`=25304225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083137, 0.05288500366378851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304225_25-07-2025_02_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304255, '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 = 25304897 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': 3346451, 'mtr_portfolio_id': 25304897, 'created_at': datetime.datetime(2025, 7, 25, 2, 30, 59), 'result': '0.035530066849498915', 'result_long': None, 'result_double': None}] Qualite : 0.035530066849498915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25304897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304897_25-07-2025_02_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25304897 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_P25304897_25-07-2025_02_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304914, 'pht': 3726}}" where mtr_portfolio_id = 25304897 and dashboard_run_id = 2014603 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`=25304897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083138, 0.035530066849498915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304897_25-07-2025_02_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304914, '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 = 25305370 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': 3346560, 'mtr_portfolio_id': 25305370, 'created_at': datetime.datetime(2025, 7, 25, 2, 46, 56), 'result': '0.0581784423028537', 'result_long': None, 'result_double': None}] Qualite : 0.0581784423028537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25305370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305370_25-07-2025_02_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25305370 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_P25305370_25-07-2025_02_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305382, 'pht': 3726}}" where mtr_portfolio_id = 25305370 and dashboard_run_id = 2014603 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`=25305370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083139, 0.0581784423028537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305370_25-07-2025_02_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305382, '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 = 25305682 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': 3346644, 'mtr_portfolio_id': 25305682, 'created_at': datetime.datetime(2025, 7, 25, 3, 0, 56), 'result': '0.019152400799091304', 'result_long': None, 'result_double': None}] Qualite : 0.019152400799091304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25305682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305682_25-07-2025_03_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25305682 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_P25305682_25-07-2025_03_00_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305719, 'pht': 3726}}" where mtr_portfolio_id = 25305682 and dashboard_run_id = 2014603 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`=25305682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083140, 0.019152400799091304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305682_25-07-2025_03_00_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305719, '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 = 25306068 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': 3346759, 'mtr_portfolio_id': 25306068, 'created_at': datetime.datetime(2025, 7, 25, 3, 16, 58), 'result': '0.035909416526240454', 'result_long': None, 'result_double': None}] Qualite : 0.035909416526240454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25306068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306068_25-07-2025_03_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25306068 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_P25306068_25-07-2025_03_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25306119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306130, 'pht': 3726}}" where mtr_portfolio_id = 25306068 and dashboard_run_id = 2014603 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`=25306068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083141, 0.035909416526240454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306068_25-07-2025_03_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25306119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306130, '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 = 25306533 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': 3346841, 'mtr_portfolio_id': 25306533, 'created_at': datetime.datetime(2025, 7, 25, 3, 30, 58), 'result': '0.06161738088854211', 'result_long': None, 'result_double': None}] Qualite : 0.06161738088854211 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25306533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306533_25-07-2025_03_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25306533 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_P25306533_25-07-2025_03_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25306569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306580, 'pht': 3726}}" where mtr_portfolio_id = 25306533 and dashboard_run_id = 2014603 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`=25306533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083142, 0.06161738088854211, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306533_25-07-2025_03_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25306569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306580, '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 = 25306957 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': 3346965, 'mtr_portfolio_id': 25306957, 'created_at': datetime.datetime(2025, 7, 25, 4, 2, 58), 'result': '0.05233361114481559', 'result_long': None, 'result_double': None}] Qualite : 0.05233361114481559 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25306957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306957_25-07-2025_04_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25306957 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_P25306957_25-07-2025_04_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306974, 'pht': 3726}}" where mtr_portfolio_id = 25306957 and dashboard_run_id = 2014603 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`=25306957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083143, 0.05233361114481559, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306957_25-07-2025_04_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306974, '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 = 25307315 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': 3347085, 'mtr_portfolio_id': 25307315, 'created_at': datetime.datetime(2025, 7, 25, 4, 3, 28), 'result': '0.04849797766788588', 'result_long': None, 'result_double': None}] Qualite : 0.04849797766788588 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25307315 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307315_25-07-2025_04_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25307315 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_P25307315_25-07-2025_04_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307332, 'pht': 3726}}" where mtr_portfolio_id = 25307315 and dashboard_run_id = 2014603 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`=25307315 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083144, 0.04849797766788588, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307315_25-07-2025_04_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307332, '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 = 25307617 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': 3347169, 'mtr_portfolio_id': 25307617, 'created_at': datetime.datetime(2025, 7, 25, 4, 16, 58), 'result': '0.026136519163759364', 'result_long': None, 'result_double': None}] Qualite : 0.026136519163759364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25307617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307617_25-07-2025_04_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25307617 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_P25307617_25-07-2025_04_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307671, 'pht': 3726}}" where mtr_portfolio_id = 25307617 and dashboard_run_id = 2014603 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`=25307617 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083145, 0.026136519163759364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307617_25-07-2025_04_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307671, '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 = 25308128 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': 3347271, 'mtr_portfolio_id': 25308128, 'created_at': datetime.datetime(2025, 7, 25, 4, 30, 57), 'result': '0.026047547465223413', 'result_long': None, 'result_double': None}] Qualite : 0.026047547465223413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25308128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308128_25-07-2025_04_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25308128 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_P25308128_25-07-2025_04_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308151, 'pht': 3726}}" where mtr_portfolio_id = 25308128 and dashboard_run_id = 2014603 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`=25308128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083146, 0.026047547465223413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308128_25-07-2025_04_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308151, '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 = 25308546 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': 3347376, 'mtr_portfolio_id': 25308546, 'created_at': datetime.datetime(2025, 7, 25, 4, 46, 58), 'result': '0.03994680229546799', 'result_long': None, 'result_double': None}] Qualite : 0.03994680229546799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25308546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308546_25-07-2025_04_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25308546 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_P25308546_25-07-2025_04_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308563, 'pht': 3726}}" where mtr_portfolio_id = 25308546 and dashboard_run_id = 2014603 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`=25308546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083147, 0.03994680229546799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308546_25-07-2025_04_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308563, '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 = 25308925 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': 3347502, 'mtr_portfolio_id': 25308925, 'created_at': datetime.datetime(2025, 7, 25, 5, 0, 58), 'result': '0.017531745167620853', 'result_long': None, 'result_double': None}] Qualite : 0.017531745167620853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25308925 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308925_25-07-2025_05_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25308925 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_P25308925_25-07-2025_05_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308937, 'pht': 3726}}" where mtr_portfolio_id = 25308925 and dashboard_run_id = 2014604 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`=25308925 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083148, 0.017531745167620853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308925_25-07-2025_05_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308937, '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 = 25309168 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': 3347591, 'mtr_portfolio_id': 25309168, 'created_at': datetime.datetime(2025, 7, 25, 5, 16, 58), 'result': '0.05786782151340039', 'result_long': None, 'result_double': None}] Qualite : 0.05786782151340039 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25309168 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309168_25-07-2025_05_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25309168 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_P25309168_25-07-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309180, 'pht': 3726}}" where mtr_portfolio_id = 25309168 and dashboard_run_id = 2014604 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`=25309168 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083149, 0.05786782151340039, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309168_25-07-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309180, '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 = 25309704 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': 3347674, 'mtr_portfolio_id': 25309704, 'created_at': datetime.datetime(2025, 7, 25, 5, 31), 'result': '0.0396846557909548', 'result_long': None, 'result_double': None}] Qualite : 0.0396846557909548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25309704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309704_25-07-2025_05_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25309704 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_P25309704_25-07-2025_05_31_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309752, 'pht': 3726}}" where mtr_portfolio_id = 25309704 and dashboard_run_id = 2014604 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`=25309704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083150, 0.0396846557909548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309704_25-07-2025_05_31_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309752, '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 = 25310123 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': 3347773, 'mtr_portfolio_id': 25310123, 'created_at': datetime.datetime(2025, 7, 25, 5, 45, 1), 'result': '0.02166378378882364', 'result_long': None, 'result_double': None}] Qualite : 0.02166378378882364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25310123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310123_25-07-2025_05_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25310123 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_P25310123_25-07-2025_05_45_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310140, 'pht': 3726}}" where mtr_portfolio_id = 25310123 and dashboard_run_id = 2014604 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`=25310123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13083151, 0.02166378378882364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310123_25-07-2025_05_45_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310140, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25300799,25301195,25301514,25301834,25302231,25302823,25303320,25303775,25304225,25304897,25305370,25305682,25306068,25306533,25306957,25307315,25307617,25308128,25308546,25308925,25309168,25309704,25310123) result : ((1373635295,), (1373635319,), (1373635348,), (1373635372,), (1373635398,), (1373635441,), (1373635615,), (1373635639,), (1373635657,), (1373635660,), (1373635673,), (1373635677,), (1373635680,), (1373635683,), (1373635701,), (1373635726,), (1373635731,), (1373635734,), (1373635736,), (1373635737,), (1373635739,), (1373635750,), (1373635772,), (1373635781,), (1373635784,), (1373635788,), (1373635790,), (1373635795,), (1373635812,), (1373635819,), (1373635825,), (1373635832,), (1373635834,), (1373635836,), (1373635874,), (1373635878,), (1373635880,), (1373635884,), (1373635889,), (1373635897,), (1373636062,), (1373636088,), (1373636114,), (1373636122,), (1373636125,), (1373636128,), (1373636145,), (1373636201,), (1373636211,), (1373636226,), (1373636265,), (1373636316,), (1373636320,), (1373636423,), (1373636434,), (1373636440,), (1373636442,), (1373636456,), (1373636485,), (1373636688,), (1373636723,), (1373636727,), (1373636729,), (1373636730,), (1373636732,), (1373636735,), (1373636833,), (1373637138,), (1373637146,), (1373637159,), (1373637188,), (1373637205,), (1373637208,), (1373637220,), (1373637224,), (1373637227,), (1373637229,), (1373637230,), (1373637233,), (1373637254,), (1373637260,), (1373637262,), (1373637264,), (1373637266,), (1373637269,), (1373637277,), (1373637302,), (1373637307,), (1373637316,), (1373637318,), (1373637321,), (1373637323,), (1373637342,), (1373637345,), (1373637348,), (1373637353,), (1373637358,), (1373637362,), (1373637367,), (1373637376,), (1373637381,), (1373637384,), (1373637386,), (1373637389,), (1373637686,), (1373637723,), (1373637751,), (1373637767,), (1373637813,), (1373637842,), (1373637964,), (1373637977,), (1373637994,), (1373638033,), (1373638043,), (1373638062,), (1373638078,), (1373638079,), (1373638080,), (1373638081,), (1373638082,), (1373638085,), (1373638105,), (1373638108,), (1373638111,), (1373638114,), (1373638117,), (1373638120,), (1373638135,), (1373638161,), (1373638169,), (1373638170,), (1373638172,), (1373638174,), (1373638179,), (1373640320,), (1373638199,), (1373638202,), (1373638205,), (1373638209,), (1373638211,), (1373638213,), (1373638244,), (1373638256,), (1373638258,), (1373638261,), (1373638265,), (1373638267,), (1373638271,), (1373638286,), (1373638295,), (1373638301,), (1373638303,), (1373638304,), (1373638305,), (1373638317,), (1373638345,), (1373638349,), (1373638352,), (1373638354,), (1373638355,), (1373638357,), (1373638368,), (1373638369,), (1373638370,), (1373638371,), (1373638373,), (1373638375,), (1373638397,), (1373638402,), (1373638404,), (1373638406,), (1373638408,), (1373638412,), (1373638425,), (1373638427,), (1373638430,), (1373638433,), (1373638435,), (1373638440,), (1373638456,), (1373638458,), (1373638461,), (1373638462,), (1373638466,), (1373638470,), (1373638481,), (1373638485,), (1373638489,), (1373638492,), (1373638493,), (1373638496,), (1373638528,), (1373638546,), (1373638566,), (1373638571,), (1373638577,), (1373638578,), (1373638579,), (1373638581,), (1373638597,), (1373638599,), (1373638601,), (1373638604,), (1373638606,), (1373638610,), (1373638628,), (1373638630,), (1373638633,), (1373638635,), (1373638637,), (1373638639,), (1373638656,), (1373638659,), (1373638661,), (1373638663,), (1373638666,), (1373638668,), (1373638682,), (1373638685,), (1373638688,), (1373638691,), (1373638694,), (1373638698,), (1373638714,), (1373638718,), (1373638722,), (1373638723,), (1373638725,), (1373638727,), (1373638738,), (1373638739,), (1373638741,), (1373638743,), (1373638745,), (1373638748,), (1373638773,), (1373638775,), (1373638777,), (1373638779,), (1373638781,), (1373638783,), (1373638804,), (1373638836,), (1373638868,), (1373638872,), (1373638874,), (1373638876,), (1373638878,), (1373638880,), (1373638899,), (1373638922,), (1373638926,), (1373638929,), (1373638943,), (1373638966,), (1373638993,), (1373639171,), (1373639181,), (1373639184,), (1373639186,), (1373639188,), (1373639191,), (1373639210,), (1373639217,), (1373639220,), (1373639223,), (1373639224,), (1373639226,), (1373639241,), (1373639244,), (1373639248,), (1373639251,), (1373639254,), (1373639257,), (1373639468,), (1373639493,), (1373639523,), (1373639552,), (1373639577,), (1373639600,), (1373639765,), (1373640057,), (1373640085,), (1373640111,), (1373640136,), (1373640161,), (1373640190,), (1373640309,), (1373640312,), (1373640314,), (1373640316,), (1373640318,), (1373640319,), (1373640331,), (1373640350,), (1373640353,), (1373640356,), (1373640358,), (1373640361,), (1373640364,), (1373640382,), (1373640385,), (1373640388,), (1373640390,), (1373640392,), (1373640394,), (1373640409,), (1373640412,), (1373640414,), (1373640415,), (1373640416,), (1373640418,), (1373640431,), (1373640433,), (1373640435,), (1373640437,), (1373640438,), (1373640444,), (1373640500,), (1373640502,), (1373640503,), (1373640505,), (1373640507,), (1373640519,), (1373640540,), (1373640566,), (1373640619,), (1373640670,), (1373640708,), (1373640740,), (1373640926,), (1373641132,), (1373641157,), (1373641166,), (1373641168,), (1373641171,), (1373641190,), (1373641203,), (1373641227,), (1373641255,), (1373641281,), (1373641306,), (1373641319,), (1373641332,), (1373641335,), (1373641339,), (1373641341,), (1373641344,), (1373641348,), (1373641372,), (1373641373,), (1373641375,), (1373641376,), (1373641377,), (1373641379,), (1373641396,), (1373641399,), (1373641402,), (1373641404,), (1373641407,), (1373641410,), (1373641425,), (1373641427,), (1373641430,), (1373641433,), (1373641435,), (1373641437,), (1373641448,), (1373641450,), (1373641453,), (1373641456,), (1373641459,), (1373641463,), (1373641481,), (1373641484,), (1373641488,), (1373641508,), (1373641532,), (1373641546,), (1373641579,), (1373641582,), (1373641585,), (1373641587,), (1373641591,), (1373641595,), (1373641615,), (1373641639,), (1373641643,), (1373641647,), (1373641650,), (1373641652,), (1373641655,), (1373641668,), (1373641671,), (1373641674,), (1373641676,), (1373641677,), (1373641679,), (1373641694,), (1373641696,), (1373641698,), (1373641700,), (1373641701,), (1373641704,), (1373641864,), (1373641889,), (1373641916,), (1373641940,), (1373641969,), (1373642000,), (1373642089,), (1373642092,), (1373642095,), (1373642097,), (1373642099,), (1373642101,), (1373642117,), (1373642121,), (1373642122,), (1373642123,), (1373642124,), (1373642127,), (1373642145,), (1373642147,), (1373642150,), (1373642152,), (1373642154,), (1373642156,), (1373642178,), (1373642180,), (1373642184,), (1373642186,), (1373642188,), (1373642192,), (1373642205,), (1373642206,), (1373642207,), (1373642208,), (1373642210,), (1373642213,), (1373642275,), (1373642296,), (1373642300,), (1373642304,), (1373642306,), (1373642308,), (1373642309,), (1373642321,), (1373642325,), (1373642328,), (1373642332,), (1373642334,), (1373642336,), (1373642349,), (1373642352,), (1373642355,), (1373642357,), (1373642359,), (1373642362,), (1373642375,), (1373642377,), (1373642381,), (1373642384,), (1373642386,), (1373642388,), (1373642411,), (1373642418,), (1373642420,), (1373642423,), (1373642426,), (1373642428,), (1373642450,), (1373642458,), (1373642463,), (1373642470,), (1373642473,), (1373642476,), (1373642489,), (1373642491,), (1373642494,), (1373642498,), (1373642499,), (1373642500,), (1373642514,), (1373642516,), (1373642518,), (1373642520,), (1373642522,), (1373642525,), (1373642541,), (1373642543,), (1373642544,), (1373642545,), (1373642548,), (1373642559,), (1373642588,), (1373642659,), (1373642661,), (1373642663,), (1373642665,), (1373642667,), (1373642670,), (1373642677,), (1373642679,), (1373642682,), (1373642685,), (1373642687,), (1373642692,), (1373642712,), (1373642715,), (1373642719,), (1373642720,), (1373642722,), (1373642724,), (1373642766,), (1373642769,), (1373642772,), (1373642774,), (1373642776,), (1373642779,), (1373642901,), (1373642905,), (1373642906,), (1373642907,), (1373642908,), (1373642926,), (1373642950,), (1373642955,), (1373642958,), (1373642959,), (1373642961,), (1373642963,), (1373643008,), (1373643011,), (1373643012,), (1373643014,), (1373643017,), (1373643020,), (1373643035,), (1373643039,), (1373643042,), (1373643045,), (1373643047,), (1373643050,), (1373643068,), (1373643107,), (1373643110,), (1373643116,), (1373643120,), (1373643123,), (1373643126,), (1373643172,), (1373643174,), (1373643176,), (1373643198,), (1373643201,), (1373643205,), (1373643220,), (1373643222,), (1373643224,), (1373643226,), (1373643228,), (1373643232,), (1373643255,), (1373643260,), (1373643261,), (1373643262,), (1373643264,), (1373643266,), (1373643330,), (1373643331,), (1373643332,), (1373643333,), (1373643334,), (1373643336,), (1373643354,), (1373643355,), (1373643356,), (1373643357,), (1373643358,), (1373643360,), (1373643624,), (1373643649,), (1373643688,), (1373643713,), (1373643740,), (1373643769,), (1373644400,), (1373644430,), (1373644456,), (1373644482,), (1373644508,), (1373644538,), (1373644643,), (1373644887,), (1373644892,), (1373644893,), (1373644894,), (1373644895,), (1373644898,), (1373644925,), (1373644927,), (1373644928,), (1373644929,), (1373644930,), (1373644933,), (1373644958,), (1373644963,), (1373644965,), (1373644969,), (1373644972,), (1373644975,), (1373644987,), (1373644989,), (1373644991,), (1373644992,), (1373644994,), (1373644997,), (1373645011,), (1373645013,), (1373645015,), (1373645036,), (1373645060,), (1373645087,), (1373645366,), (1373645390,), (1373645416,), (1373645433,), (1373645435,), (1373645438,), (1373645694,), (1373645718,), (1373645726,), (1373645727,), (1373645751,), (1373645753,), (1373645773,), (1373645775,), (1373645777,), (1373645778,), (1373645780,), (1373645783,), (1373645805,), (1373645812,), (1373645817,), (1373645819,), (1373645821,), (1373645874,), (1373645885,), (1373645892,), (1373645898,), (1373645901,), (1373645904,), (1373645907,), (1373645936,), (1373646036,), (1373646067,), (1373646084,), (1373646087,), (1373646091,), (1373646095,), (1373646124,), (1373646143,), (1373646159,), (1373646161,), (1373646164,), (1373646168,), (1373646242,), (1373646337,), (1373646360,), (1373646362,), (1373646364,), (1373646366,), (1373646368,), (1373646371,), (1373646396,), (1373646399,), (1373646401,), (1373646403,), (1373646404,), (1373646407,), (1373646421,), (1373646425,), (1373646426,), (1373646427,), (1373646428,), (1373646430,), (1373646446,), (1373646448,), (1373646450,), (1373646452,), (1373646455,), (1373646462,), (1373646658,), (1373646705,), (1373646740,), (1373646768,), (1373646798,), (1373646824,), (1373646946,), (1373647027,), (1373647131,), (1373647133,), (1373647136,), (1373647138,), (1373647140,), (1373647143,), (1373647155,), (1373647157,), (1373647159,), (1373647161,), (1373647164,), (1373647168,), (1373647185,), (1373647186,), (1373647188,), (1373647190,), (1373647193,), (1373647195,), (1373647198,), (1373647199,), (1373647212,), (1373647216,), (1373647217,), (1373647218,), (1373647219,), (1373647221,), (1373647250,), (1373647253,), (1373647254,), (1373647256,), (1373647259,), (1373647261,), (1373647272,), (1373647274,), (1373647276,), (1373647282,), (1373647284,), (1373647287,), (1373647297,), (1373647300,), (1373647302,), (1373647303,), (1373647306,), (1373647310,), (1373647421,), (1373647426,), (1373647435,), (1373647441,), (1373647451,), (1373647453,), (1373647473,), (1373647486,), (1373647488,), (1373647490,), (1373647491,), (1373647494,), (1373647497,), (1373647514,), (1373647521,), (1373647523,), (1373647524,), (1373647526,), (1373647529,), (1373647543,), (1373647544,), (1373647545,), (1373647546,), (1373647548,), (1373647552,), (1373647568,), (1373647570,), (1373647572,), (1373647574,), (1373647577,), (1373647581,), (1373647602,), (1373647604,), (1373647606,), (1373647608,), (1373647609,), (1373647612,), (1373647636,), (1373647641,), (1373647642,), (1373647643,), (1373647645,), (1373647648,), (1373647663,), (1373647666,), (1373647668,), (1373647670,), (1373647672,), (1373647673,), (1373647688,), (1373647689,), (1373647692,), (1373647694,), (1373647697,), (1373647700,), (1373647710,), (1373647711,), (1373647712,), (1373647713,), (1373647714,), (1373647717,), (1373647752,), (1373647771,), (1373647772,), (1373647773,), (1373647774,), (1373647775,), (1373647778,), (1373647804,), (1373647810,), (1373647817,), (1373647819,), (1373647821,), (1373647824,), (1373647834,), (1373647836,), (1373647838,), (1373647840,), (1373647841,), (1373647845,), (1373647858,), (1373647859,), (1373647860,), (1373647861,), (1373647863,), (1373647867,), (1373647903,), (1373647907,), (1373647909,), (1373647911,), (1373647912,), (1373647915,), (1373647928,), (1373647930,), (1373647931,), (1373647933,), (1373647936,), (1373647938,), (1373647949,), (1373647975,), (1373647983,), (1373647989,), (1373647992,), (1373647995,), (1373647997,), (1373648019,), (1373648026,), (1373648027,), (1373648028,), (1373648030,), (1373648032,), (1373648052,), (1373648067,), (1373648069,), (1373648071,), (1373648072,), (1373648073,), (1373648075,), (1373648097,), (1373648099,), (1373648102,), (1373648103,), (1373648105,), (1373648109,), (1373648125,), (1373648129,), (1373648132,), (1373648133,), (1373648135,), (1373648138,), (1373648148,), (1373648150,), (1373648152,), (1373648154,), (1373648155,), (1373648159,), (1373648238,), (1373648265,), (1373648292,), (1373648319,), (1373648345,), (1373648369,), (1373648513,), (1373648538,), (1373648562,), (1373648582,), (1373648585,), (1373648600,), (1373649458,), (1373649470,), (1373649488,), (1373649513,), (1373649556,), (1373649574,), (1373649813,), (1373650053,), (1373650055,), (1373650064,), (1373650076,), (1373650078,), (1373650092,), (1373650126,), (1373650133,), (1373650135,), (1373650137,), (1373650138,), (1373650141,), (1373650161,), (1373650167,), (1373650169,), (1373650171,), (1373650174,), (1373650177,), (1373650186,), (1373650188,), (1373650189,), (1373650190,), (1373650191,), (1373650194,), (1373650212,), (1373650215,), (1373650216,), (1373650217,), (1373650218,), (1373650220,), (1373650238,), (1373650246,), (1373650247,), (1373650249,), (1373650251,), (1373650253,), (1373650277,), (1373650281,), (1373650283,), (1373650285,), (1373650287,), (1373650290,), (1373650298,), (1373650300,), (1373650302,), (1373650304,), (1373650306,), (1373650309,), (1373650330,), (1373650355,), (1373650359,), (1373650361,), (1373650363,), (1373650366,), (1373650368,), (1373650381,), (1373650410,), (1373650411,), (1373650412,), (1373650413,), (1373650414,), (1373650416,), (1373650440,), (1373650443,), (1373650447,), (1373650449,), (1373650453,), (1373650457,), (1373650464,), (1373650470,), (1373650479,), (1373650482,), (1373650485,), (1373650489,), (1373650511,), (1373650516,), (1373650519,), (1373650521,), (1373650522,), (1373650525,), (1373650543,), (1373650548,), (1373650550,), (1373650551,), (1373650553,), (1373650555,), (1373650570,), (1373650572,), (1373650574,), (1373650575,), (1373650577,), (1373650580,), (1373650597,), (1373650627,), (1373650633,), (1373650635,), (1373650636,), (1373650638,), (1373650641,), (1373650658,), (1373650659,), (1373650661,), (1373650664,), (1373650666,), (1373650669,), (1373650689,), (1373650708,), (1373650710,), (1373650711,), (1373650712,), (1373650713,), (1373650715,), (1373650736,), (1373650741,), (1373650742,), (1373650743,), (1373650744,), (1373650746,), (1373650764,), (1373650765,), (1373650767,), (1373650769,), (1373650770,), (1373650773,), (1373650787,), (1373650792,), (1373650794,), (1373650796,), (1373650799,), (1373650802,), (1373650818,), (1373650825,), (1373650829,), (1373650831,), (1373650834,), (1373650838,), (1373650851,), (1373650857,), (1373650860,), (1373650864,), (1373650868,), (1373650873,), (1373650887,), (1373650915,), (1373650917,), (1373650920,), (1373650922,), (1373650925,), (1373650929,), (1373650943,), (1373650946,), (1373650948,), (1373650950,), (1373650954,), (1373650957,), (1373650975,), (1373650976,), (1373650977,), (1373650979,), (1373650982,), (1373650984,), (1373650991,), (1373650993,), (1373650995,), (1373650997,), (1373650999,), (1373651003,), (1373651019,), (1373651022,), (1373651024,), (1373651026,), (1373651064,), (1373651067,), (1373651094,), (1373651095,), (1373651096,), (1373651097,), (1373651140,), (1373651146,), (1373651171,), (1373651185,), (1373651188,), (1373651189,), (1373651191,), (1373651195,), (1373651210,), (1373651211,), (1373651213,), (1373651215,), (1373651216,), (1373651219,), (1373651239,), (1373651244,), (1373651246,), (1373651248,), (1373651251,), (1373651253,), (1373651272,), (1373651274,), (1373651276,), (1373651278,), (1373651280,), (1373651283,), (1373651303,), (1373651315,), (1373651318,), (1373651319,), (1373651321,), (1373651324,), (1373651339,), (1373651346,), (1373651351,), (1373651355,), (1373651360,), (1373651365,), (1373651413,), (1373651432,), (1373651434,), (1373651435,), (1373651437,), (1373651439,), (1373651443,), (1373651462,), (1373651465,), (1373651466,), (1373651467,), (1373651468,), (1373651470,), (1373651495,), (1373653533,), (1373651558,), (1373651560,), (1373651562,), (1373651564,), (1373651565,), (1373651566,), (1373651587,), (1373651589,), (1373651591,), (1373651592,), (1373651593,), (1373651594,), (1373651617,), (1373651623,), (1373651624,), (1373651625,), (1373651626,), (1373651629,), (1373651645,), (1373651647,), (1373651649,), (1373651650,), (1373651652,), (1373651655,), (1373651673,), (1373651676,), (1373651678,), (1373651680,), (1373651682,), (1373651684,), (1373651703,), (1373651722,), (1373651729,), (1373651735,), (1373651737,), (1373651739,), (1373651740,), (1373651863,), (1373651950,), (1373651958,), (1373651960,), (1373651962,), (1373651968,), (1373652021,), (1373652043,), (1373652051,), (1373652060,), (1373652062,), (1373652064,), (1373652066,), (1373652076,), (1373652078,), (1373652080,), (1373652081,), (1373652083,), (1373652086,), (1373652101,), (1373652109,), (1373652133,), (1373652156,), (1373652178,), (1373652202,), (1373652452,), (1373652456,), (1373652458,), (1373652461,), (1373652482,), (1373652504,), (1373652852,), (1373653408,), (1373653435,), (1373653461,), (1373653486,), (1373653509,), (1373653903,), (1373654239,), (1373654267,), (1373654282,), (1373654286,), (1373654288,), (1373654301,), (1373654366,), (1373654370,), (1373654373,), (1373654380,), (1373654386,), (1373654388,), (1373654401,), (1373654404,), (1373654408,), (1373654418,), (1373654426,), (1373654428,), (1373654448,), (1373654449,), (1373654450,), (1373654456,), (1373654462,), (1373654464,), (1373654485,), (1373654487,), (1373654498,), (1373654505,), (1373654506,), (1373654509,), (1373654533,), (1373654535,), (1373654541,), (1373654548,), (1373654551,), (1373654553,), (1373654575,), (1373654577,), (1373654578,), (1373654579,), (1373654581,), (1373654582,), (1373654607,), (1373654612,), (1373654617,), (1373654618,), (1373654619,), (1373654623,), (1373654644,), (1373654683,), (1373654685,), (1373654689,), (1373654690,), (1373654691,), (1373654693,), (1373654716,), (1373654744,), (1373654753,), (1373654756,), (1373654758,), (1373654761,), (1373654763,), (1373654781,), (1373654788,), (1373654790,), (1373654791,), (1373654793,), (1373654798,), (1373654829,), (1373654833,), (1373654841,), (1373654844,), (1373654845,), (1373654847,), (1373654870,), (1373654872,), (1373654873,), (1373654875,), (1373654878,), (1373654881,), (1373654901,), (1373654905,), (1373654907,), (1373654910,), (1373654912,), (1373654915,), (1373654931,), (1373654934,), (1373654935,), (1373654937,), (1373654939,), (1373654944,), (1373654967,), (1373654969,), (1373654971,), (1373654972,), (1373654974,), (1373654976,), (1373654996,), (1373655032,), (1373655038,), (1373655039,), (1373655041,), (1373655042,), (1373655044,), (1373655064,), (1373655067,), (1373655068,), (1373655070,), (1373655071,), (1373655073,), (1373655100,), (1373655103,), (1373655106,), (1373655108,), (1373655110,), (1373655113,), (1373655124,), (1373655126,), (1373655128,), (1373655130,), (1373655133,), (1373655135,), (1373655151,), (1373655160,), (1373655164,), (1373655167,), (1373655171,), (1373655173,), (1373655198,), (1373655226,), (1373655227,), (1373655233,), (1373655235,), (1373655236,), (1373655239,), (1373655261,), (1373655298,), (1373655326,), (1373655330,), (1373655334,), (1373655336,), (1373655340,), (1373655343,), (1373655360,), (1373655380,), (1373655382,), (1373655388,), (1373655396,), (1373655402,), (1373655405,), (1373655426,), (1373655427,), (1373655429,), (1373655432,), (1373655436,), (1373655439,), (1373655455,), (1373655458,), (1373655459,), (1373655461,), (1373655462,), (1373655464,), (1373655480,), (1373655484,), (1373655486,), (1373655487,), (1373655489,), (1373655491,), (1373655500,), (1373655502,), (1373655503,), (1373655504,), (1373655505,), (1373655508,), (1373655529,), (1373655538,), (1373655539,), (1373655541,), (1373655543,), (1373655545,), (1373655559,), (1373655560,), (1373655561,), (1373655563,), (1373655566,), (1373655568,), (1373655592,), (1373655595,), (1373655603,), (1373655612,), (1373655616,), (1373655620,), (1373655637,), (1373655668,), (1373655675,), (1373655680,), (1373655681,), (1373655682,), (1373655685,), (1373655706,), (1373655724,), (1373655726,), (1373655728,), (1373655730,), (1373655731,), (1373655734,), (1373655753,), (1373655756,), (1373655757,), (1373655758,), (1373655760,), (1373655762,), (1373655784,), (1373655790,), (1373655791,), (1373655792,), (1373655794,), (1373655797,), (1373655813,), (1373655814,), (1373655815,), (1373655816,), (1373655817,), (1373655819,), (1373655837,), (1373655842,), (1373655849,), (1373655850,), (1373655851,), (1373655854,), (1373655872,), (1373655879,), (1373655880,), (1373655881,), (1373655882,), (1373655884,), (1373655901,), (1373655905,), (1373655909,), (1373655916,), (1373655919,), (1373655922,), (1373655944,), (1373655970,), (1373656004,), (1373656006,), (1373656008,), (1373656015,), (1373656021,), (1373656024,), (1373656056,), (1373656058,), (1373656061,), (1373656065,), (1373656074,), (1373656076,), (1373656096,), (1373656097,), (1373656100,), (1373656103,), (1373656105,), (1373656108,), (1373656125,), (1373656128,), (1373656130,), (1373656132,), (1373656134,), (1373656137,), (1373656161,), (1373656164,), (1373656167,), (1373656169,), (1373656171,), (1373656174,), (1373656187,), (1373656189,), (1373656191,), (1373656193,), (1373656195,), (1373656198,), (1373656791,), (1373657247,), (1373657282,), (1373657300,), (1373657344,), (1373657371,), (1373657859,), (1373658166,), (1373658169,), (1373658177,), (1373658179,), (1373658181,), (1373658185,), (1373658391,), (1373658393,), (1373658399,), (1373658423,), (1373658447,), (1373658462,), (1373658486,), (1373658489,), (1373658491,), (1373658492,), (1373658494,), (1373658496,), (1373658520,), (1373658522,), (1373658530,), (1373658531,), (1373658533,), (1373658536,), (1373658569,), (1373658606,), (1373658615,), (1373658623,), (1373658624,), (1373658626,), (1373658629,), (1373658643,), (1373658647,), (1373658650,), (1373658653,), (1373658656,), (1373658659,), (1373658677,), (1373658681,), (1373658684,), (1373658685,), (1373658686,), (1373658688,), (1373658728,), (1373658731,), (1373658732,), (1373658734,), (1373658735,), (1373658738,), (1373658763,), (1373658793,), (1373658796,), (1373658798,), (1373658800,), (1373658803,), (1373658806,), (1373658817,), (1373658829,), (1373658836,), (1373658837,), (1373658839,), (1373658842,), (1373658858,), (1373658860,), (1373658866,), (1373658874,), (1373658876,), (1373658878,), (1373658901,), (1373658904,), (1373658906,), (1373658908,), (1373658909,), (1373658913,), (1373658926,), (1373658928,), (1373658937,), (1373658940,), (1373658941,), (1373658943,), (1373658956,), (1373658959,), (1373658962,), (1373658964,), (1373658966,), (1373658968,), (1373658982,), (1373658990,), (1373658997,), (1373658999,), (1373659001,), (1373659003,), (1373659021,), (1373659026,), (1373659029,), (1373659031,), (1373659033,), (1373659035,), (1373659047,), (1373659067,), (1373659074,), (1373659078,), (1373659080,), (1373659083,), (1373659086,), (1373659101,), (1373659103,), (1373659108,), (1373659112,), (1373659122,), (1373659130,), (1373659180,), (1373659186,), (1373659197,), (1373659202,), (1373659207,), (1373659210,), (1373659226,), (1373659229,), (1373659231,), (1373659234,), (1373659238,), (1373659243,), (1373659260,), (1373659264,), (1373659267,), (1373659269,), (1373659273,), (1373659277,), (1373659289,), (1373659296,), (1373659299,), (1373659301,), (1373659303,), (1373659306,), (1373659350,), (1373659353,), (1373659355,), (1373659356,), (1373659358,), (1373659364,), (1373659380,), (1373659383,), (1373659386,), (1373659388,), (1373659389,), (1373659392,), (1373659406,), (1373659409,), (1373659411,), (1373659413,), (1373659416,), (1373659419,), (1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25072025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25310123]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] map_info['map_portfolio_photo'] : {25310123: [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803, 1373659784, 1373659763, 1373659761, 1373659759, 1373659757, 1373659756, 1373659754, 1373659747, 1373659746, 1373659744, 1373659742, 1373659741, 1373659739, 1373659717, 1373659715, 1373659713, 1373659710, 1373659703, 1373659695, 1373659679, 1373659676, 1373659673, 1373659672, 1373659670, 1373659668, 1373659646, 1373659643, 1373659641, 1373659638, 1373659636, 1373659635, 1373659620, 1373659615, 1373659612, 1373659610, 1373659607, 1373659604, 1373659594, 1373659591, 1373659588, 1373659585, 1373659581, 1373659578, 1373659562, 1373659560, 1373659558, 1373659557, 1373659552, 1373659547, 1373659530, 1373659528, 1373659525, 1373659524, 1373659521, 1373659518, 1373659498, 1373659477, 1373659475, 1373659473, 1373659466, 1373659460, 1373659459]} final : True mtd_id 4302 list_pids : [1373659851, 1373659848, 1373659846, 1373659845, 1373659838, 1373659831, 1373659817, 1373659815, 1373659812, 1373659809, 1373659807, 1373659803] Looping around the photos to save general results len do output : 1 /25310123Didn'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, '3347773') ('4302', '25310123', '1373659851', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659848', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659846', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659845', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659838', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659831', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659817', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659815', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659812', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659809', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659807', None, None, None, None, None, '3347773') ('4302', None, None, None, None, None, None, None, '3347773') ('4302', '25310123', '1373659803', None, None, None, None, None, '3347773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25310123', 'None', None, None, None, None, '3347773'), ('4302', '25310123', '1373659851', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659848', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659846', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659845', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659838', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659831', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659817', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659815', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659812', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659809', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659807', None, None, None, None, None, '3347773'), ('4302', '25310123', '1373659803', None, None, None, None, None, '3347773')] time used for this insertion : 0.2594780921936035 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0221126079559326 time spend to save output : 0.2597339153289795 total time spend for step 5 : 2.281846523284912 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 (3347773) 2.15user 2.44system 0:12.17elapsed 37%CPU (0avgtext+0avgdata 159836maxresident)k 64inputs+9168outputs (0major+64024minor)pagefaults 0swaps