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 : 83305 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 (4282358) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4282358) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764069 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4282358'] with mtr_portfolio_ids : ['29764069'] and first list_photo_ids : [] new path : /proc/83305/ Name: python3 Umask: 0002 State: R (running) Tgid: 83305 Ngid: 0 Pid: 83305 PPid: 83304 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 83305 NSpid: 83305 NSpgid: 82023 NSsid: 82023 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104892 kB VmRSS: 104892 kB RssAnon: 66296 kB RssFile: 38596 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '83305', 'Ngid': '0', 'Pid': '83305', 'PPid': '83304', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '83305', 'NSpid': '83305', 'NSpgid': '82023', 'NSsid': '82023', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104892 kB', 'VmRSS': '104892 kB', 'RssAnon': '66296 kB', 'RssFile': '38596 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '83305', '1113364', '0', '1113364', '872092', '104892', b'', 'marlene', '4282358') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29764069) 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 (4282358 ) ) 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 (29764069) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401485075, 'portfolio_id': 29764069}, {'photo_id': 1401485047, 'portfolio_id': 29764069}, {'photo_id': 1401485043, 'portfolio_id': 29764069}, {'photo_id': 1401485039, 'portfolio_id': 29764069}, {'photo_id': 1401485037, 'portfolio_id': 29764069}, {'photo_id': 1401485036, 'portfolio_id': 29764069}, {'photo_id': 1401485035, 'portfolio_id': 29764069}, {'photo_id': 1401485020, 'portfolio_id': 29764069}, {'photo_id': 1401485018, 'portfolio_id': 29764069}, {'photo_id': 1401485015, 'portfolio_id': 29764069}, {'photo_id': 1401485014, 'portfolio_id': 29764069}, {'photo_id': 1401485013, 'portfolio_id': 29764069}, {'photo_id': 1401485012, 'portfolio_id': 29764069}, {'photo_id': 1401484976, 'portfolio_id': 29764069}, {'photo_id': 1401484974, 'portfolio_id': 29764069}, {'photo_id': 1401484970, 'portfolio_id': 29764069}, {'photo_id': 1401484968, 'portfolio_id': 29764069}, {'photo_id': 1401484946, 'portfolio_id': 29764069}, {'photo_id': 1401484944, 'portfolio_id': 29764069}, {'photo_id': 1401484943, 'portfolio_id': 29764069}, {'photo_id': 1401484942, 'portfolio_id': 29764069}, {'photo_id': 1401484890, 'portfolio_id': 29764069}, {'photo_id': 1401484888, 'portfolio_id': 29764069}, {'photo_id': 1401484886, 'portfolio_id': 29764069}, {'photo_id': 1401484879, 'portfolio_id': 29764069}, {'photo_id': 1401484876, 'portfolio_id': 29764069}, {'photo_id': 1401484873, 'portfolio_id': 29764069}, {'photo_id': 1401484870, 'portfolio_id': 29764069}, {'photo_id': 1401484868, 'portfolio_id': 29764069}, {'photo_id': 1401484865, 'portfolio_id': 29764069}, {'photo_id': 1401484834, 'portfolio_id': 29764069}, {'photo_id': 1401484832, 'portfolio_id': 29764069}, {'photo_id': 1401484831, 'portfolio_id': 29764069}, {'photo_id': 1401484828, 'portfolio_id': 29764069}, {'photo_id': 1401484802, 'portfolio_id': 29764069}, {'photo_id': 1401484798, 'portfolio_id': 29764069}, {'photo_id': 1401484795, 'portfolio_id': 29764069}, {'photo_id': 1401484793, 'portfolio_id': 29764069}, {'photo_id': 1401484790, 'portfolio_id': 29764069}, {'photo_id': 1401484788, 'portfolio_id': 29764069}, {'photo_id': 1401484767, 'portfolio_id': 29764069}, {'photo_id': 1401484763, 'portfolio_id': 29764069}, {'photo_id': 1401484759, 'portfolio_id': 29764069}, {'photo_id': 1401484757, 'portfolio_id': 29764069}, {'photo_id': 1401484756, 'portfolio_id': 29764069}, {'photo_id': 1401484751, 'portfolio_id': 29764069}, {'photo_id': 1401484749, 'portfolio_id': 29764069}, {'photo_id': 1401484746, 'portfolio_id': 29764069}, {'photo_id': 1401484730, 'portfolio_id': 29764069}, {'photo_id': 1401484727, 'portfolio_id': 29764069}, {'photo_id': 1401484725, 'portfolio_id': 29764069}, {'photo_id': 1401484722, 'portfolio_id': 29764069}, {'photo_id': 1401484721, 'portfolio_id': 29764069}, {'photo_id': 1401484720, 'portfolio_id': 29764069}, {'photo_id': 1401484696, 'portfolio_id': 29764069}, {'photo_id': 1401484693, 'portfolio_id': 29764069}, {'photo_id': 1401484688, 'portfolio_id': 29764069}, {'photo_id': 1401484684, 'portfolio_id': 29764069}, {'photo_id': 1401484682, 'portfolio_id': 29764069}, {'photo_id': 1401484676, 'portfolio_id': 29764069}, {'photo_id': 1401484655, 'portfolio_id': 29764069}, {'photo_id': 1401484651, 'portfolio_id': 29764069}, {'photo_id': 1401484648, 'portfolio_id': 29764069}, {'photo_id': 1401484645, 'portfolio_id': 29764069}, {'photo_id': 1401484643, 'portfolio_id': 29764069}, {'photo_id': 1401484642, 'portfolio_id': 29764069}, {'photo_id': 1401484641, 'portfolio_id': 29764069}, {'photo_id': 1401484639, 'portfolio_id': 29764069}, {'photo_id': 1401484637, 'portfolio_id': 29764069}, {'photo_id': 1401484625, 'portfolio_id': 29764069}, {'photo_id': 1401484621, 'portfolio_id': 29764069}, {'photo_id': 1401484618, 'portfolio_id': 29764069}, {'photo_id': 1401484615, 'portfolio_id': 29764069}, {'photo_id': 1401484613, 'portfolio_id': 29764069}, {'photo_id': 1401484612, 'portfolio_id': 29764069}, {'photo_id': 1401484593, 'portfolio_id': 29764069}, {'photo_id': 1401484590, 'portfolio_id': 29764069}, {'photo_id': 1401484589, 'portfolio_id': 29764069}, {'photo_id': 1401484588, 'portfolio_id': 29764069}, {'photo_id': 1401484586, 'portfolio_id': 29764069}, {'photo_id': 1401484571, 'portfolio_id': 29764069}, {'photo_id': 1401484568, 'portfolio_id': 29764069}, {'photo_id': 1401484564, 'portfolio_id': 29764069}, {'photo_id': 1401484562, 'portfolio_id': 29764069}, {'photo_id': 1401484557, 'portfolio_id': 29764069}] map_portfolio_id_photo_id: {29764069: [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012, 1401484976, 1401484974, 1401484970, 1401484968, 1401484946, 1401484944, 1401484943, 1401484942, 1401484890, 1401484888, 1401484886, 1401484879, 1401484876, 1401484873, 1401484870, 1401484868, 1401484865, 1401484834, 1401484832, 1401484831, 1401484828, 1401484802, 1401484798, 1401484795, 1401484793, 1401484790, 1401484788, 1401484767, 1401484763, 1401484759, 1401484757, 1401484756, 1401484751, 1401484749, 1401484746, 1401484730, 1401484727, 1401484725, 1401484722, 1401484721, 1401484720, 1401484696, 1401484693, 1401484688, 1401484684, 1401484682, 1401484676, 1401484655, 1401484651, 1401484648, 1401484645, 1401484643, 1401484642, 1401484641, 1401484639, 1401484637, 1401484625, 1401484621, 1401484618, 1401484615, 1401484613, 1401484612, 1401484593, 1401484590, 1401484589, 1401484588, 1401484586, 1401484571, 1401484568, 1401484564, 1401484562, 1401484557]} ##### 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.02147698402404785 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 29 07:46: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 (29764069) 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 : 29764069 get user id for portfolio 29764069 get sub ptf for main ptf 29764069, type 3726 and hashtags ['cartonnette', 'kraft', 'environnement', 'autre_refus', 'Carton_brun', 'papier', 'Carton_gris', 'flou', 'plastique', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal'] 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`=29764069 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','autre_refus','Carton_brun','papier','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) 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`=29764069 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','autre_refus','Carton_brun','papier','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29764069, 'sub_port_id': 29764076, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345659, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'kraft': {'main_port_id': 29764069, 'sub_port_id': 29764077, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345660, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'mal_croppe': {'main_port_id': 29764069, 'sub_port_id': 29764078, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345661, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'Carton_brun': {'main_port_id': 29764069, 'sub_port_id': 29764079, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345662, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'autre_refus': {'main_port_id': 29764069, 'sub_port_id': 29764080, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345663, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'papier': {'main_port_id': 29764069, 'sub_port_id': 29764081, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345664, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'metal': {'main_port_id': 29764069, 'sub_port_id': 29764082, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345665, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'flou': {'main_port_id': 29764069, 'sub_port_id': 29764083, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345666, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'environnement': {'main_port_id': 29764069, 'sub_port_id': 29764084, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345667, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'plastique': {'main_port_id': 29764069, 'sub_port_id': 29764085, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345668, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29764069, 'sub_port_id': 29764086, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345669, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}, 'Carton_gris': {'main_port_id': 29764069, 'sub_port_id': 29764087, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345670, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29764076 , 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=29764069 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 (29764076) result : ((1401484706,), (1401484708,), (1401484754,), (1401484782,), (1401484783,), (1401484784,), (1401484785,), (1401484819,), (1401484820,), (1401484821,), (1401484822,), (1401484823,), (1401484845,), (1401484928,), (1401484930,), (1401484931,), (1401484932,), (1401484971,), (1401484993,), (1401484995,), (1401484996,), (1401484997,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764077 , 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=29764069 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 (29764077) result : ((1401484850,), (1401485002,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764078 , 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=29764069 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 (29764078) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764079 , 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=29764069 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 (29764079) result : ((1401484825,), (1401484934,), (1401484935,), (1401484936,), (1401484937,), (1401484938,), (1401484939,), (1401484998,), (1401484999,), (1401485008,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764080 , 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=29764069 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 (29764080) result : ((1401484703,), (1401484779,), (1401484815,), (1401484816,), (1401484988,), (1401484989,), (1401485007,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764081 , 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=29764069 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 (29764081) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764082 , 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=29764069 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 (29764082) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764083 , 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=29764069 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 (29764083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764084 , 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=29764069 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 (29764084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764085 , 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=29764069 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 (29764085) result : ((1401484709,), (1401484710,), (1401484755,), (1401484786,), (1401484787,), (1401484826,), (1401484846,), (1401484848,), (1401484972,), (1401485000,), (1401485010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764086 , 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=29764069 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 (29764086) result : ((1401484752,), (1401484777,), (1401484778,), (1401484812,), (1401484814,), (1401484841,), (1401484842,), (1401484843,), (1401484910,), (1401484911,), (1401484912,), (1401484913,), (1401484914,), (1401484915,), (1401484916,), (1401484917,), (1401484987,), (1401485005,), (1401485006,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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 29764087 , 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=29764069 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 (29764087) result : ((1401484704,), (1401484753,), (1401484780,), (1401484817,), (1401484844,), (1401484921,), (1401484923,), (1401484924,), (1401484925,), (1401484990,), (1401484991,), (1401485052,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29764069) result : ((1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) 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`=29764069 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','autre_refus','Carton_brun','papier','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) 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`=29764069 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','environnement','autre_refus','Carton_brun','papier','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29764069, 'sub_port_id': 29764089, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345671, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'kraft': {'main_port_id': 29764069, 'sub_port_id': 29764090, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345672, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'mal_croppe': {'main_port_id': 29764069, 'sub_port_id': 29764091, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345673, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'Carton_brun': {'main_port_id': 29764069, 'sub_port_id': 29764092, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345674, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'autre_refus': {'main_port_id': 29764069, 'sub_port_id': 29764093, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345675, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'papier': {'main_port_id': 29764069, 'sub_port_id': 29764094, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345676, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'metal': {'main_port_id': 29764069, 'sub_port_id': 29764095, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345677, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'flou': {'main_port_id': 29764069, 'sub_port_id': 29764096, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345678, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'environnement': {'main_port_id': 29764069, 'sub_port_id': 29764097, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345679, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'plastique': {'main_port_id': 29764069, 'sub_port_id': 29764098, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345680, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 29764069, 'sub_port_id': 29764099, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345681, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}, 'Carton_gris': {'main_port_id': 29764069, 'sub_port_id': 29764100, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20345682, 'last_updated_at': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 7, 33, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764076 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764077 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764078 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764079 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764080 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764081 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29764100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29764087 lien utilise dans velours : https://marlene.fotonower.com/velours/29764089,29764090,29764091,29764092,29764093,29764094,29764095,29764096,29764097,29764098,29764099,29764100?tags=cartonnette,kraft,mal_croppe,Carton_brun,autre_refus,papier,metal,flou,environnement,plastique,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29764069]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] map_info['map_portfolio_photo'] : {29764069: [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012, 1401484976, 1401484974, 1401484970, 1401484968, 1401484946, 1401484944, 1401484943, 1401484942, 1401484890, 1401484888, 1401484886, 1401484879, 1401484876, 1401484873, 1401484870, 1401484868, 1401484865, 1401484834, 1401484832, 1401484831, 1401484828, 1401484802, 1401484798, 1401484795, 1401484793, 1401484790, 1401484788, 1401484767, 1401484763, 1401484759, 1401484757, 1401484756, 1401484751, 1401484749, 1401484746, 1401484730, 1401484727, 1401484725, 1401484722, 1401484721, 1401484720, 1401484696, 1401484693, 1401484688, 1401484684, 1401484682, 1401484676, 1401484655, 1401484651, 1401484648, 1401484645, 1401484643, 1401484642, 1401484641, 1401484639, 1401484637, 1401484625, 1401484621, 1401484618, 1401484615, 1401484613, 1401484612, 1401484593, 1401484590, 1401484589, 1401484588, 1401484586, 1401484571, 1401484568, 1401484564, 1401484562, 1401484557]} final : False mtd_id 4302 list_pids : [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] Looping around the photos to save general results len do output : 1 /29764069. 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, '4282358') ('4302', '29764069', '1401485075', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485047', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485043', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485039', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485037', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485036', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485035', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485020', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485018', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485015', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485014', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485013', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485012', None, None, None, None, None, '4282358') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29764069', "{'cartonnette': 29764076, 'kraft': 29764077, 'mal_croppe': 29764078, 'Carton_brun': 29764079, 'autre_refus': 29764080, 'papier': 29764081, 'metal': 29764082, 'flou': 29764083, 'environnement': 29764084, 'plastique': 29764085, 'Teint_Dans_La_Masse': 29764086, 'Carton_gris': 29764087}", None, None, None, None, '4282358'), ('4302', '29764069', '1401485075', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485047', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485043', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485039', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485037', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485036', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485035', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485020', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485018', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485015', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485014', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485013', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485012', None, None, None, None, None, '4282358')] time used for this insertion : 0.019631385803222656 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.772022008895874 time spend to save output : 0.019964933395385742 total time spend for step 1 : 1.7919869422912598 step2:final Mon Dec 29 07:47: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 (29764069) 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 29764069 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401484571,1401484568,1401484564,1401484562,1401484557,1401484593,1401484643,1401484590,1401484642,1401484589,1401484641,1401484588,1401484639,1401484586,1401484637,1401484625,1401484621,1401484618,1401484615,1401484613,1401484612,1401484655,1401484651,1401484648,1401484645,1401484696,1401484751,1401484693,1401484749,1401484688,1401484746,1401484684,1401484730,1401484682,1401484727,1401484676,1401484725,1401484722,1401484721,1401484720,1401484767,1401484763,1401484759,1401484757,1401484756,1401484802,1401484798,1401484795,1401484793,1401484790,1401484788,1401484834,1401484832,1401484831,1401484828,1401484879,1401484876,1401484873,1401484870,1401484868,1401484890,1401484865,1401484888,1401484886,1401484946,1401484944,1401484943,1401484942,1401484976,1401484974,1401484970,1401484968,1401485020,1401485018,1401485015,1401485014,1401485013,1401485012,1401485047,1401485043,1401485039,1401485037,1401485036,1401485035,1401485075); 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([29764069]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} new output for save of step final : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] map_info['map_portfolio_photo'] : {29764069: [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012, 1401484976, 1401484974, 1401484970, 1401484968, 1401484946, 1401484944, 1401484943, 1401484942, 1401484890, 1401484888, 1401484886, 1401484879, 1401484876, 1401484873, 1401484870, 1401484868, 1401484865, 1401484834, 1401484832, 1401484831, 1401484828, 1401484802, 1401484798, 1401484795, 1401484793, 1401484790, 1401484788, 1401484767, 1401484763, 1401484759, 1401484757, 1401484756, 1401484751, 1401484749, 1401484746, 1401484730, 1401484727, 1401484725, 1401484722, 1401484721, 1401484720, 1401484696, 1401484693, 1401484688, 1401484684, 1401484682, 1401484676, 1401484655, 1401484651, 1401484648, 1401484645, 1401484643, 1401484642, 1401484641, 1401484639, 1401484637, 1401484625, 1401484621, 1401484618, 1401484615, 1401484613, 1401484612, 1401484593, 1401484590, 1401484589, 1401484588, 1401484586, 1401484571, 1401484568, 1401484564, 1401484562, 1401484557]} final : False mtd_id 4302 list_pids : [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] Looping around the photos to save general results len do output : 13 /1401485075.Didn't retrieve data . /1401485047.Didn't retrieve data . /1401485043.Didn't retrieve data . /1401485039.Didn't retrieve data . /1401485037.Didn't retrieve data . /1401485036.Didn't retrieve data . /1401485035.Didn't retrieve data . /1401485020.Didn't retrieve data . /1401485018.Didn't retrieve data . /1401485015.Didn't retrieve data . /1401485014.Didn't retrieve data . /1401485013.Didn't retrieve data . /1401485012.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, '4282358') ('4302', '29764069', '1401485075', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485047', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485043', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485039', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485037', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485036', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485035', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485020', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485018', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485015', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485014', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485013', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485012', None, None, None, None, None, '4282358') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '29764069', '1401485075', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485047', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485043', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485039', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485037', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485036', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485035', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485020', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485018', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485015', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485014', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485013', '0.03394238732669283', None, None, None, None, '4282358'), ('4302', '29764069', '1401485012', '0.03394238732669283', None, None, None, None, '4282358')] time used for this insertion : 0.01749110221862793 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08806872367858887 time spend to save output : 0.01810288429260254 total time spend for step 2 : 0.1061716079711914 step3:velours_tree Mon Dec 29 07:47:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29764069: [{'cartonnette': 29764076, 'kraft': 29764077, 'mal_croppe': 29764078, 'Carton_brun': 29764079, 'autre_refus': 29764080, 'papier': 29764081, 'metal': 29764082, 'flou': 29764083, 'environnement': 29764084, 'plastique': 29764085, 'Teint_Dans_La_Masse': 29764086, 'Carton_gris': 29764087}]} input_args_next_step : {29764069: ()} output_args : {29764069: [{'cartonnette': 29764076, 'kraft': 29764077, 'mal_croppe': 29764078, 'Carton_brun': 29764079, 'autre_refus': 29764080, 'papier': 29764081, 'metal': 29764082, 'flou': 29764083, 'environnement': 29764084, 'plastique': 29764085, 'Teint_Dans_La_Masse': 29764086, 'Carton_gris': 29764087}]} args : 29764069 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 : ({'cartonnette': 29764076, 'kraft': 29764077, 'mal_croppe': 29764078, 'Carton_brun': 29764079, 'autre_refus': 29764080, 'papier': 29764081, 'metal': 29764082, 'flou': 29764083, 'environnement': 29764084, 'plastique': 29764085, 'Teint_Dans_La_Masse': 29764086, 'Carton_gris': 29764087},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29764069) 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([29764069]) 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.3021810054779053 time spend to save output : 7.2479248046875e-05 total time spend for step 3 : 0.30225348472595215 step4:send_mail_cod Mon Dec 29 07:47:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} input_args_next_step : {1401485075: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485075 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485047 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485043 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485039 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485037 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485036 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485035 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485020 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485018 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485015 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485014 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485013 depend.output_id : 0 input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ()} output_args : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',)} args : 1401485012 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 : {29764069: [{'cartonnette': 29764076, 'kraft': 29764077, 'mal_croppe': 29764078, 'Carton_brun': 29764079, 'autre_refus': 29764080, 'papier': 29764081, 'metal': 29764082, 'flou': 29764083, 'environnement': 29764084, 'plastique': 29764085, 'Teint_Dans_La_Masse': 29764086, 'Carton_gris': 29764087}]} input_args_next_step : {1401485075: ('0.03394238732669283',), 1401485047: ('0.03394238732669283',), 1401485043: ('0.03394238732669283',), 1401485039: ('0.03394238732669283',), 1401485037: ('0.03394238732669283',), 1401485036: ('0.03394238732669283',), 1401485035: ('0.03394238732669283',), 1401485020: ('0.03394238732669283',), 1401485018: ('0.03394238732669283',), 1401485015: ('0.03394238732669283',), 1401485014: ('0.03394238732669283',), 1401485013: ('0.03394238732669283',), 1401485012: ('0.03394238732669283',), 29764069: ()} output_args : {29764069: [{'cartonnette': 29764076, 'kraft': 29764077, 'mal_croppe': 29764078, 'Carton_brun': 29764079, 'autre_refus': 29764080, 'papier': 29764081, 'metal': 29764082, 'flou': 29764083, 'environnement': 29764084, 'plastique': 29764085, 'Teint_Dans_La_Masse': 29764086, 'Carton_gris': 29764087}]} args : 29764069 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 :14, first value : ('0.03394238732669283',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29764069) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1401485075,1401485047,1401485043,1401485039,1401485037,1401485036,1401485035,1401485020,1401485018,1401485015,1401485014,1401485013,1401485012) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401485012 begin to download photo : 1401485015 begin to download photo : 1401485035 begin to download photo : 1401485039 begin to download photo : 1401485075 download finish for photo 1401485039 begin to download photo : 1401485043 download finish for photo 1401485012 begin to download photo : 1401485013 download finish for photo 1401485015 begin to download photo : 1401485018 download finish for photo 1401485075 download finish for photo 1401485035 begin to download photo : 1401485036 download finish for photo 1401485018 begin to download photo : 1401485020 download finish for photo 1401485043 download finish for photo 1401485036 begin to download photo : 1401485047 begin to download photo : 1401485037 download finish for photo 1401485013 begin to download photo : 1401485014 download finish for photo 1401485020 download finish for photo 1401485014 download finish for photo 1401485047 download finish for photo 1401485037 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P29764069_29-12-2025_07_47_01.pdf 29764076 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401484823: '1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288258_0.png', 1401484997: '1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289343_0.png', 1401484996: '1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289345_0.png', 1401484995: '1766990586_3067163_1401484795_6ccb0df9f5a6c57d5d8053727efe7f46_rle_crop_4084289311_0.png', 1401484993: '1766990586_3067163_1401484798_6675e24f7afc0ab3afaa1cc82b79bfec_rle_crop_4084289302_0.png', 1401484971: '1766990546_3064489_1401484831_cf81db63d4c601c8b944b23de03184ff_rle_crop_4084289097_0.png', 1401484932: '1766990467_3061230_1401484589_080d2cd3738479078c49ee353a26638a_rle_crop_4084288920_0.png', 1401484931: '1766990467_3061230_1401484589_080d2cd3738479078c49ee353a26638a_rle_crop_4084288921_0.png', 1401484930: '1766990467_3061230_1401484641_516a88396e69f2e013233fa20c588b76_rle_crop_4084288853_0.png', 1401484928: '1766990467_3061230_1401484641_516a88396e69f2e013233fa20c588b76_rle_crop_4084288854_0.png', 1401484845: '1766990346_3053508_1401484648_9667dc94e401ef95bf45c0d2bdf0c884_rle_crop_4084288383_0.png', 1401484706: '1766990108_3042529_1401484562_9416fab2de1c6ff9be120a69b976c732_rle_crop_4084287350_0.png', 1401484822: '1766990306_3051606_1401484688_7d4d5f5836e1ad086195046cee407fe8_rle_crop_4084288219_0.png', 1401484821: '1766990306_3051606_1401484688_7d4d5f5836e1ad086195046cee407fe8_rle_crop_4084288217_0.png', 1401484820: '1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288207_0.png', 1401484819: '1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288204_0.png', 1401484785: '1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287362_0.png', 1401484784: '1766990245_3049660_1401484562_9416fab2de1c6ff9be120a69b976c732_rle_crop_4084287350_0.png', 1401484783: '1766990245_3049660_1401484593_3832938901e25fcbcc6224e4de95b3df_rle_crop_4084287964_0.png', 1401484782: '1766990245_3049660_1401484643_757d098025794adf6e9051fbd03b4554_rle_crop_4084287948_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/4a8cf219b3992aa3c04435c7cc8baf37_87510360.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/7d76b12c890a3416d04fac74a6e67942_66870265.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/7a245c243ffdc0440fee034ed91b876c_55509912.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/cf3f520d2f5efd3ff3dc4a3b4a83e92b_72940252.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/24e0c9f0894cf64d0505456f727e8ac9_62323308.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/3da2b2627cb30f5bed2b0dc0ffd5c51b_39081540.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/b90e7fd66f7d69008e2b5c989b15a171_75931491.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/39a722bece4ed5888b511be54248c27f_53696245.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/b90e7fd66f7d69008e2b5c989b15a171_34405714.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/39a722bece4ed5888b511be54248c27f_27620304.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/631eaddc53e9e5b87b314becbcd6095e_6244190.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/5f34f5f6dba0739f27f006314539b74b_96689369.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/afad24467132360726add076e32a6348_32590177.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/98dec4e4dce2484d3b0ddf87fc4efa22_34261939.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/d5bc42647d00a06a2697f388821ad64c_23647334.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9f3061da3c0d1c93ecca321d0a637fc5_26352234.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/927b47699e1fec4845162f4690360d97_13857947.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/5f34f5f6dba0739f27f006314539b74b_10675872.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/30ea310dbe69d82f63d411db92ca0b1e_41289890.png change filename to text .imagette297640761766990821/ imagette297640761766990821/1766990546_3064489_1401484831_cf81db63d4c601c8b944b23de03184ff_rle_crop_4084289097_0.png.png imagette297640761766990821/1766990245_3049660_1401484593_3832938901e25fcbcc6224e4de95b3df_rle_crop_4084287964_0.png.png imagette297640761766990821/1766990586_3067163_1401484798_6675e24f7afc0ab3afaa1cc82b79bfec_rle_crop_4084289302_0.png.png imagette297640761766990821/1766990346_3053508_1401484648_9667dc94e401ef95bf45c0d2bdf0c884_rle_crop_4084288383_0.png.png imagette297640761766990821/1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288207_0.png.png imagette297640761766990821/1766990467_3061230_1401484589_080d2cd3738479078c49ee353a26638a_rle_crop_4084288921_0.png.png imagette297640761766990821/1766990306_3051606_1401484688_7d4d5f5836e1ad086195046cee407fe8_rle_crop_4084288219_0.png.png imagette297640761766990821/1766990467_3061230_1401484589_080d2cd3738479078c49ee353a26638a_rle_crop_4084288920_0.png.png imagette297640761766990821/1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289343_0.png.png imagette297640761766990821/1766990467_3061230_1401484641_516a88396e69f2e013233fa20c588b76_rle_crop_4084288853_0.png.png imagette297640761766990821/1766990245_3049660_1401484562_9416fab2de1c6ff9be120a69b976c732_rle_crop_4084287350_0.png.png imagette297640761766990821/1766990586_3067163_1401484795_6ccb0df9f5a6c57d5d8053727efe7f46_rle_crop_4084289311_0.png.png imagette297640761766990821/1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287362_0.png.png imagette297640761766990821/1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288204_0.png.png imagette297640761766990821/1766990467_3061230_1401484641_516a88396e69f2e013233fa20c588b76_rle_crop_4084288854_0.png.png imagette297640761766990821/1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289345_0.png.png imagette297640761766990821/1766990245_3049660_1401484643_757d098025794adf6e9051fbd03b4554_rle_crop_4084287948_0.png.png imagette297640761766990821/1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288258_0.png.png imagette297640761766990821/1766990306_3051606_1401484688_7d4d5f5836e1ad086195046cee407fe8_rle_crop_4084288217_0.png.png imagette297640761766990821/1766990108_3042529_1401484562_9416fab2de1c6ff9be120a69b976c732_rle_crop_4084287350_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/30ea310dbe69d82f63d411db92ca0b1e_15081694.png imagette297640761766990821 29764077 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764077 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401484850: '1766990346_3053508_1401484651_fb76530b6373c542d243f9d78f720ed7_rle_crop_4084288372_0.png', 1401485002: '1766990586_3067163_1401484793_90cc59250e825a9ed237bcacfdda97f5_rle_crop_4084289323_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6b34a7d22ba3ca0a82afab8ff121fd88_13539508.png change filename to text .imagette297640771766990823/ imagette297640771766990823/1766990586_3067163_1401484793_90cc59250e825a9ed237bcacfdda97f5_rle_crop_4084289323_0.png.png imagette297640771766990823/1766990346_3053508_1401484651_fb76530b6373c542d243f9d78f720ed7_rle_crop_4084288372_0.png.png imagette297640781766990823/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/907073e84a36b9d02f71f1171c6d4f33_35986625.png imagette297640771766990823 29764078 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764078 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297640781766990823 29764080 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764080 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401484703: '1766990108_3042529_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287360_0.png', 1401484779: '1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287360_0.png', 1401484815: '1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288206_0.png', 1401484816: '1766990306_3051606_1401484684_157c7f9286f2cdcc60dcbc9fc3819241_rle_crop_4084288229_0.png', 1401484988: '1766990586_3067163_1401484795_6ccb0df9f5a6c57d5d8053727efe7f46_rle_crop_4084289313_0.png', 1401484989: '1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289344_0.png', 1401485007: '1766990607_3067675_1401484759_ab7e9631115b529f11234e5400e69724_rle_crop_4084289500_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/78e359873e838a313f2b39d545d15a3a_12299842.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/78e359873e838a313f2b39d545d15a3a_11360268.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/a8ac91102d33a4fecaf57de9def5bb0e_95237340.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/3fc91e6bae04d508fdbd103845b8d799_20872615.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9c1f2ec77579aebd4d0fc1f7f7810a05_63754280.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/50bc12e7524f5e03a4859a5e3031be9f_32243405.png change filename to text .imagette297640801766990823/ imagette297640801766990823/1766990586_3067163_1401484795_6ccb0df9f5a6c57d5d8053727efe7f46_rle_crop_4084289313_0.png.png imagette297640801766990823/1766990306_3051606_1401484684_157c7f9286f2cdcc60dcbc9fc3819241_rle_crop_4084288229_0.png.png imagette297640801766990823/1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289344_0.png.png imagette297640801766990823/1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287360_0.png.png imagette297640801766990823/1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288206_0.png.png imagette297640801766990823/1766990108_3042529_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287360_0.png.png imagette297640801766990823/1766990607_3067675_1401484759_ab7e9631115b529f11234e5400e69724_rle_crop_4084289500_0.png.png imagette297640821766990824/ imagette297640831766990824/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/fa43c5fb8876506098657bf166fa19c6_17770450.png imagette297640801766990823 29764082 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297640821766990824 29764083 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764083 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297640831766990824 29764085 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401484709: '1766990108_3042529_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287357_0.png', 1401484710: '1766990108_3042529_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287364_0.png', 1401484755: '1766990187_3047329_1401484613_2785703a58f9203dddd465839dbb3eb6_rle_crop_4084287489_0.png', 1401484786: '1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287357_0.png', 1401484787: '1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287364_0.png', 1401484826: '1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288210_0.png', 1401484846: '1766990346_3053508_1401484648_9667dc94e401ef95bf45c0d2bdf0c884_rle_crop_4084288384_0.png', 1401484848: '1766990346_3053508_1401484645_6adcf02b14a331f8b70d8c0c378dd618_rle_crop_4084288395_0.png', 1401484972: '1766990546_3064489_1401484832_296851075b49b6f8367da51da9f869c1_rle_crop_4084289080_0.png', 1401485000: '1766990586_3067163_1401484834_04c5638e415fcb4f48981f91a806126a_rle_crop_4084289292_0.png', 1401485010: '1766990607_3067675_1401484756_b3153266acac25cd18dea893c441f02c_rle_crop_4084289537_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/4931180ac38f0a32491cee802930c003_57518371.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6d981d56f4347281250183a0b42011c4_3751246.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/99c0ed6903820e7f0cadd68a82fa59cb_37448161.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/4931180ac38f0a32491cee802930c003_25195832.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6d981d56f4347281250183a0b42011c4_29570265.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/33d29bf67100b2a227096e7439b2938a_93379423.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/61d7ef154803647033e7abcb1e665d92_56901053.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9f134751d4b81b8a98ca83ed6ccca982_52038386.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/4263251a82ed4a8f14b9f79007f01f98_86886012.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/f4820e0068272db230437c84a52922ac_86425713.png change filename to text .imagette297640851766990824/ imagette297640851766990824/1766990607_3067675_1401484756_b3153266acac25cd18dea893c441f02c_rle_crop_4084289537_0.png.png imagette297640851766990824/1766990108_3042529_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287357_0.png.png imagette297640851766990824/1766990187_3047329_1401484613_2785703a58f9203dddd465839dbb3eb6_rle_crop_4084287489_0.png.png imagette297640851766990824/1766990306_3051606_1401484693_460afe7c843ad2635d2c4b2b14ac5a64_rle_crop_4084288210_0.png.png imagette297640851766990824/1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287357_0.png.png imagette297640851766990824/1766990546_3064489_1401484832_296851075b49b6f8367da51da9f869c1_rle_crop_4084289080_0.png.png imagette297640851766990824/1766990586_3067163_1401484834_04c5638e415fcb4f48981f91a806126a_rle_crop_4084289292_0.png.png imagette297640851766990824/1766990346_3053508_1401484648_9667dc94e401ef95bf45c0d2bdf0c884_rle_crop_4084288384_0.png.png imagette297640851766990824/1766990245_3049660_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287364_0.png.png imagette297640851766990824/1766990108_3042529_1401484557_f95622e7e9fbdb78c9a3ec88ec4ec8f7_rle_crop_4084287364_0.png.png imagette297640851766990824/1766990346_3053508_1401484645_6adcf02b14a331f8b70d8c0c378dd618_rle_crop_4084288395_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/cefdb1889b2a86d4a7a7ef3b4c954c15_58301511.png imagette297640851766990824 29764079 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764079 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401484825: '1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288262_0.png', 1401484934: '1766990467_3061230_1401484642_3c0d15e97bc7acd10206bdd3bc509422_rle_crop_4084288843_0.png', 1401484935: '1766990467_3061230_1401484641_516a88396e69f2e013233fa20c588b76_rle_crop_4084288857_0.png', 1401484936: '1766990467_3061230_1401484639_233d2456671d38981f370ba5e9024a8f_rle_crop_4084288874_0.png', 1401484937: '1766990467_3061230_1401484590_5c43ca515e44a1fc7a3ef4f86ae0f49a_rle_crop_4084288910_0.png', 1401484938: '1766990467_3061230_1401484589_080d2cd3738479078c49ee353a26638a_rle_crop_4084288924_0.png', 1401484939: '1766990467_3061230_1401484588_2f846c22a643d71b56fd39dc0199e4bb_rle_crop_4084288941_0.png', 1401484998: '1766990586_3067163_1401484793_90cc59250e825a9ed237bcacfdda97f5_rle_crop_4084289325_0.png', 1401484999: '1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289351_0.png', 1401485008: '1766990607_3067675_1401484757_b8af2501df14d14e60882017442cf2df_rle_crop_4084289518_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/1160db5f80a099d6706a09c54ae8647d_34742432.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/245b62c5bc756ee66176ad8dd08a1f9e_56429304.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/7720e82c04007bec1ffdcbd21568a937_19276468.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/93a62e371f9cd1a06b01015be050c67f_45890139.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/245b62c5bc756ee66176ad8dd08a1f9e_14697739.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/7720e82c04007bec1ffdcbd21568a937_71066746.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/93a62e371f9cd1a06b01015be050c67f_21999905.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/dadc702aec856901ca1cd4353c9041ef_89191791.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6fd0019f3b1b56f99c6ac2959ea52c91_7240726.png change filename to text .imagette297640791766990824/ imagette297640791766990824/1766990467_3061230_1401484589_080d2cd3738479078c49ee353a26638a_rle_crop_4084288924_0.png.png imagette297640791766990824/1766990467_3061230_1401484641_516a88396e69f2e013233fa20c588b76_rle_crop_4084288857_0.png.png imagette297640791766990824/1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288262_0.png.png imagette297640791766990824/1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289351_0.png.png imagette297640791766990824/1766990467_3061230_1401484642_3c0d15e97bc7acd10206bdd3bc509422_rle_crop_4084288843_0.png.png imagette297640791766990824/1766990467_3061230_1401484588_2f846c22a643d71b56fd39dc0199e4bb_rle_crop_4084288941_0.png.png imagette297640791766990824/1766990607_3067675_1401484757_b8af2501df14d14e60882017442cf2df_rle_crop_4084289518_0.png.png imagette297640791766990824/1766990467_3061230_1401484639_233d2456671d38981f370ba5e9024a8f_rle_crop_4084288874_0.png.png imagette297640791766990824/1766990586_3067163_1401484793_90cc59250e825a9ed237bcacfdda97f5_rle_crop_4084289325_0.png.png imagette297640791766990824/1766990467_3061230_1401484590_5c43ca515e44a1fc7a3ef4f86ae0f49a_rle_crop_4084288910_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/62574f93b4769125d14e9b02f9d2b0c7_85209804.png imagette297640791766990824 29764086 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401484911: '1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288894_0.png', 1401485006: '1766990607_3067675_1401484756_b3153266acac25cd18dea893c441f02c_rle_crop_4084289529_0.png', 1401485005: '1766990607_3067675_1401484802_66ba5e63f22ec9f1a1597a9e2be81e38_rle_crop_4084289488_0.png', 1401484987: '1766990586_3067163_1401484793_90cc59250e825a9ed237bcacfdda97f5_rle_crop_4084289332_0.png', 1401484917: '1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288971_0.png', 1401484916: '1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288972_0.png', 1401484915: '1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288969_0.png', 1401484914: '1766990467_3061230_1401484588_2f846c22a643d71b56fd39dc0199e4bb_rle_crop_4084288938_0.png', 1401484913: '1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288896_0.png', 1401484912: '1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288897_0.png', 1401484752: '1766990187_3047329_1401484612_bd39619f426ca6e430b6102054356183_rle_crop_4084287503_0.png', 1401484910: '1766990467_3061230_1401484639_233d2456671d38981f370ba5e9024a8f_rle_crop_4084288871_0.png', 1401484843: '1766990346_3053508_1401484645_6adcf02b14a331f8b70d8c0c378dd618_rle_crop_4084288397_0.png', 1401484842: '1766990346_3053508_1401484648_9667dc94e401ef95bf45c0d2bdf0c884_rle_crop_4084288385_0.png', 1401484841: '1766990346_3053508_1401484651_fb76530b6373c542d243f9d78f720ed7_rle_crop_4084288380_0.png', 1401484814: '1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288265_0.png', 1401484812: '1766990306_3051606_1401484684_157c7f9286f2cdcc60dcbc9fc3819241_rle_crop_4084288233_0.png', 1401484778: '1766990245_3049660_1401484593_3832938901e25fcbcc6224e4de95b3df_rle_crop_4084287967_0.png', 1401484777: '1766990245_3049660_1401484643_757d098025794adf6e9051fbd03b4554_rle_crop_4084287951_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9530d846be790676e66995451c08bb6f_11793032.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/5ad0334f9ed7b11ced3c544a9ad49482_60719658.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6c9b5adbc03bfb54e38bdada3216c410_6992165.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/ace26a37ed1f514c87f33dbe2ccf4087_23142545.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/bc8f139d7f4553e23a4e5cb3d7bae2d2_40930823.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6d5ae45d8722e2682e3da85e883261e0_4011890.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9530d846be790676e66995451c08bb6f_44027132.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/40352dc07ad8402d395afce50a85d9b5_85124129.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/bc8f139d7f4553e23a4e5cb3d7bae2d2_82438560.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6d5ae45d8722e2682e3da85e883261e0_12356396.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/72b26d840da51f32d0b6c2d7931053f0_52823672.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/40352dc07ad8402d395afce50a85d9b5_46803996.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/3710701e5e0158e25c5d7d99a0ec4722_62209327.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/4e21fd7cb7b0e1cead160407837c7b2b_72940691.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/a2a9fe9d7653919f87d60e75d96de85e_73862965.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/3a56bfcf67486efebc5e171068ca30e3_71267067.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/ee9d97adcde87b717957506f761dbb78_74576518.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/053230090709be1d5d1d10ab3fb88b1a_35903320.png change filename to text .imagette297640861766990825/ imagette297640861766990825/1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288897_0.png.png imagette297640861766990825/1766990467_3061230_1401484639_233d2456671d38981f370ba5e9024a8f_rle_crop_4084288871_0.png.png imagette297640861766990825/1766990467_3061230_1401484588_2f846c22a643d71b56fd39dc0199e4bb_rle_crop_4084288938_0.png.png imagette297640861766990825/1766990346_3053508_1401484651_fb76530b6373c542d243f9d78f720ed7_rle_crop_4084288380_0.png.png imagette297640861766990825/1766990607_3067675_1401484756_b3153266acac25cd18dea893c441f02c_rle_crop_4084289529_0.png.png imagette297640861766990825/1766990586_3067163_1401484793_90cc59250e825a9ed237bcacfdda97f5_rle_crop_4084289332_0.png.png imagette297640861766990825/1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288265_0.png.png imagette297640861766990825/1766990607_3067675_1401484802_66ba5e63f22ec9f1a1597a9e2be81e38_rle_crop_4084289488_0.png.png imagette297640861766990825/1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288969_0.png.png imagette297640861766990825/1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288896_0.png.png imagette297640861766990825/1766990187_3047329_1401484612_bd39619f426ca6e430b6102054356183_rle_crop_4084287503_0.png.png imagette297640861766990825/1766990346_3053508_1401484645_6adcf02b14a331f8b70d8c0c378dd618_rle_crop_4084288397_0.png.png imagette297640861766990825/1766990245_3049660_1401484643_757d098025794adf6e9051fbd03b4554_rle_crop_4084287951_0.png.png imagette297640861766990825/1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288894_0.png.png imagette297640861766990825/1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288972_0.png.png imagette297640861766990825/1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288971_0.png.png imagette297640861766990825/1766990306_3051606_1401484684_157c7f9286f2cdcc60dcbc9fc3819241_rle_crop_4084288233_0.png.png imagette297640861766990825/1766990346_3053508_1401484648_9667dc94e401ef95bf45c0d2bdf0c884_rle_crop_4084288385_0.png.png imagette297640861766990825/1766990245_3049660_1401484593_3832938901e25fcbcc6224e4de95b3df_rle_crop_4084287967_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/053230090709be1d5d1d10ab3fb88b1a_6467609.png imagette297640861766990825 29764087 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401484704: '1766990108_3042529_1401484564_da7dddf40df766c503b580b902f5b11d_rle_crop_4084287339_0.png', 1401484753: '1766990187_3047329_1401484615_b62f22e3e98e48fd483711b2ff011baf_rle_crop_4084287479_0.png', 1401484780: '1766990245_3049660_1401484564_da7dddf40df766c503b580b902f5b11d_rle_crop_4084287339_0.png', 1401484817: '1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288259_0.png', 1401484844: '1766990346_3053508_1401484651_fb76530b6373c542d243f9d78f720ed7_rle_crop_4084288374_0.png', 1401484921: '1766990467_3061230_1401484639_233d2456671d38981f370ba5e9024a8f_rle_crop_4084288877_0.png', 1401484923: '1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288890_0.png', 1401484924: '1766990467_3061230_1401484588_2f846c22a643d71b56fd39dc0199e4bb_rle_crop_4084288944_0.png', 1401484925: '1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288965_0.png', 1401484990: '1766990586_3067163_1401484798_6675e24f7afc0ab3afaa1cc82b79bfec_rle_crop_4084289304_0.png', 1401484991: '1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289350_0.png', 1401485052: '1766990706_3074652_1401484720_ea0e84678f4b02f56e6383731fd4024d_rle_crop_4084289578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/096e62dcafe6b325d47955e1b64b1a7b_27774989.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/93923701a64375ab5d1f1d108be29764_30650411.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/096e62dcafe6b325d47955e1b64b1a7b_35673115.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/1692b1fd356afcd596ca4ac4a0078836_49228417.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/cff47b1b4b91e03983962fec48742f88_15491715.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/c413f07de5550e88fad3a06e488c651f_16181793.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/f766a29c9b8d27195b31a14e474a07b4_81225757.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/c413f07de5550e88fad3a06e488c651f_2384353.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/f766a29c9b8d27195b31a14e474a07b4_25818102.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/8a9365b58f4396a2facd6493aa61838f_12964889.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/e541c40fa6c1a5164442ca0472d02b82_47759116.png change filename to text .imagette297640871766990826/ imagette297640871766990826/1766990187_3047329_1401484615_b62f22e3e98e48fd483711b2ff011baf_rle_crop_4084287479_0.png.png imagette297640871766990826/1766990467_3061230_1401484639_233d2456671d38981f370ba5e9024a8f_rle_crop_4084288877_0.png.png imagette297640871766990826/1766990586_3067163_1401484798_6675e24f7afc0ab3afaa1cc82b79bfec_rle_crop_4084289304_0.png.png imagette297640871766990826/1766990586_3067163_1401484790_50d64e2e7f79b43cd4c4d2eeb06ad1bf_rle_crop_4084289350_0.png.png imagette297640871766990826/1766990467_3061230_1401484637_8cd81dd83d87ec5c0fcc3d66d419be5c_rle_crop_4084288890_0.png.png imagette297640871766990826/1766990306_3051606_1401484676_0e87ca1524402db5d757db5167baa3c6_rle_crop_4084288259_0.png.png imagette297640871766990826/1766990467_3061230_1401484586_fddb37dad9bf4adc680f9bdd970fd8be_rle_crop_4084288965_0.png.png imagette297640871766990826/1766990706_3074652_1401484720_ea0e84678f4b02f56e6383731fd4024d_rle_crop_4084289578_0.png.png imagette297640871766990826/1766990108_3042529_1401484564_da7dddf40df766c503b580b902f5b11d_rle_crop_4084287339_0.png.png imagette297640871766990826/1766990346_3053508_1401484651_fb76530b6373c542d243f9d78f720ed7_rle_crop_4084288374_0.png.png imagette297640871766990826/1766990467_3061230_1401484588_2f846c22a643d71b56fd39dc0199e4bb_rle_crop_4084288944_0.png.png imagette297640871766990826/1766990245_3049660_1401484564_da7dddf40df766c503b580b902f5b11d_rle_crop_4084287339_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/a73d61c29ac128e9b4ca60d096c5847e_93895218.png imagette297640871766990826 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29764069 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29764089,29764090,29764091,29764092,29764093,29764094,29764095,29764096,29764097,29764098,29764099,29764100?tags=cartonnette,kraft,mal_croppe,Carton_brun,autre_refus,papier,metal,flou,environnement,plastique,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1401485075] : ('0.03394238732669283',) no score found for photo 1401485075 We are sending mail with results at report@fotonower.com args[1401485047] : ('0.03394238732669283',) no score found for photo 1401485047 We are sending mail with results at report@fotonower.com args[1401485043] : ('0.03394238732669283',) no score found for photo 1401485043 We are sending mail with results at report@fotonower.com args[1401485039] : ('0.03394238732669283',) no score found for photo 1401485039 We are sending mail with results at report@fotonower.com args[1401485037] : ('0.03394238732669283',) no score found for photo 1401485037 We are sending mail with results at report@fotonower.com args[1401485036] : ('0.03394238732669283',) no score found for photo 1401485036 We are sending mail with results at report@fotonower.com args[1401485035] : ('0.03394238732669283',) no score found for photo 1401485035 We are sending mail with results at report@fotonower.com args[1401485020] : ('0.03394238732669283',) no score found for photo 1401485020 We are sending mail with results at report@fotonower.com args[1401485018] : ('0.03394238732669283',) no score found for photo 1401485018 We are sending mail with results at report@fotonower.com args[1401485015] : ('0.03394238732669283',) no score found for photo 1401485015 We are sending mail with results at report@fotonower.com args[1401485014] : ('0.03394238732669283',) no score found for photo 1401485014 We are sending mail with results at report@fotonower.com args[1401485013] : ('0.03394238732669283',) no score found for photo 1401485013 We are sending mail with results at report@fotonower.com args[1401485012] : ('0.03394238732669283',) no score found for photo 1401485012 We are sending mail with results at report@fotonower.com refus_total : 0.03394238732669283 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764069 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_P29764069_29-12-2025_07_47_01.pdf results_Auto_P29764069_29-12-2025_07_47_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29764069_29-12-2025_07_47_01.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','29764069','results_Auto_P29764069_29-12-2025_07_47_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29764069_29-12-2025_07_47_01.pdf','pdf','','0.26','0.03394238732669283') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29764069]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] map_info['map_portfolio_photo'] : {29764069: [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012, 1401484976, 1401484974, 1401484970, 1401484968, 1401484946, 1401484944, 1401484943, 1401484942, 1401484890, 1401484888, 1401484886, 1401484879, 1401484876, 1401484873, 1401484870, 1401484868, 1401484865, 1401484834, 1401484832, 1401484831, 1401484828, 1401484802, 1401484798, 1401484795, 1401484793, 1401484790, 1401484788, 1401484767, 1401484763, 1401484759, 1401484757, 1401484756, 1401484751, 1401484749, 1401484746, 1401484730, 1401484727, 1401484725, 1401484722, 1401484721, 1401484720, 1401484696, 1401484693, 1401484688, 1401484684, 1401484682, 1401484676, 1401484655, 1401484651, 1401484648, 1401484645, 1401484643, 1401484642, 1401484641, 1401484639, 1401484637, 1401484625, 1401484621, 1401484618, 1401484615, 1401484613, 1401484612, 1401484593, 1401484590, 1401484589, 1401484588, 1401484586, 1401484571, 1401484568, 1401484564, 1401484562, 1401484557]} final : False mtd_id 4302 list_pids : [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] 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, '4282358') ('4302', '29764069', '1401485075', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485047', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485043', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485039', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485037', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485036', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485035', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485020', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485018', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485015', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485014', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485013', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485012', None, None, None, None, None, '4282358') 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', '29764069', '1401485075', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485047', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485043', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485039', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485037', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485036', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485035', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485020', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485018', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485015', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485014', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485013', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485012', None, None, None, None, None, '4282358')] time used for this insertion : 0.01537179946899414 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.699783563613892 time spend to save output : 0.01565718650817871 total time spend for step 4 : 7.71544075012207 step5:split_time_score Mon Dec 29 07:47:09 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 : ['29764069'] 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 : [('29764069',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29764069) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401485075: {'path': 'temp/1766990821_83305_1401485075_356bba084d1ad55446dd79111569ef5b.jpg', 'extension': 'jpg'}, 1401485015: {'path': 'temp/1766990821_83305_1401485015_3f3086f838831adbb4c9f838eb4cc297.jpg', 'extension': 'jpg'}, 1401485018: {'path': 'temp/1766990821_83305_1401485018_94d11b61f1d9abcffd2ceb08425aebcb.jpg', 'extension': 'jpg'}, 1401485020: {'path': 'temp/1766990821_83305_1401485020_ec7421ee9b2fc84146f6837e95a7eb66.jpg', 'extension': 'jpg'}, 1401485012: {'path': 'temp/1766990821_83305_1401485012_3e57ea120f9d00a260abd0b4cd80c84e.jpg', 'extension': 'jpg'}, 1401485013: {'path': 'temp/1766990821_83305_1401485013_3a1044d1073f795ceac3ab2af72d9431.jpg', 'extension': 'jpg'}, 1401485014: {'path': 'temp/1766990821_83305_1401485014_fcba250cb63e5410290458b76eb7e0a1.jpg', 'extension': 'jpg'}, 1401485039: {'path': 'temp/1766990821_83305_1401485039_7a826bbe5f757b0c3a9d9093bfc54d5c.jpg', 'extension': 'jpg'}, 1401485043: {'path': 'temp/1766990821_83305_1401485043_7785707ccfce0f35bc3c36c5382fd937.jpg', 'extension': 'jpg'}, 1401485047: {'path': 'temp/1766990821_83305_1401485047_433bdef9036c3c19327a8ad8d9a8559b.jpg', 'extension': 'jpg'}, 1401485035: {'path': 'temp/1766990821_83305_1401485035_6e3155d302546a5539f9cad3efaf7d70.jpg', 'extension': 'jpg'}, 1401485036: {'path': 'temp/1766990821_83305_1401485036_2d56578cf22ccbd14ab3d44a165269ab.jpg', 'extension': 'jpg'}, 1401485037: {'path': 'temp/1766990821_83305_1401485037_fd58b4c2e74d09018278c29b242309d2.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 = 29764069; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29764069 group by h (('07', 85),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29764069 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 (29764069) 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 (29764069) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 29122025 29764069 Nombre de photos uploadées : 85 / 23040 (0%) 29122025 29764069 Nombre de photos taguées (types de déchets): 0 / 85 (0%) 29122025 29764069 Nombre de photos taguées (volume) : 0 / 85 (0%) [{'photo_id': 1401484571, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/efc9d78fe81f061b5008fb994b749254.jpg', 'username': None, 'uploaded_at': 1766989877, 'text': 'image_29122025_07_30_04_009125m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401484568, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/12740aeb94b2dce75bca8bb1813dedf3.jpg', 'username': None, 'uploaded_at': 1766989877, 'text': 'image_29122025_07_30_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401484564, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/da7dddf40df766c503b580b902f5b11d.jpg', 'username': None, 'uploaded_at': 1766989877, 'text': 'image_29122025_07_30_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401484562, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9416fab2de1c6ff9be120a69b976c732.jpg', 'username': None, 'uploaded_at': 1766989877, 'text': 'image_29122025_07_30_34_010140m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.3589859008789062e-05 ????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004342317581176758 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29764069, '2025-12-29' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-29' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2804132,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24371027946472168 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= 2804132 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29759841, 'dashboard_result_id': 18785192, '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_P29759841_29-12-2025_05_19_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29759843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29759844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29759845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29759846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29759847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29759848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29759849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29759850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29759851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29759852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29759853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29759854, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29760025, 'dashboard_result_id': 18785193, '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_P29760025_29-12-2025_05_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760040, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29760415, 'dashboard_result_id': 18785194, '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_P29760415_29-12-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760431, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29760792, 'dashboard_result_id': 18785195, '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_P29760792_29-12-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29760799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760810, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29761190, 'dashboard_result_id': 18785196, '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_P29761190_29-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761202, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29761669, 'dashboard_result_id': 18785197, '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_P29761669_29-12-2025_06_33_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761681, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29762108, 'dashboard_result_id': 18785198, '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_P29762108_29-12-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762123, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29762558, 'dashboard_result_id': 18785199, '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_P29762558_29-12-2025_07_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762577, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29763091, 'dashboard_result_id': 18785200, '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_P29763091_29-12-2025_07_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29763114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29763115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29763116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29763117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29763118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29763119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29763120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29763121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29763122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29763123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29763124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29763125, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29763540, 'dashboard_result_id': 18785201, '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_P29763540_29-12-2025_07_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29763548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29763549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29763550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29763551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29763552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29763553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29763554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29763555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29763556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29763557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29763558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29763559, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2811166, 'mtr_portfolio_id': 29764069, 'dashboard_result_id': 18785202, '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_P29764069_29-12-2025_07_45_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29764076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29764077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29764078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29764079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29764080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29764081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29764082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29764083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29764084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29764085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29764086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29764087, '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 = 29759841 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': 4281749, 'mtr_portfolio_id': 29759841, 'created_at': datetime.datetime(2025, 12, 29, 5, 19, 29), 'result': '0.061001476454854056', 'result_long': None, 'result_double': None}] Qualite : 0.061001476454854056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29759841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29759841_29-12-2025_05_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29759841 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_P29759841_29-12-2025_05_19_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29759843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29759844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29759845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29759846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29759847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29759848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29759849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29759850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29759851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29759852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29759853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29759854, 'pht': 3726}}" where mtr_portfolio_id = 29759841 and dashboard_run_id = 2811166 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`=29759841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785192, 0.061001476454854056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29759841_29-12-2025_05_19_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29759843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29759844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29759845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29759846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29759847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29759848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29759849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29759850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29759851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29759852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29759853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29759854, '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 = 29760025 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': 4281775, 'mtr_portfolio_id': 29760025, 'created_at': datetime.datetime(2025, 12, 29, 5, 33), 'result': '0.07076046805816123', 'result_long': None, 'result_double': None}] Qualite : 0.07076046805816123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29760025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760025_29-12-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29760025 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_P29760025_29-12-2025_05_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760040, 'pht': 3726}}" where mtr_portfolio_id = 29760025 and dashboard_run_id = 2811166 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`=29760025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785193, 0.07076046805816123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760025_29-12-2025_05_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760040, '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 = 29760415 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': 4281826, 'mtr_portfolio_id': 29760415, 'created_at': datetime.datetime(2025, 12, 29, 5, 47), 'result': '0.06216490440369649', 'result_long': None, 'result_double': None}] Qualite : 0.06216490440369649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29760415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760415_29-12-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29760415 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_P29760415_29-12-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760431, 'pht': 3726}}" where mtr_portfolio_id = 29760415 and dashboard_run_id = 2811166 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`=29760415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785194, 0.06216490440369649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760415_29-12-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760431, '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 = 29760792 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': 4281882, 'mtr_portfolio_id': 29760792, 'created_at': datetime.datetime(2025, 12, 29, 6, 3, 31), 'result': '0.059933079572211535', 'result_long': None, 'result_double': None}] Qualite : 0.059933079572211535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29760792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760792_29-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29760792 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_P29760792_29-12-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29760799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760810, 'pht': 3726}}" where mtr_portfolio_id = 29760792 and dashboard_run_id = 2811166 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`=29760792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785195, 0.059933079572211535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760792_29-12-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29760799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760810, '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 = 29761190 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': 4281966, 'mtr_portfolio_id': 29761190, 'created_at': datetime.datetime(2025, 12, 29, 6, 17, 1), 'result': '0.042741405386945416', 'result_long': None, 'result_double': None}] Qualite : 0.042741405386945416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29761190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761190_29-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29761190 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_P29761190_29-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761202, 'pht': 3726}}" where mtr_portfolio_id = 29761190 and dashboard_run_id = 2811166 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`=29761190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785196, 0.042741405386945416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761190_29-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761202, '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 = 29761669 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': 4282025, 'mtr_portfolio_id': 29761669, 'created_at': datetime.datetime(2025, 12, 29, 6, 33, 28), 'result': '0.045653356615961364', 'result_long': None, 'result_double': None}] Qualite : 0.045653356615961364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29761669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761669_29-12-2025_06_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29761669 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_P29761669_29-12-2025_06_33_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761681, 'pht': 3726}}" where mtr_portfolio_id = 29761669 and dashboard_run_id = 2811166 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`=29761669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785197, 0.045653356615961364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761669_29-12-2025_06_33_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761681, '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 = 29762108 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': 4282092, 'mtr_portfolio_id': 29762108, 'created_at': datetime.datetime(2025, 12, 29, 6, 46, 58), 'result': '0.03311495379366328', 'result_long': None, 'result_double': None}] Qualite : 0.03311495379366328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29762108 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762108_29-12-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29762108 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_P29762108_29-12-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762123, 'pht': 3726}}" where mtr_portfolio_id = 29762108 and dashboard_run_id = 2811166 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`=29762108 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785198, 0.03311495379366328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762108_29-12-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762123, '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 = 29762558 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': 4282143, 'mtr_portfolio_id': 29762558, 'created_at': datetime.datetime(2025, 12, 29, 7, 4, 58), 'result': '0.0466972534748235', 'result_long': None, 'result_double': None}] Qualite : 0.0466972534748235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29762558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762558_29-12-2025_07_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29762558 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_P29762558_29-12-2025_07_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762577, 'pht': 3726}}" where mtr_portfolio_id = 29762558 and dashboard_run_id = 2811166 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`=29762558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785199, 0.0466972534748235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762558_29-12-2025_07_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762577, '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 = 29763091 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': 4282216, 'mtr_portfolio_id': 29763091, 'created_at': datetime.datetime(2025, 12, 29, 7, 16, 59), 'result': '0.04416617768222889', 'result_long': None, 'result_double': None}] Qualite : 0.04416617768222889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29763091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29763091_29-12-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29763091 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_P29763091_29-12-2025_07_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29763114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29763115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29763116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29763117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29763118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29763119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29763120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29763121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29763122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29763123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29763124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29763125, 'pht': 3726}}" where mtr_portfolio_id = 29763091 and dashboard_run_id = 2811168 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`=29763091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785200, 0.04416617768222889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29763091_29-12-2025_07_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29763114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29763115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29763116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29763117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29763118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29763119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29763120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29763121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29763122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29763123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29763124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29763125, '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 = 29763540 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': 4282270, 'mtr_portfolio_id': 29763540, 'created_at': datetime.datetime(2025, 12, 29, 7, 33), 'result': '0.02734014973024876', 'result_long': None, 'result_double': None}] Qualite : 0.02734014973024876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29763540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29763540_29-12-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29763540 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_P29763540_29-12-2025_07_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29763548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29763549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29763550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29763551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29763552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29763553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29763554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29763555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29763556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29763557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29763558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29763559, 'pht': 3726}}" where mtr_portfolio_id = 29763540 and dashboard_run_id = 2811168 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`=29763540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785201, 0.02734014973024876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29763540_29-12-2025_07_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29763548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29763549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29763550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29763551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29763552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29763553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29763554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29763555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29763556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29763557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29763558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29763559, '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 = 29764069 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': 4282358, 'mtr_portfolio_id': 29764069, 'created_at': datetime.datetime(2025, 12, 29, 7, 47, 1), 'result': '0.03394238732669283', 'result_long': None, 'result_double': None}] Qualite : 0.03394238732669283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29764069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29764069_29-12-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29764069 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_P29764069_29-12-2025_07_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29764076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29764077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29764078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29764079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29764080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29764081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29764082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29764083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29764084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29764085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29764086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29764087, 'pht': 3726}}" where mtr_portfolio_id = 29764069 and dashboard_run_id = 2811168 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`=29764069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18785202, 0.03394238732669283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29764069_29-12-2025_07_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29764076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29764077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29764078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29764079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29764080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29764081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29764082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29764083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29764084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29764085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29764086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29764087, '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 (29759841,29760025,29760415,29760792,29761190,29761669,29762108,29762558,29763091,29763540,29764069) result : ((1401477787,), (1401477791,), (1401477793,), (1401477855,), (1401477873,), (1401477875,), (1401477887,), (1401477888,), (1401477889,), (1401477891,), (1401477894,), (1401477905,), (1401477907,), (1401477922,), (1401477923,), (1401477924,), (1401477925,), (1401477927,), (1401477947,), (1401477950,), (1401477952,), (1401477955,), (1401477965,), (1401477967,), (1401477969,), (1401477971,), (1401477975,), (1401477977,), (1401478008,), (1401478009,), (1401478015,), (1401478019,), (1401478021,), (1401478023,), (1401478026,), (1401478001,), (1401478003,), (1401478005,), (1401478007,), (1401478031,), (1401478032,), (1401478033,), (1401478047,), (1401478049,), (1401478051,), (1401478054,), (1401478056,), (1401478067,), (1401478070,), (1401478073,), (1401478076,), (1401478079,), (1401478108,), (1401478111,), (1401478112,), (1401478113,), (1401478114,), (1401478125,), (1401478126,), (1401478128,), (1401478162,), (1401478164,), (1401478168,), (1401478170,), (1401478173,), (1401478175,), (1401478198,), (1401478202,), (1401478206,), (1401478208,), (1401478215,), (1401478218,), (1401478248,), (1401478252,), (1401478255,), (1401478267,), (1401478270,), (1401478278,), (1401478281,), (1401478283,), (1401478286,), (1401478294,), (1401478296,), (1401478298,), (1401478301,), (1401478304,), (1401478306,), (1401478339,), (1401478352,), (1401478369,), (1401478372,), (1401478373,), (1401478375,), (1401478376,), (1401478396,), (1401478402,), (1401478404,), (1401478406,), (1401478417,), (1401478420,), (1401478422,), (1401478424,), (1401478427,), (1401478429,), (1401478444,), (1401478447,), (1401478448,), (1401478496,), (1401478493,), (1401478494,), (1401478495,), (1401478514,), (1401478517,), (1401478518,), (1401478520,), (1401478522,), (1401478525,), (1401478541,), (1401478543,), (1401478546,), (1401478549,), (1401478552,), (1401478561,), (1401478568,), (1401478569,), (1401478571,), (1401478578,), (1401478579,), (1401478581,), (1401478583,), (1401478585,), (1401478588,), (1401478596,), (1401478598,), (1401478599,), (1401478600,), (1401478624,), (1401478626,), (1401478627,), (1401478628,), (1401478639,), (1401478640,), (1401478641,), (1401478643,), (1401478646,), (1401478691,), (1401478693,), (1401478695,), (1401478697,), (1401478700,), (1401478714,), (1401478715,), (1401478716,), (1401478717,), (1401478740,), (1401478742,), (1401478743,), (1401478745,), (1401478748,), (1401478759,), (1401478761,), (1401478763,), (1401478765,), (1401478768,), (1401478788,), (1401478790,), (1401478791,), (1401478792,), (1401478794,), (1401478807,), (1401478808,), (1401478809,), (1401478841,), (1401478842,), (1401478843,), (1401478845,), (1401478847,), (1401478856,), (1401478860,), (1401478862,), (1401478864,), (1401478867,), (1401478870,), (1401478898,), (1401478896,), (1401478897,), (1401478910,), (1401478911,), (1401478912,), (1401478914,), (1401478917,), (1401478920,), (1401478928,), (1401478930,), (1401478932,), (1401478933,), (1401478948,), (1401478950,), (1401478951,), (1401478952,), (1401478954,), (1401478956,), (1401478978,), (1401478979,), (1401478980,), (1401478982,), (1401478985,), (1401478988,), (1401478997,), (1401478999,), (1401479001,), (1401479003,), (1401479026,), (1401479032,), (1401479033,), (1401479034,), (1401479036,), (1401479038,), (1401479049,), (1401479050,), (1401479051,), (1401479053,), (1401479085,), (1401479087,), (1401479088,), (1401479091,), (1401479094,), (1401479107,), (1401479109,), (1401479110,), (1401479111,), (1401479113,), (1401479114,), (1401479143,), (1401479146,), (1401479148,), (1401479151,), (1401479153,), (1401479155,), (1401479162,), (1401479165,), (1401479190,), (1401479194,), (1401479195,), (1401479197,), (1401479216,), (1401479220,), (1401479223,), (1401479226,), (1401479235,), (1401479236,), (1401479237,), (1401479238,), (1401479239,), (1401479240,), (1401479253,), (1401479248,), (1401479251,), (1401479273,), (1401479274,), (1401479276,), (1401479279,), (1401479304,), (1401479306,), (1401479309,), (1401479311,), (1401479313,), (1401479314,), (1401479340,), (1401479342,), (1401479344,), (1401479346,), (1401479349,), (1401479351,), (1401479366,), (1401479369,), (1401479371,), (1401479373,), (1401479393,), (1401479394,), (1401479397,), (1401479402,), (1401479411,), (1401479414,), (1401479420,), (1401479422,), (1401479430,), (1401479435,), (1401479444,), (1401479448,), (1401479450,), (1401479471,), (1401479474,), (1401479476,), (1401479477,), (1401479479,), (1401479492,), (1401479493,), (1401479495,), (1401479521,), (1401479523,), (1401479525,), (1401479552,), (1401479553,), (1401479554,), (1401479555,), (1401479558,), (1401479577,), (1401479578,), (1401479579,), (1401479581,), (1401479583,), (1401479611,), (1401479614,), (1401479616,), (1401479617,), (1401479646,), (1401479656,), (1401479659,), (1401479660,), (1401479682,), (1401479684,), (1401479687,), (1401479693,), (1401479729,), (1401479727,), (1401479746,), (1401479748,), (1401479749,), (1401479750,), (1401479753,), (1401479755,), (1401479774,), (1401479777,), (1401479781,), (1401479786,), (1401479792,), (1401479812,), (1401479814,), (1401479816,), (1401479818,), (1401479821,), (1401479848,), (1401479850,), (1401479851,), (1401479869,), (1401479871,), (1401479872,), (1401479874,), (1401479877,), (1401479879,), (1401479897,), (1401479900,), (1401479903,), (1401479928,), (1401479930,), (1401479932,), (1401479934,), (1401479936,), (1401479938,), (1401479948,), (1401479958,), (1401479960,), (1401479987,), (1401479992,), (1401479995,), (1401479998,), (1401480002,), (1401480018,), (1401480021,), (1401480023,), (1401480045,), (1401480050,), (1401480052,), (1401480056,), (1401480060,), (1401480064,), (1401480089,), (1401480091,), (1401480093,), (1401480095,), (1401480113,), (1401480115,), (1401480116,), (1401480149,), (1401480150,), (1401480152,), (1401480154,), (1401480186,), (1401480180,), (1401480182,), (1401480184,), (1401480213,), (1401480215,), (1401480216,), (1401480217,), (1401480233,), (1401480235,), (1401480236,), (1401480238,), (1401480242,), (1401480263,), (1401480265,), (1401480267,), (1401480293,), (1401480295,), (1401480296,), (1401480322,), (1401480323,), (1401480325,), (1401480328,), (1401480331,), (1401480334,), (1401480340,), (1401480341,), (1401480347,), (1401480349,), (1401480352,), (1401480355,), (1401480358,), (1401480379,), (1401480382,), (1401480399,), (1401480402,), (1401480404,), (1401480435,), (1401480437,), (1401480439,), (1401480441,), (1401480457,), (1401480459,), (1401480462,), (1401480466,), (1401480492,), (1401480495,), (1401480497,), (1401480512,), (1401480514,), (1401480516,), (1401480519,), (1401480544,), (1401480547,), (1401480550,), (1401480569,), (1401480572,), (1401480574,), (1401480614,), (1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,), (1401481708,), (1401481742,), (1401481777,), (1401482035,), (1401482073,), (1401482106,), (1401482143,), (1401482179,), (1401482280,), (1401482306,), (1401482340,), (1401482378,), (1401482710,), (1401482714,), (1401482716,), (1401482718,), (1401482885,), (1401482888,), (1401482889,), (1401482890,), (1401483119,), (1401483203,), (1401483287,), (1401483381,), (1401483482,), (1401483698,), (1401483699,), (1401483733,), (1401483735,), (1401483763,), (1401483772,), (1401483798,), (1401483800,), (1401483801,), (1401483802,), (1401483805,), (1401483806,), (1401483821,), (1401483822,), (1401483823,), (1401483860,), (1401483862,), (1401483864,), (1401483867,), (1401483888,), (1401483890,), (1401483927,), (1401483928,), (1401483929,), (1401483931,), (1401483934,), (1401483955,), (1401483958,), (1401483960,), (1401483962,), (1401483965,), (1401484004,), (1401484008,), (1401484010,), (1401484034,), (1401484035,), (1401484037,), (1401484039,), (1401484075,), (1401484066,), (1401484069,), (1401484072,), (1401484094,), (1401484097,), (1401484100,), (1401484103,), (1401484107,), (1401484122,), (1401484124,), (1401484126,), (1401484128,), (1401484155,), (1401484161,), (1401484162,), (1401484165,), (1401484168,), (1401484171,), (1401484188,), (1401484192,), (1401484195,), (1401484198,), (1401484201,), (1401484225,), (1401484228,), (1401484229,), (1401484230,), (1401484253,), (1401484259,), (1401484263,), (1401484291,), (1401484293,), (1401484296,), (1401484299,), (1401484303,), (1401484306,), (1401484326,), (1401484328,), (1401484330,), (1401484332,), (1401484349,), (1401484352,), (1401484355,), (1401484379,), (1401484383,), (1401484385,), (1401484387,), (1401484408,), (1401484410,), (1401484411,), (1401484413,), (1401484417,), (1401484445,), (1401484450,), (1401484452,), (1401484454,), (1401484458,), (1401484461,), (1401484486,), (1401484488,), (1401484489,), (1401484517,), (1401484524,), (1401484526,), (1401484528,), (1401484574,), (1401484557,), (1401484562,), (1401484564,), (1401484568,), (1401484571,), (1401484586,), (1401484588,), (1401484589,), (1401484590,), (1401484593,), (1401484612,), (1401484613,), (1401484615,), (1401484618,), (1401484621,), (1401484625,), (1401484637,), (1401484639,), (1401484641,), (1401484642,), (1401484643,), (1401484645,), (1401484648,), (1401484651,), (1401484655,), (1401484676,), (1401484682,), (1401484684,), (1401484688,), (1401484693,), (1401484696,), (1401484720,), (1401484721,), (1401484722,), (1401484725,), (1401484727,), (1401484730,), (1401484746,), (1401484749,), (1401484751,), (1401484756,), (1401484757,), (1401484759,), (1401484763,), (1401484767,), (1401484788,), (1401484790,), (1401484793,), (1401484795,), (1401484798,), (1401484802,), (1401484828,), (1401484831,), (1401484832,), (1401484834,), (1401484865,), (1401484868,), (1401484870,), (1401484873,), (1401484876,), (1401484879,), (1401484886,), (1401484888,), (1401484890,), (1401484942,), (1401484943,), (1401484944,), (1401484946,), (1401484968,), (1401484970,), (1401484974,), (1401484976,), (1401485012,), (1401485013,), (1401485014,), (1401485015,), (1401485018,), (1401485020,), (1401485035,), (1401485036,), (1401485037,), (1401485039,), (1401485043,), (1401485047,), (1401485075,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'29122025': {'nb_upload': 85, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29764069]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] map_info['map_portfolio_photo'] : {29764069: [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012, 1401484976, 1401484974, 1401484970, 1401484968, 1401484946, 1401484944, 1401484943, 1401484942, 1401484890, 1401484888, 1401484886, 1401484879, 1401484876, 1401484873, 1401484870, 1401484868, 1401484865, 1401484834, 1401484832, 1401484831, 1401484828, 1401484802, 1401484798, 1401484795, 1401484793, 1401484790, 1401484788, 1401484767, 1401484763, 1401484759, 1401484757, 1401484756, 1401484751, 1401484749, 1401484746, 1401484730, 1401484727, 1401484725, 1401484722, 1401484721, 1401484720, 1401484696, 1401484693, 1401484688, 1401484684, 1401484682, 1401484676, 1401484655, 1401484651, 1401484648, 1401484645, 1401484643, 1401484642, 1401484641, 1401484639, 1401484637, 1401484625, 1401484621, 1401484618, 1401484615, 1401484613, 1401484612, 1401484593, 1401484590, 1401484589, 1401484588, 1401484586, 1401484571, 1401484568, 1401484564, 1401484562, 1401484557]} final : True mtd_id 4302 list_pids : [1401485075, 1401485047, 1401485043, 1401485039, 1401485037, 1401485036, 1401485035, 1401485020, 1401485018, 1401485015, 1401485014, 1401485013, 1401485012] Looping around the photos to save general results len do output : 1 /29764069Didn'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, '4282358') ('4302', '29764069', '1401485075', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485047', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485043', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485039', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485037', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485036', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485035', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485020', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485018', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485015', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485014', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485013', None, None, None, None, None, '4282358') ('4302', None, None, None, None, None, None, None, '4282358') ('4302', '29764069', '1401485012', None, None, None, None, None, '4282358') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29764069', 'None', None, None, None, None, '4282358'), ('4302', '29764069', '1401485075', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485047', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485043', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485039', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485037', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485036', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485035', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485020', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485018', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485015', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485014', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485013', None, None, None, None, None, '4282358'), ('4302', '29764069', '1401485012', None, None, None, None, None, '4282358')] time used for this insertion : 0.01592540740966797 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1295428276062012 time spend to save output : 0.016157865524291992 total time spend for step 5 : 1.1457006931304932 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 (4282358) 2.36user 2.38system 0:14.49elapsed 32%CPU (0avgtext+0avgdata 167876maxresident)k 8inputs+16480outputs (2major+79807minor)pagefaults 0swaps