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 : 409002 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 (3964400) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3964400) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939778 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3964400'] with mtr_portfolio_ids : ['27939778'] and first list_photo_ids : [] new path : /proc/409002/ Name: python3 Umask: 0002 State: R (running) Tgid: 409002 Ngid: 0 Pid: 409002 PPid: 409001 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 409002 NSpid: 409002 NSpgid: 407365 NSsid: 407365 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98728 kB VmRSS: 98728 kB RssAnon: 59908 kB RssFile: 38820 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 75 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '409002', 'Ngid': '0', 'Pid': '409002', 'PPid': '409001', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '409002', 'NSpid': '409002', 'NSpgid': '407365', 'NSsid': '407365', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98728 kB', 'VmRSS': '98728 kB', 'RssAnon': '59908 kB', 'RssFile': '38820 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '75'} ('datou_batch_current', '409002', '1106908', '0', '1106884', '865636', '98728', b'', 'marlene', '3964400') 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 (27939778) 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 (3964400 ) ) 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 (27939778) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1390246930, 'portfolio_id': 27939778}, {'photo_id': 1390246900, 'portfolio_id': 27939778}, {'photo_id': 1390246896, 'portfolio_id': 27939778}, {'photo_id': 1390246893, 'portfolio_id': 27939778}, {'photo_id': 1390246891, 'portfolio_id': 27939778}, {'photo_id': 1390246857, 'portfolio_id': 27939778}, {'photo_id': 1390246821, 'portfolio_id': 27939778}, {'photo_id': 1390246802, 'portfolio_id': 27939778}, {'photo_id': 1390246788, 'portfolio_id': 27939778}, {'photo_id': 1390246786, 'portfolio_id': 27939778}, {'photo_id': 1390246783, 'portfolio_id': 27939778}, {'photo_id': 1390246779, 'portfolio_id': 27939778}, {'photo_id': 1390246763, 'portfolio_id': 27939778}, {'photo_id': 1390246688, 'portfolio_id': 27939778}, {'photo_id': 1390246682, 'portfolio_id': 27939778}, {'photo_id': 1390246677, 'portfolio_id': 27939778}, {'photo_id': 1390246674, 'portfolio_id': 27939778}, {'photo_id': 1390246606, 'portfolio_id': 27939778}, {'photo_id': 1390246603, 'portfolio_id': 27939778}, {'photo_id': 1390246427, 'portfolio_id': 27939778}, {'photo_id': 1390246404, 'portfolio_id': 27939778}, {'photo_id': 1390246386, 'portfolio_id': 27939778}, {'photo_id': 1390246297, 'portfolio_id': 27939778}, {'photo_id': 1390246294, 'portfolio_id': 27939778}, {'photo_id': 1390246291, 'portfolio_id': 27939778}, {'photo_id': 1390246221, 'portfolio_id': 27939778}, {'photo_id': 1390246211, 'portfolio_id': 27939778}, {'photo_id': 1390246196, 'portfolio_id': 27939778}, {'photo_id': 1390246186, 'portfolio_id': 27939778}, {'photo_id': 1390246182, 'portfolio_id': 27939778}, {'photo_id': 1390246181, 'portfolio_id': 27939778}, {'photo_id': 1390246179, 'portfolio_id': 27939778}, {'photo_id': 1390246178, 'portfolio_id': 27939778}, {'photo_id': 1390246175, 'portfolio_id': 27939778}, {'photo_id': 1390246174, 'portfolio_id': 27939778}, {'photo_id': 1390246056, 'portfolio_id': 27939778}, {'photo_id': 1390246053, 'portfolio_id': 27939778}, {'photo_id': 1390246036, 'portfolio_id': 27939778}, {'photo_id': 1390246033, 'portfolio_id': 27939778}, {'photo_id': 1390246031, 'portfolio_id': 27939778}, {'photo_id': 1390245971, 'portfolio_id': 27939778}, {'photo_id': 1390245968, 'portfolio_id': 27939778}, {'photo_id': 1390245966, 'portfolio_id': 27939778}, {'photo_id': 1390245963, 'portfolio_id': 27939778}, {'photo_id': 1390245960, 'portfolio_id': 27939778}, {'photo_id': 1390245958, 'portfolio_id': 27939778}, {'photo_id': 1390245944, 'portfolio_id': 27939778}, {'photo_id': 1390245939, 'portfolio_id': 27939778}, {'photo_id': 1390245937, 'portfolio_id': 27939778}, {'photo_id': 1390245926, 'portfolio_id': 27939778}, {'photo_id': 1390245922, 'portfolio_id': 27939778}, {'photo_id': 1390245875, 'portfolio_id': 27939778}, {'photo_id': 1390245874, 'portfolio_id': 27939778}, {'photo_id': 1390245870, 'portfolio_id': 27939778}, {'photo_id': 1390245869, 'portfolio_id': 27939778}, {'photo_id': 1390245865, 'portfolio_id': 27939778}, {'photo_id': 1390245863, 'portfolio_id': 27939778}, {'photo_id': 1390245859, 'portfolio_id': 27939778}, {'photo_id': 1390245857, 'portfolio_id': 27939778}, {'photo_id': 1390245819, 'portfolio_id': 27939778}, {'photo_id': 1390245815, 'portfolio_id': 27939778}, {'photo_id': 1390245812, 'portfolio_id': 27939778}, {'photo_id': 1390245806, 'portfolio_id': 27939778}, {'photo_id': 1390245804, 'portfolio_id': 27939778}, {'photo_id': 1390245802, 'portfolio_id': 27939778}, {'photo_id': 1390245790, 'portfolio_id': 27939778}, {'photo_id': 1390245786, 'portfolio_id': 27939778}, {'photo_id': 1390245779, 'portfolio_id': 27939778}, {'photo_id': 1390245772, 'portfolio_id': 27939778}, {'photo_id': 1390245758, 'portfolio_id': 27939778}, {'photo_id': 1390245717, 'portfolio_id': 27939778}, {'photo_id': 1390245715, 'portfolio_id': 27939778}, {'photo_id': 1390245713, 'portfolio_id': 27939778}, {'photo_id': 1390245650, 'portfolio_id': 27939778}, {'photo_id': 1390245646, 'portfolio_id': 27939778}] map_portfolio_id_photo_id: {27939778: [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763, 1390246688, 1390246682, 1390246677, 1390246674, 1390246606, 1390246603, 1390246427, 1390246404, 1390246386, 1390246297, 1390246294, 1390246291, 1390246221, 1390246211, 1390246196, 1390246186, 1390246182, 1390246181, 1390246179, 1390246178, 1390246175, 1390246174, 1390246056, 1390246053, 1390246036, 1390246033, 1390246031, 1390245971, 1390245968, 1390245966, 1390245963, 1390245960, 1390245958, 1390245944, 1390245939, 1390245937, 1390245926, 1390245922, 1390245875, 1390245874, 1390245870, 1390245869, 1390245865, 1390245863, 1390245859, 1390245857, 1390245819, 1390245815, 1390245812, 1390245806, 1390245804, 1390245802, 1390245790, 1390245786, 1390245779, 1390245772, 1390245758, 1390245717, 1390245715, 1390245713, 1390245650, 1390245646]} ##### 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.017102718353271484 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Oct 30 07:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27939778) 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 : 27939778 get user id for portfolio 27939778 get sub ptf for main ptf 27939778, type 3726 and hashtags ['metal', 'plastique', 'environnement', 'Carton_gris', 'Carton_brun', 'Teint_Dans_La_Masse', 'autre_refus', 'papier', 'mal_croppe', 'flou', 'kraft', 'cartonnette'] 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`=27939778 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','environnement','Carton_gris','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','flou','kraft','cartonnette')) 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`=27939778 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','environnement','Carton_gris','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27939778, 'sub_port_id': 27939805, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868484, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'plastique': {'main_port_id': 27939778, 'sub_port_id': 27939807, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868485, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'environnement': {'main_port_id': 27939778, 'sub_port_id': 27939808, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868486, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'papier': {'main_port_id': 27939778, 'sub_port_id': 27939809, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868487, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'mal_croppe': {'main_port_id': 27939778, 'sub_port_id': 27939810, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868488, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'Carton_brun': {'main_port_id': 27939778, 'sub_port_id': 27939811, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868489, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'kraft': {'main_port_id': 27939778, 'sub_port_id': 27939812, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868490, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'flou': {'main_port_id': 27939778, 'sub_port_id': 27939813, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868491, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 27939778, 'sub_port_id': 27939814, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868492, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'metal': {'main_port_id': 27939778, 'sub_port_id': 27939815, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868493, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'autre_refus': {'main_port_id': 27939778, 'sub_port_id': 27939816, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868494, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}, 'cartonnette': {'main_port_id': 27939778, 'sub_port_id': 27939817, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868495, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939805 , 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=27939778 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 (27939805) result : ((1390246225,), (1390246227,), (1390246229,), (1390246231,), (1390246233,), (1390246707,), (1390246708,), (1390246709,), (1390247046,), (1390247047,), (1390247048,), (1390247052,), (1390247053,), (1390247143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939807 , 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=27939778 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 (27939807) result : ((1390246121,), (1390246122,), (1390246123,), (1390246124,), (1390246125,), (1390246126,), (1390246128,), (1390246129,), (1390246130,), (1390246131,), (1390246260,), (1390246262,), (1390246264,), (1390246307,), (1390246663,), (1390246721,), (1390246755,), (1390246756,), (1390246757,), (1390246758,), (1390247069,), (1390247071,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939808 , 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=27939778 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 (27939808) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939809 , 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=27939778 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 (27939809) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939810 , 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=27939778 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 (27939810) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939811 , 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=27939778 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 (27939811) result : ((1390246108,), (1390246109,), (1390246110,), (1390246111,), (1390246112,), (1390246113,), (1390246114,), (1390246116,), (1390246117,), (1390246118,), (1390246245,), (1390246247,), (1390246304,), (1390246656,), (1390246657,), (1390246659,), (1390246660,), (1390246661,), (1390246662,), (1390246714,), (1390246715,), (1390246716,), (1390246717,), (1390246718,), (1390246719,), (1390246720,), (1390246745,), (1390246746,), (1390246747,), (1390246748,), (1390246749,), (1390246751,), (1390246752,), (1390246753,), (1390247058,), (1390247060,), (1390247062,), (1390247063,), (1390247064,), (1390247065,), (1390247066,), (1390247067,), (1390247068,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939812 , 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=27939778 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 (27939812) result : ((1390246275,), (1390246665,), (1390246666,), (1390246723,), (1390246724,), (1390246759,), (1390246760,), (1390246761,), (1390246762,), (1390247070,), (1390247077,), (1390247078,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939813 , 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=27939778 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 (27939813) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939814 , 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=27939778 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 (27939814) result : ((1390246184,), (1390246185,), (1390246301,), (1390246520,), (1390246521,), (1390246522,), (1390246523,), (1390246650,), (1390246651,), (1390246696,), (1390246697,), (1390246698,), (1390246699,), (1390246700,), (1390246701,), (1390246735,), (1390246736,), (1390247032,), (1390247033,), (1390247049,), (1390247142,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939815 , 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=27939778 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 (27939815) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939816 , 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=27939778 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 (27939816) result : ((1390246089,), (1390246090,), (1390246205,), (1390246207,), (1390246526,), (1390246653,), (1390246702,), (1390246703,), (1390246704,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27939817 , 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=27939778 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 (27939817) result : ((1390246093,), (1390246094,), (1390246303,), (1390246655,), (1390246710,), (1390246711,), (1390246739,), (1390246740,), (1390246741,), (1390246742,), (1390246743,), (1390246744,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27939778) result : ((1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) 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 (1390246900) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27939778 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','environnement','Carton_gris','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','flou','kraft','cartonnette')) 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`=27939778 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','environnement','Carton_gris','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27939778, 'sub_port_id': 27939818, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868496, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'plastique': {'main_port_id': 27939778, 'sub_port_id': 27939819, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868497, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'environnement': {'main_port_id': 27939778, 'sub_port_id': 27939820, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868498, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'papier': {'main_port_id': 27939778, 'sub_port_id': 27939821, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868499, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'mal_croppe': {'main_port_id': 27939778, 'sub_port_id': 27939822, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868500, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'Carton_brun': {'main_port_id': 27939778, 'sub_port_id': 27939823, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868501, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'kraft': {'main_port_id': 27939778, 'sub_port_id': 27939824, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868502, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'flou': {'main_port_id': 27939778, 'sub_port_id': 27939825, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868503, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 27939778, 'sub_port_id': 27939826, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868504, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'metal': {'main_port_id': 27939778, 'sub_port_id': 27939827, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868505, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'autre_refus': {'main_port_id': 27939778, 'sub_port_id': 27939828, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868506, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}, 'cartonnette': {'main_port_id': 27939778, 'sub_port_id': 27939829, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18868507, 'last_updated_at': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 7, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939818,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939813 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939826,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939814 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939827,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939815 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939828,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939816 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27939829,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27939817 lien utilise dans velours : https://marlene.fotonower.com/velours/27939818,27939819,27939820,27939821,27939822,27939823,27939824,27939825,27939826,27939827,27939828,27939829?tags=Carton_gris,plastique,environnement,papier,mal_croppe,Carton_brun,kraft,flou,Teint_Dans_La_Masse,metal,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27939778]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] map_info['map_portfolio_photo'] : {27939778: [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763, 1390246688, 1390246682, 1390246677, 1390246674, 1390246606, 1390246603, 1390246427, 1390246404, 1390246386, 1390246297, 1390246294, 1390246291, 1390246221, 1390246211, 1390246196, 1390246186, 1390246182, 1390246181, 1390246179, 1390246178, 1390246175, 1390246174, 1390246056, 1390246053, 1390246036, 1390246033, 1390246031, 1390245971, 1390245968, 1390245966, 1390245963, 1390245960, 1390245958, 1390245944, 1390245939, 1390245937, 1390245926, 1390245922, 1390245875, 1390245874, 1390245870, 1390245869, 1390245865, 1390245863, 1390245859, 1390245857, 1390245819, 1390245815, 1390245812, 1390245806, 1390245804, 1390245802, 1390245790, 1390245786, 1390245779, 1390245772, 1390245758, 1390245717, 1390245715, 1390245713, 1390245650, 1390245646]} final : False mtd_id 4302 list_pids : [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] Looping around the photos to save general results len do output : 1 /27939778. 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, '3964400') ('4302', '27939778', '1390246930', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246900', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246896', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246893', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246891', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246857', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246821', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246802', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246788', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246786', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246783', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246779', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246763', None, None, None, None, None, '3964400') 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, '27939778', "{'Carton_gris': 27939805, 'plastique': 27939807, 'environnement': 27939808, 'papier': 27939809, 'mal_croppe': 27939810, 'Carton_brun': 27939811, 'kraft': 27939812, 'flou': 27939813, 'Teint_Dans_La_Masse': 27939814, 'metal': 27939815, 'autre_refus': 27939816, 'cartonnette': 27939817}", None, None, None, None, '3964400'), ('4302', '27939778', '1390246930', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246900', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246896', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246893', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246891', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246857', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246821', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246802', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246788', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246786', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246783', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246779', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246763', None, None, None, None, None, '3964400')] time used for this insertion : 0.011782407760620117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.448375940322876 time spend to save output : 0.012102127075195312 total time spend for step 1 : 0.4604780673980713 step2:final Thu Oct 30 07:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27939778) 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 27939778 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1390245650,1390245646,1390245717,1390245715,1390245713,1390245790,1390245786,1390245779,1390245772,1390245758,1390245819,1390245815,1390245812,1390245806,1390245804,1390245802,1390245875,1390245874,1390245870,1390245869,1390245863,1390245865,1390245859,1390245857,1390245944,1390245939,1390245937,1390245926,1390245922,1390245971,1390245968,1390245966,1390245963,1390245960,1390245958,1390246056,1390246053,1390246036,1390246033,1390246031,1390246211,1390246221,1390246186,1390246196,1390246181,1390246182,1390246178,1390246179,1390246175,1390246174,1390246297,1390246294,1390246291,1390246427,1390246404,1390246386,1390246606,1390246603,1390246688,1390246857,1390246682,1390246821,1390246677,1390246802,1390246788,1390246674,1390246786,1390246783,1390246779,1390246763,1390246930,1390246900,1390246896,1390246893,1390246891); 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([27939778]) Inside saveOutput : final : False verbose : True original output for save of step final : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} new output for save of step final : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] map_info['map_portfolio_photo'] : {27939778: [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763, 1390246688, 1390246682, 1390246677, 1390246674, 1390246606, 1390246603, 1390246427, 1390246404, 1390246386, 1390246297, 1390246294, 1390246291, 1390246221, 1390246211, 1390246196, 1390246186, 1390246182, 1390246181, 1390246179, 1390246178, 1390246175, 1390246174, 1390246056, 1390246053, 1390246036, 1390246033, 1390246031, 1390245971, 1390245968, 1390245966, 1390245963, 1390245960, 1390245958, 1390245944, 1390245939, 1390245937, 1390245926, 1390245922, 1390245875, 1390245874, 1390245870, 1390245869, 1390245865, 1390245863, 1390245859, 1390245857, 1390245819, 1390245815, 1390245812, 1390245806, 1390245804, 1390245802, 1390245790, 1390245786, 1390245779, 1390245772, 1390245758, 1390245717, 1390245715, 1390245713, 1390245650, 1390245646]} final : False mtd_id 4302 list_pids : [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] Looping around the photos to save general results len do output : 13 /1390246930.Didn't retrieve data . /1390246900.Didn't retrieve data . /1390246896.Didn't retrieve data . /1390246893.Didn't retrieve data . /1390246891.Didn't retrieve data . /1390246857.Didn't retrieve data . /1390246821.Didn't retrieve data . /1390246802.Didn't retrieve data . /1390246788.Didn't retrieve data . /1390246786.Didn't retrieve data . /1390246783.Didn't retrieve data . /1390246779.Didn't retrieve data . /1390246763.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, '3964400') ('4302', '27939778', '1390246930', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246900', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246896', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246893', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246891', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246857', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246821', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246802', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246788', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246786', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246783', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246779', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246763', None, None, None, None, None, '3964400') 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', '27939778', '1390246930', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246900', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246896', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246893', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246891', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246857', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246821', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246802', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246788', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246786', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246783', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246779', '0.08642399062180188', None, None, None, None, '3964400'), ('4302', '27939778', '1390246763', '0.08642399062180188', None, None, None, None, '3964400')] time used for this insertion : 0.011242389678955078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07077598571777344 time spend to save output : 0.011838674545288086 total time spend for step 2 : 0.08261466026306152 step3:velours_tree Thu Oct 30 07:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27939778: [{'Carton_gris': 27939805, 'plastique': 27939807, 'environnement': 27939808, 'papier': 27939809, 'mal_croppe': 27939810, 'Carton_brun': 27939811, 'kraft': 27939812, 'flou': 27939813, 'Teint_Dans_La_Masse': 27939814, 'metal': 27939815, 'autre_refus': 27939816, 'cartonnette': 27939817}]} input_args_next_step : {27939778: ()} output_args : {27939778: [{'Carton_gris': 27939805, 'plastique': 27939807, 'environnement': 27939808, 'papier': 27939809, 'mal_croppe': 27939810, 'Carton_brun': 27939811, 'kraft': 27939812, 'flou': 27939813, 'Teint_Dans_La_Masse': 27939814, 'metal': 27939815, 'autre_refus': 27939816, 'cartonnette': 27939817}]} args : 27939778 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 27939805, 'plastique': 27939807, 'environnement': 27939808, 'papier': 27939809, 'mal_croppe': 27939810, 'Carton_brun': 27939811, 'kraft': 27939812, 'flou': 27939813, 'Teint_Dans_La_Masse': 27939814, 'metal': 27939815, 'autre_refus': 27939816, 'cartonnette': 27939817},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27939778) 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([27939778]) 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.27369093894958496 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.2737412452697754 step4:send_mail_cod Thu Oct 30 07:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} input_args_next_step : {1390246930: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246930 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246900 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246896 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246893 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246891 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246857 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246821 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246802 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246788 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246786 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246783 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246779 depend.output_id : 0 input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ()} output_args : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',)} args : 1390246763 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 : {27939778: [{'Carton_gris': 27939805, 'plastique': 27939807, 'environnement': 27939808, 'papier': 27939809, 'mal_croppe': 27939810, 'Carton_brun': 27939811, 'kraft': 27939812, 'flou': 27939813, 'Teint_Dans_La_Masse': 27939814, 'metal': 27939815, 'autre_refus': 27939816, 'cartonnette': 27939817}]} input_args_next_step : {1390246930: ('0.08642399062180188',), 1390246900: ('0.08642399062180188',), 1390246896: ('0.08642399062180188',), 1390246893: ('0.08642399062180188',), 1390246891: ('0.08642399062180188',), 1390246857: ('0.08642399062180188',), 1390246821: ('0.08642399062180188',), 1390246802: ('0.08642399062180188',), 1390246788: ('0.08642399062180188',), 1390246786: ('0.08642399062180188',), 1390246783: ('0.08642399062180188',), 1390246779: ('0.08642399062180188',), 1390246763: ('0.08642399062180188',), 27939778: ()} output_args : {27939778: [{'Carton_gris': 27939805, 'plastique': 27939807, 'environnement': 27939808, 'papier': 27939809, 'mal_croppe': 27939810, 'Carton_brun': 27939811, 'kraft': 27939812, 'flou': 27939813, 'Teint_Dans_La_Masse': 27939814, 'metal': 27939815, 'autre_refus': 27939816, 'cartonnette': 27939817}]} args : 27939778 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.08642399062180188',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27939778) 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 (1390246930,1390246900,1390246896,1390246893,1390246891,1390246857,1390246821,1390246802,1390246788,1390246786,1390246783,1390246779,1390246763) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1390246763 begin to download photo : 1390246786 begin to download photo : 1390246821 begin to download photo : 1390246893 begin to download photo : 1390246930 download finish for photo 1390246786 begin to download photo : 1390246788 download finish for photo 1390246930 download finish for photo 1390246821 begin to download photo : 1390246857 download finish for photo 1390246893 begin to download photo : 1390246896 download finish for photo 1390246763 begin to download photo : 1390246779 download finish for photo 1390246788 begin to download photo : 1390246802 download finish for photo 1390246857 begin to download photo : 1390246891 download finish for photo 1390246779 begin to download photo : 1390246783 download finish for photo 1390246896 begin to download photo : 1390246900 download finish for photo 1390246891 download finish for photo 1390246802 download finish for photo 1390246783 download finish for photo 1390246900 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_P27939778_30-10-2025_07_16_59.pdf 27939807 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=27939807 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390246262: '1761804546_891971_1390245804_736b9515802705818248441b36bacdb1_rle_crop_4003738312_0.png', 1390247071: '1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743355_0.png', 1390247069: '1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743399_0.png', 1390246758: '1761804806_910034_1390246181_7e9bbaf58f1b40ebfc47b9533e365d62_rle_crop_4003741895_0.png', 1390246757: '1761804806_910034_1390246182_43c5a91876454dc81d64165060e0e6a0_rle_crop_4003741883_0.png', 1390246756: '1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741869_0.png', 1390246755: '1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741855_0.png', 1390246721: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741580_0.png', 1390246663: '1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740899_0.png', 1390246307: '1761804566_892319_1390245819_599fda96e018480de8337b46e3bdfcbb_rle_crop_4003738981_0.png', 1390246264: '1761804546_891971_1390245802_b55cfb9e9b3f1358b98d8c1bb7c4f82a_rle_crop_4003738460_0.png', 1390246121: '1761804507_891300_1390245865_626ec50b22048c97dfe91ff05ee04079_rle_crop_4003737862_0.png', 1390246260: '1761804546_891971_1390245804_736b9515802705818248441b36bacdb1_rle_crop_4003738317_0.png', 1390246131: '1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737919_0.png', 1390246130: '1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737920_0.png', 1390246129: '1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737921_0.png', 1390246128: '1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737895_0.png', 1390246126: '1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737896_0.png', 1390246125: '1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737897_0.png', 1390246124: '1761804507_891300_1390245863_562aa4683d6b4e8edf9d72c288671e0c_rle_crop_4003737872_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/3964165c6c82beb7b30712667137d0c3_86260095.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b07bc19652211be39e753b91adad2627_5702413.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/14f3ff6a8341dcae52152a671b3a8414_58151206.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/934ded115e9ecf12ec9eb4e9b25c5108_84152480.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/934ded115e9ecf12ec9eb4e9b25c5108_99179487.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a592dad66ada7a378e1ff114f2097689_237112.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a592dad66ada7a378e1ff114f2097689_6078547.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f99c5e9340a7bbfd4d6d186438024f75_85984331.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/e6df89d7f144a2f018df0fb0646dbee3_88761531.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/d7862be7e956c72a210143f934150a23_93076202.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/c9dc53ccfcd4e862ac9a6bb9fa077043_55804787.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/39c60b17c7b2160cb688256490cca1df_50553725.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/6b057c1cb018b897ba6845d18b0e6299_78670153.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/9fbc0b10942acf9235910933f8488b4d_59134829.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f00ff24b743d9109efc2740d7fdd4c05_42668113.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/249477f33cd5f4d4e173672d35e0fa89_85107025.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/9fbc0b10942acf9235910933f8488b4d_88011705.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f00ff24b743d9109efc2740d7fdd4c05_60384776.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/249477f33cd5f4d4e173672d35e0fa89_62921279.png change filename to text .imagette279398071761805019/ imagette279398071761805019/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741580_0.png.png imagette279398071761805019/1761804507_891300_1390245865_626ec50b22048c97dfe91ff05ee04079_rle_crop_4003737862_0.png.png imagette279398071761805019/1761804566_892319_1390245819_599fda96e018480de8337b46e3bdfcbb_rle_crop_4003738981_0.png.png imagette279398071761805019/1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743355_0.png.png imagette279398071761805019/1761804546_891971_1390245804_736b9515802705818248441b36bacdb1_rle_crop_4003738312_0.png.png imagette279398071761805019/1761804507_891300_1390245863_562aa4683d6b4e8edf9d72c288671e0c_rle_crop_4003737872_0.png.png imagette279398071761805019/1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737919_0.png.png imagette279398071761805019/1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737920_0.png.png imagette279398071761805019/1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737895_0.png.png imagette279398071761805019/1761804806_910034_1390246182_43c5a91876454dc81d64165060e0e6a0_rle_crop_4003741883_0.png.png imagette279398071761805019/1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737897_0.png.png imagette279398071761805019/1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740899_0.png.png imagette279398071761805019/1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737896_0.png.png imagette279398071761805019/1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743399_0.png.png imagette279398071761805019/1761804546_891971_1390245804_736b9515802705818248441b36bacdb1_rle_crop_4003738317_0.png.png imagette279398071761805019/1761804546_891971_1390245802_b55cfb9e9b3f1358b98d8c1bb7c4f82a_rle_crop_4003738460_0.png.png imagette279398071761805019/1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741855_0.png.png imagette279398071761805019/1761804806_910034_1390246181_7e9bbaf58f1b40ebfc47b9533e365d62_rle_crop_4003741895_0.png.png imagette279398071761805019/1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737921_0.png.png imagette279398071761805019/1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741869_0.png.png imagette279398101761805021/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/d76c9c7a965855625587bab50e17043d_95446289.png imagette279398071761805019 27939810 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=27939810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279398101761805021 27939812 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=27939812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390246275: '1761804546_891971_1390245815_523d8dad2c4cf5f3f7a4b47c52ea65b2_rle_crop_4003738274_0.png', 1390246665: '1761804745_907195_1390246294_fda195ed2ceab7ae3e3724cdb247371c_rle_crop_4003740886_0.png', 1390246666: '1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740912_0.png', 1390246723: '1761804787_908268_1390246053_4df3227b5ff2d04d6646b8cb24a6a788_rle_crop_4003741501_0.png', 1390246724: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741574_0.png', 1390246759: '1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741850_0.png', 1390246760: '1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741854_0.png', 1390246761: '1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741864_0.png', 1390246762: '1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741868_0.png', 1390247070: '1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743401_0.png', 1390247077: '1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743323_0.png', 1390247078: '1761804906_916202_1390245958_06ed8e426cffa228199a3ff79b0b0686_rle_crop_4003743383_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8547caad7ba438186842a5b72dab1a5b_30515182.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/dd601f9e232b10ad7ac301ead8238fe9_59614046.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/654f4e77bb71d96f7bea3711568f2679_27125132.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/c8039369eec66f7eb9d4708601db6682_10084411.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/24078b6f6bb22a160a459b55888a9ee8_99501293.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/cbc8902102c3ffeee38d0d8bdca0ff3e_73448304.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a3261576606d4c638ab3070e1112acb5_46867980.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/cbc8902102c3ffeee38d0d8bdca0ff3e_32509584.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a3261576606d4c638ab3070e1112acb5_42872322.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/58c8f35d982e4720eb90659526531188_34210999.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/c1b711f64e045b6aa9cb2a7cda8dc462_2711849.png change filename to text .imagette279398121761805021/ imagette279398121761805021/1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741850_0.png.png imagette279398121761805021/1761804745_907195_1390246294_fda195ed2ceab7ae3e3724cdb247371c_rle_crop_4003740886_0.png.png imagette279398121761805021/1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743401_0.png.png imagette279398121761805021/1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743323_0.png.png imagette279398121761805021/1761804906_916202_1390245958_06ed8e426cffa228199a3ff79b0b0686_rle_crop_4003743383_0.png.png imagette279398121761805021/1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741854_0.png.png imagette279398121761805021/1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741864_0.png.png imagette279398121761805021/1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741868_0.png.png imagette279398121761805021/1761804787_908268_1390246053_4df3227b5ff2d04d6646b8cb24a6a788_rle_crop_4003741501_0.png.png imagette279398121761805021/1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740912_0.png.png imagette279398121761805021/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741574_0.png.png imagette279398121761805021/1761804546_891971_1390245815_523d8dad2c4cf5f3f7a4b47c52ea65b2_rle_crop_4003738274_0.png.png imagette279398131761805022/ imagette279398151761805022/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/ce4b2f2d4eaeb7319ee14e4ca8a1718d_25954637.png imagette279398121761805021 27939813 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=27939813 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279398131761805022 27939815 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=27939815 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279398151761805022 27939816 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=27939816 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390246089: '1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737884_0.png', 1390246090: '1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737908_0.png', 1390246205: '1761804546_891971_1390245806_954f67980596d1cf4245b6432859eeaf_rle_crop_4003738296_0.png', 1390246207: '1761804546_891971_1390245802_b55cfb9e9b3f1358b98d8c1bb7c4f82a_rle_crop_4003738456_0.png', 1390246526: '1761804665_901046_1390245715_9a8b40105b7c2aa641baf58ccf37dabc_rle_crop_4003740437_0.png', 1390246653: '1761804745_907195_1390246294_fda195ed2ceab7ae3e3724cdb247371c_rle_crop_4003740879_0.png', 1390246702: '1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741471_0.png', 1390246703: '1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741489_0.png', 1390246704: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741579_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/7f0bda69f59ed4a54a7dd39c167638bd_20642977.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/7f0bda69f59ed4a54a7dd39c167638bd_6193684.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/fbd3281e33aebdde2a659822e5141c82_6015216.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/4ed3ef0e42b2453fd32bf970611c6bda_29379402.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2ecaeef1953eeb5366f06be2b0226ba3_35781209.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/9ebd70a81fe28e9f379f86f796dd4441_11781415.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2207c4fda112494c19e847215125134d_74279374.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2207c4fda112494c19e847215125134d_99110275.png change filename to text .imagette279398161761805022/ imagette279398161761805022/1761804745_907195_1390246294_fda195ed2ceab7ae3e3724cdb247371c_rle_crop_4003740879_0.png.png imagette279398161761805022/1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741471_0.png.png imagette279398161761805022/1761804546_891971_1390245806_954f67980596d1cf4245b6432859eeaf_rle_crop_4003738296_0.png.png imagette279398161761805022/1761804507_891300_1390245859_ea362575ff6bc34931c6c8b0e9d0794c_rle_crop_4003737884_0.png.png imagette279398161761805022/1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741489_0.png.png imagette279398161761805022/1761804546_891971_1390245802_b55cfb9e9b3f1358b98d8c1bb7c4f82a_rle_crop_4003738456_0.png.png imagette279398161761805022/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741579_0.png.png imagette279398161761805022/1761804665_901046_1390245715_9a8b40105b7c2aa641baf58ccf37dabc_rle_crop_4003740437_0.png.png imagette279398161761805022/1761804507_891300_1390245857_ba8be0769e2c4861f063308d5d729ec4_rle_crop_4003737908_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/e60d44ae0cc58301a953524865b329a4_6568268.png imagette279398161761805022 27939817 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=27939817 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390246093: '1761804507_891300_1390245865_626ec50b22048c97dfe91ff05ee04079_rle_crop_4003737857_0.png', 1390246094: '1761804507_891300_1390245863_562aa4683d6b4e8edf9d72c288671e0c_rle_crop_4003737873_0.png', 1390246303: '1761804566_892319_1390245758_4542bf14a42ac583ccddb88b64810d1f_rle_crop_4003739019_0.png', 1390246655: '1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740902_0.png', 1390246710: '1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741467_0.png', 1390246711: '1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741485_0.png', 1390246739: '1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741847_0.png', 1390246740: '1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741861_0.png', 1390246741: '1761804806_910034_1390246182_43c5a91876454dc81d64165060e0e6a0_rle_crop_4003741880_0.png', 1390246742: '1761804806_910034_1390246181_7e9bbaf58f1b40ebfc47b9533e365d62_rle_crop_4003741892_0.png', 1390246743: '1761804806_910034_1390246179_9498e0e854682fabce3e7b570908b987_rle_crop_4003741907_0.png', 1390246744: '1761804806_910034_1390246178_0067283213dea53d0db7598ea98a41a1_rle_crop_4003741925_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8db11aed21462d895f31b044872d6684_3571128.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8db11aed21462d895f31b044872d6684_80067902.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/d8abb86284a4719d73876c31a11c4a7f_2484094.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/d5bbffd1eed1a5a8657002c770974d31_10376721.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b297e69a9da2c943f8e779b4ddfec5a3_96612674.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b297e69a9da2c943f8e779b4ddfec5a3_46353980.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/548c7e62f2bdbad4f83ea4b74606bea3_60423928.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/548c7e62f2bdbad4f83ea4b74606bea3_72769713.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/6a9c6307f2e8d18be24f66dbae7844e2_85544532.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/6a9c6307f2e8d18be24f66dbae7844e2_42697153.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/7f813c5cc079f28a2ae436f15662f9f2_35426534.png change filename to text .imagette279398171761805022/ imagette279398171761805022/1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741485_0.png.png imagette279398171761805022/1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741861_0.png.png imagette279398171761805022/1761804806_910034_1390246181_7e9bbaf58f1b40ebfc47b9533e365d62_rle_crop_4003741892_0.png.png imagette279398171761805022/1761804806_910034_1390246178_0067283213dea53d0db7598ea98a41a1_rle_crop_4003741925_0.png.png imagette279398171761805022/1761804806_910034_1390246179_9498e0e854682fabce3e7b570908b987_rle_crop_4003741907_0.png.png imagette279398171761805022/1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741467_0.png.png imagette279398171761805022/1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741847_0.png.png imagette279398171761805022/1761804507_891300_1390245863_562aa4683d6b4e8edf9d72c288671e0c_rle_crop_4003737873_0.png.png imagette279398171761805022/1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740902_0.png.png imagette279398171761805022/1761804566_892319_1390245758_4542bf14a42ac583ccddb88b64810d1f_rle_crop_4003739019_0.png.png imagette279398171761805022/1761804806_910034_1390246182_43c5a91876454dc81d64165060e0e6a0_rle_crop_4003741880_0.png.png imagette279398171761805022/1761804507_891300_1390245865_626ec50b22048c97dfe91ff05ee04079_rle_crop_4003737857_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/7f813c5cc079f28a2ae436f15662f9f2_4994417.png imagette279398171761805022 27939805 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=27939805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390246225: '1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738282_0.png', 1390246227: '1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738285_0.png', 1390246229: '1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738280_0.png', 1390246231: '1761804546_891971_1390245806_954f67980596d1cf4245b6432859eeaf_rle_crop_4003738297_0.png', 1390246233: '1761804546_891971_1390245802_b55cfb9e9b3f1358b98d8c1bb7c4f82a_rle_crop_4003738451_0.png', 1390246707: '1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741470_0.png', 1390246708: '1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741488_0.png', 1390246709: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741573_0.png', 1390247046: '1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743267_0.png', 1390247047: '1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743349_0.png', 1390247048: '1761804906_916202_1390245958_06ed8e426cffa228199a3ff79b0b0686_rle_crop_4003743384_0.png', 1390247052: '1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743403_0.png', 1390247053: '1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743406_0.png', 1390247143: '1761804987_920937_1390246674_1735d25c421474ce19fdf36982f5c523_rle_crop_4003743899_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/5a7f78e406dfd4c224a6bf769a032615_76529037.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/27959da366716609a0e4ca1e51dcb5a6_24132849.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/181cc67e3af6c63c8c0b132b46944db2_55562424.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/e1e8b60fb7166f659aaa65b5f694752b_72312010.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a9c38c219c38eb95e562502ebefc6e98_16678122.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8feb7f53e679a5d18abf18fa19b1087e_69507624.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8feb7f53e679a5d18abf18fa19b1087e_60862251.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/409f4352d7e25a47ec391459198ce888_51050769.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f49b9528fc2f9684eb9a957a7b04f2d1_24017706.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/dc218c451105b30ad43763249b7c7261_59144601.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2184073c2f83141137ba9af349de120f_86415767.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/bb322dd4bac6e217f6ff8eb6229b71ae_15804604.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0f78ef80d7dc8287ffdb205e2457afce_38677329.png change filename to text .imagette279398051761805023/ imagette279398051761805023/1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738282_0.png.png imagette279398051761805023/1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743267_0.png.png imagette279398051761805023/1761804987_920937_1390246674_1735d25c421474ce19fdf36982f5c523_rle_crop_4003743899_0.png.png imagette279398051761805023/1761804906_916202_1390245958_06ed8e426cffa228199a3ff79b0b0686_rle_crop_4003743384_0.png.png imagette279398051761805023/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741573_0.png.png imagette279398051761805023/1761804546_891971_1390245802_b55cfb9e9b3f1358b98d8c1bb7c4f82a_rle_crop_4003738451_0.png.png imagette279398051761805023/1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743403_0.png.png imagette279398051761805023/1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741470_0.png.png imagette279398051761805023/1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738285_0.png.png imagette279398051761805023/1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743406_0.png.png imagette279398051761805023/1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738280_0.png.png imagette279398051761805023/1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741488_0.png.png imagette279398051761805023/1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743349_0.png.png imagette279398051761805023/1761804546_891971_1390245806_954f67980596d1cf4245b6432859eeaf_rle_crop_4003738297_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/cde5bc38d3d319b97f577f34990429c6_45557436.png imagette279398051761805023 27939811 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=27939811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390246752: '1761804806_910034_1390246182_43c5a91876454dc81d64165060e0e6a0_rle_crop_4003741878_0.png', 1390246717: '1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741498_0.png', 1390246718: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741581_0.png', 1390246719: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741575_0.png', 1390246720: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741583_0.png', 1390246745: '1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741851_0.png', 1390246746: '1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741853_0.png', 1390246747: '1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741852_0.png', 1390246748: '1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741865_0.png', 1390246749: '1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741867_0.png', 1390246751: '1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741866_0.png', 1390246716: '1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741490_0.png', 1390246753: '1761804806_910034_1390246181_7e9bbaf58f1b40ebfc47b9533e365d62_rle_crop_4003741890_0.png', 1390247058: '1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743408_0.png', 1390247060: '1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743268_0.png', 1390247062: '1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743266_0.png', 1390247063: '1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743315_0.png', 1390247064: '1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743314_0.png', 1390247065: '1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743353_0.png', 1390247066: '1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743358_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a2293a40b46c39d82d809600dd5625d5_11769244.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0e41fc203a704331e259b9e7c609b36a_35287589.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/034d58808ad5ea8ca5c513c53358a8a8_93180247.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/7db547a802038350cc5ef4c9349300eb_54614133.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/1e19a4ef729c999964a893d3765e2ea4_39831480.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0b00482333b44ace47130dbb00c3715f_86502485.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/686443d5bf235f1bcd46387d7a70ac6f_83421148.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/dbf53ee7f91779ad6bdbdd48759d8de7_89043599.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0b00482333b44ace47130dbb00c3715f_30301999.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/686443d5bf235f1bcd46387d7a70ac6f_91841096.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/dbf53ee7f91779ad6bdbdd48759d8de7_78942307.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/9466ea9783a0849996668fda755fe383_39237618.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a2293a40b46c39d82d809600dd5625d5_35882987.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/5babfd5ee9272c258a4265ede0e76887_39525425.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b1372e87f1f5bb7a54d7d70699c2490c_42132254.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/4425005466d0c2384e437180669e8498_98110739.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f67b9eeb1ab037af7f9322e615596310_21151458.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/34f480fc123590ae7276a64f28d44395_11759366.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8f4b73e140f49d3794c1bd4c214722ba_44457869.png change filename to text .imagette279398111761805024/ imagette279398111761805024/1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743266_0.png.png imagette279398111761805024/1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741853_0.png.png imagette279398111761805024/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741583_0.png.png imagette279398111761805024/1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741851_0.png.png imagette279398111761805024/1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741866_0.png.png imagette279398111761805024/1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743353_0.png.png imagette279398111761805024/1761804806_910034_1390246196_5a1a470e8f2c1bd075981b1dac17bd28_rle_crop_4003741852_0.png.png imagette279398111761805024/1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743408_0.png.png imagette279398111761805024/1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741498_0.png.png imagette279398111761805024/1761804906_916202_1390245960_904e6794ed878e12e2ce9c5a382a568a_rle_crop_4003743358_0.png.png imagette279398111761805024/1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743268_0.png.png imagette279398111761805024/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741581_0.png.png imagette279398111761805024/1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741867_0.png.png imagette279398111761805024/1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741490_0.png.png imagette279398111761805024/1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743315_0.png.png imagette279398111761805024/1761804806_910034_1390246182_43c5a91876454dc81d64165060e0e6a0_rle_crop_4003741878_0.png.png imagette279398111761805024/1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743314_0.png.png imagette279398111761805024/1761804806_910034_1390246186_85d6313d59137cae14ad5398f64194c0_rle_crop_4003741865_0.png.png imagette279398111761805024/1761804806_910034_1390246181_7e9bbaf58f1b40ebfc47b9533e365d62_rle_crop_4003741890_0.png.png imagette279398111761805024/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741575_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/cdb53ce30776d0328d62dea0425a83b7_54326177.png imagette279398111761805024 27939814 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=27939814 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390246697: '1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741493_0.png', 1390247142: '1761804987_920937_1390246682_46fb08a9aa106b8611d3555ccb503d88_rle_crop_4003743872_0.png', 1390247049: '1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743404_0.png', 1390247033: '1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743316_0.png', 1390247032: '1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743265_0.png', 1390246736: '1761804806_910034_1390246178_0067283213dea53d0db7598ea98a41a1_rle_crop_4003741928_0.png', 1390246735: '1761804806_910034_1390246179_9498e0e854682fabce3e7b570908b987_rle_crop_4003741910_0.png', 1390246701: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741587_0.png', 1390246700: '1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741577_0.png', 1390246699: '1761804787_908268_1390246033_a36266cf79fc91bacfc7d5559c49e756_rle_crop_4003741515_0.png', 1390246698: '1761804787_908268_1390246033_a36266cf79fc91bacfc7d5559c49e756_rle_crop_4003741513_0.png', 1390246184: '1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738290_0.png', 1390246696: '1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741475_0.png', 1390246651: '1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740903_0.png', 1390246650: '1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740908_0.png', 1390246523: '1761804665_901046_1390245713_66bde75bfd84182c9bddffe126e8d93c_rle_crop_4003740468_0.png', 1390246522: '1761804665_901046_1390245715_9a8b40105b7c2aa641baf58ccf37dabc_rle_crop_4003740444_0.png', 1390246521: '1761804665_901046_1390245790_6d794efe8616fc4a78b842ceda30720f_rle_crop_4003740430_0.png', 1390246520: '1761804665_901046_1390245790_6d794efe8616fc4a78b842ceda30720f_rle_crop_4003740433_0.png', 1390246301: '1761804566_892319_1390245786_fc03ef98ab0138b823174264d54918ca_rle_crop_4003738986_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/dd1f578eab6927b12f1a4e4ced88186c_35822604.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/680c55837673e98acf8e1f38eb5dcd27_94801968.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/3ccb150dff96969cc3f447eec9a1f1b3_89587294.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/e63e24fcddb214eed2d185cf3bbe73ef_32639159.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b80e34ed629d5e5ef2d3cd72890147ce_6427402.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/61572ff18da3cb7bd5a23b6a8de9ffef_43652832.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/61572ff18da3cb7bd5a23b6a8de9ffef_63578409.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/aaff63f848e4fa05042be5b81ceffb33_72608665.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/822e81367877d907176775c609887c55_35976577.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/d4642424fcf731fd547c431ee313d6ea_33944191.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/39e6eb0425a90b3fc475d5ebfe2b37cb_37118199.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2a946bd9e74ac71ad9302dbc776dd893_25950777.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/dd1f578eab6927b12f1a4e4ced88186c_70411178.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/c19574adac7f7403a6de48a7306a1a0f_1047331.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8531a62c0ae0996ecf79b2c418b41e61_89464559.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/7a63ce16d963584a0a627bcd0b17ff25_63111889.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/41fb84ebc093152063a59c8bfbce4cd3_30020057.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/935de075295af9027219f4aae9f04658_23309524.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/9d250f5ce742de60bc4b2a0682c1723e_13817023.png change filename to text .imagette279398141761805026/ imagette279398141761805026/1761804787_908268_1390246033_a36266cf79fc91bacfc7d5559c49e756_rle_crop_4003741515_0.png.png imagette279398141761805026/1761804906_916202_1390246056_44c3faa6eae7b817491ece715443f5c9_rle_crop_4003743265_0.png.png imagette279398141761805026/1761804787_908268_1390246221_6221c6e4f325e09c519bba33ab3c1974_rle_crop_4003741475_0.png.png imagette279398141761805026/1761804787_908268_1390246211_cb08da0f7c29f1969be7d5df48bd0001_rle_crop_4003741493_0.png.png imagette279398141761805026/1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740908_0.png.png imagette279398141761805026/1761804806_910034_1390246179_9498e0e854682fabce3e7b570908b987_rle_crop_4003741910_0.png.png imagette279398141761805026/1761804787_908268_1390246033_a36266cf79fc91bacfc7d5559c49e756_rle_crop_4003741513_0.png.png imagette279398141761805026/1761804906_916202_1390245966_93161f05560a63c1320c41a7bef84be7_rle_crop_4003743316_0.png.png imagette279398141761805026/1761804987_920937_1390246682_46fb08a9aa106b8611d3555ccb503d88_rle_crop_4003743872_0.png.png imagette279398141761805026/1761804665_901046_1390245715_9a8b40105b7c2aa641baf58ccf37dabc_rle_crop_4003740444_0.png.png imagette279398141761805026/1761804926_916600_1390245944_2d9372fc8c06bf6678b9ac77707920ea_rle_crop_4003743404_0.png.png imagette279398141761805026/1761804546_891971_1390245812_b2aaf8cf83774137b46f1494592a90c3_rle_crop_4003738290_0.png.png imagette279398141761805026/1761804665_901046_1390245713_66bde75bfd84182c9bddffe126e8d93c_rle_crop_4003740468_0.png.png imagette279398141761805026/1761804806_910034_1390246178_0067283213dea53d0db7598ea98a41a1_rle_crop_4003741928_0.png.png imagette279398141761805026/1761804566_892319_1390245786_fc03ef98ab0138b823174264d54918ca_rle_crop_4003738986_0.png.png imagette279398141761805026/1761804665_901046_1390245790_6d794efe8616fc4a78b842ceda30720f_rle_crop_4003740430_0.png.png imagette279398141761805026/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741587_0.png.png imagette279398141761805026/1761804745_907195_1390246291_faad6664826584833733122ee296a10a_rle_crop_4003740903_0.png.png imagette279398141761805026/1761804787_908268_1390246031_2c7785089e70bc470c54971580f7c804_rle_crop_4003741577_0.png.png imagette279398141761805026/1761804665_901046_1390245790_6d794efe8616fc4a78b842ceda30720f_rle_crop_4003740433_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/76d112e06401ffcfe9f6b3813b62f809_17686328.png imagette279398141761805026 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27939778 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27939818,27939819,27939820,27939821,27939822,27939823,27939824,27939825,27939826,27939827,27939828,27939829?tags=Carton_gris,plastique,environnement,papier,mal_croppe,Carton_brun,kraft,flou,Teint_Dans_La_Masse,metal,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1390246930] : ('0.08642399062180188',) no score found for photo 1390246930 We are sending mail with results at report@fotonower.com args[1390246900] : ('0.08642399062180188',) no score found for photo 1390246900 We are sending mail with results at report@fotonower.com args[1390246896] : ('0.08642399062180188',) no score found for photo 1390246896 We are sending mail with results at report@fotonower.com args[1390246893] : ('0.08642399062180188',) no score found for photo 1390246893 We are sending mail with results at report@fotonower.com args[1390246891] : ('0.08642399062180188',) no score found for photo 1390246891 We are sending mail with results at report@fotonower.com args[1390246857] : ('0.08642399062180188',) no score found for photo 1390246857 We are sending mail with results at report@fotonower.com args[1390246821] : ('0.08642399062180188',) no score found for photo 1390246821 We are sending mail with results at report@fotonower.com args[1390246802] : ('0.08642399062180188',) no score found for photo 1390246802 We are sending mail with results at report@fotonower.com args[1390246788] : ('0.08642399062180188',) no score found for photo 1390246788 We are sending mail with results at report@fotonower.com args[1390246786] : ('0.08642399062180188',) no score found for photo 1390246786 We are sending mail with results at report@fotonower.com args[1390246783] : ('0.08642399062180188',) no score found for photo 1390246783 We are sending mail with results at report@fotonower.com args[1390246779] : ('0.08642399062180188',) no score found for photo 1390246779 We are sending mail with results at report@fotonower.com args[1390246763] : ('0.08642399062180188',) no score found for photo 1390246763 We are sending mail with results at report@fotonower.com refus_total : 0.08642399062180188 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=27939778 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_P27939778_30-10-2025_07_16_59.pdf results_Auto_P27939778_30-10-2025_07_16_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939778_30-10-2025_07_16_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','27939778','results_Auto_P27939778_30-10-2025_07_16_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939778_30-10-2025_07_16_59.pdf','pdf','','0.4','0.08642399062180188') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27939778]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] map_info['map_portfolio_photo'] : {27939778: [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763, 1390246688, 1390246682, 1390246677, 1390246674, 1390246606, 1390246603, 1390246427, 1390246404, 1390246386, 1390246297, 1390246294, 1390246291, 1390246221, 1390246211, 1390246196, 1390246186, 1390246182, 1390246181, 1390246179, 1390246178, 1390246175, 1390246174, 1390246056, 1390246053, 1390246036, 1390246033, 1390246031, 1390245971, 1390245968, 1390245966, 1390245963, 1390245960, 1390245958, 1390245944, 1390245939, 1390245937, 1390245926, 1390245922, 1390245875, 1390245874, 1390245870, 1390245869, 1390245865, 1390245863, 1390245859, 1390245857, 1390245819, 1390245815, 1390245812, 1390245806, 1390245804, 1390245802, 1390245790, 1390245786, 1390245779, 1390245772, 1390245758, 1390245717, 1390245715, 1390245713, 1390245650, 1390245646]} final : False mtd_id 4302 list_pids : [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] 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, '3964400') ('4302', '27939778', '1390246930', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246900', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246896', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246893', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246891', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246857', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246821', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246802', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246788', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246786', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246783', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246779', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246763', None, None, None, None, None, '3964400') 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', '27939778', '1390246930', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246900', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246896', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246893', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246891', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246857', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246821', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246802', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246788', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246786', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246783', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246779', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246763', None, None, None, None, None, '3964400')] time used for this insertion : 0.0117950439453125 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.111496210098267 time spend to save output : 0.012019157409667969 total time spend for step 4 : 10.123515367507935 step5:split_time_score Thu Oct 30 07:17: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 : ['27939778'] 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 : [('27939778',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27939778) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1390246930: {'path': 'temp/1761805019_409002_1390246930_4f3306c06158b922b2e7da0e19851843.jpg', 'extension': 'jpg'}, 1390246821: {'path': 'temp/1761805019_409002_1390246821_1b5e467f2b21cfd86bc6b81df898c372.jpg', 'extension': 'jpg'}, 1390246857: {'path': 'temp/1761805019_409002_1390246857_1b2d8fda6c041faf4f4ccb532fb60c88.jpg', 'extension': 'jpg'}, 1390246891: {'path': 'temp/1761805019_409002_1390246891_722967b1a0130834da5a9de29768fdfd.jpg', 'extension': 'jpg'}, 1390246786: {'path': 'temp/1761805019_409002_1390246786_68604a9d6479018d67dacd5b4dd0b948.jpg', 'extension': 'jpg'}, 1390246788: {'path': 'temp/1761805019_409002_1390246788_0d7229e0a422a588320b3067d9dbfd53.jpg', 'extension': 'jpg'}, 1390246802: {'path': 'temp/1761805019_409002_1390246802_4dff5508753168d6eb2e5ff9266b2eb7.jpg', 'extension': 'jpg'}, 1390246763: {'path': 'temp/1761805019_409002_1390246763_cec8e41fbafaab372d1be4a2776d817f.jpg', 'extension': 'jpg'}, 1390246779: {'path': 'temp/1761805019_409002_1390246779_72a28f42597025da9b9c75404a6277bc.jpg', 'extension': 'jpg'}, 1390246783: {'path': 'temp/1761805019_409002_1390246783_bc0c97a67a91da27938c19a71df9f0a2.jpg', 'extension': 'jpg'}, 1390246893: {'path': 'temp/1761805019_409002_1390246893_17152fca274408606f37237b9f501771.jpg', 'extension': 'jpg'}, 1390246896: {'path': 'temp/1761805019_409002_1390246896_80ef69afa6451b567f12712ee1dd2e6e.jpg', 'extension': 'jpg'}, 1390246900: {'path': 'temp/1761805019_409002_1390246900_6e0c897fedd29aef9b6c498176cb9022.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 = 27939778; (('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 = 27939778 group by h (('07', 75),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27939778 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 (27939778) 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 (27939778) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30102025 27939778 Nombre de photos uploadées : 75 / 23040 (0%) 30102025 27939778 Nombre de photos taguées (types de déchets): 0 / 75 (0%) 30102025 27939778 Nombre de photos taguées (volume) : 0 / 75 (0%) [{'photo_id': 1390245650, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b94853dbcf23c60b5289676aacd5b03f.jpg', 'username': None, 'uploaded_at': 1761804098, 'text': 'image_30102025_07_00_15_010229m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390245646, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/72d70f8b9d60543880ac530cb3daab7a.jpg', 'username': None, 'uploaded_at': 1761804098, 'text': 'image_30102025_07_00_25_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390245717, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/ae49e8661f068fbcc566eac45f38ccdb.jpg', 'username': None, 'uploaded_at': 1761804157, 'text': 'image_30102025_07_00_55_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390245715, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/9a8b40105b7c2aa641baf58ccf37dabc.jpg', 'username': None, 'uploaded_at': 1761804157, 'text': 'image_30102025_07_01_14_009124m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0034945011138916016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27939778, '2025-10-30' ) 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-10-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2472886,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.1961526870727539 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= 2472886 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27928884, 'dashboard_result_id': 16543889, '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_P27928884_30-10-2025_06_20_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27929435, 'dashboard_result_id': 16543890, '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_P27929435_30-10-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27929931, 'dashboard_result_id': 16543891, '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_P27929931_30-10-2025_06_21_11.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27930441, 'dashboard_result_id': 16543892, '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_P27930441_30-10-2025_06_21_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27931641, 'dashboard_result_id': 16543893, '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_P27931641_30-10-2025_06_21_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27931962, 'dashboard_result_id': 16543894, '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_P27931962_30-10-2025_06_22_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27932426, 'dashboard_result_id': 16543895, '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_P27932426_30-10-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27932875, 'dashboard_result_id': 16543896, '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_P27932875_30-10-2025_06_24_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27933317, 'dashboard_result_id': 16543897, '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_P27933317_30-10-2025_06_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27933735, 'dashboard_result_id': 16543898, '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_P27933735_30-10-2025_06_25_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27934173, 'dashboard_result_id': 16543899, '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_P27934173_30-10-2025_06_26_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27934609, 'dashboard_result_id': 16543900, '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_P27934609_30-10-2025_06_26_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27934992, 'dashboard_result_id': 16543901, '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_P27934992_30-10-2025_06_27_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27935398, 'dashboard_result_id': 16543902, '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_P27935398_30-10-2025_06_27_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27935710, 'dashboard_result_id': 16543903, '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_P27935710_30-10-2025_06_28_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27936581, 'dashboard_result_id': 16543904, '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_P27936581_30-10-2025_06_28_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27936898, 'dashboard_result_id': 16543905, '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_P27936898_30-10-2025_06_29_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936910, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27937104, 'dashboard_result_id': 16543906, '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_P27937104_30-10-2025_05_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937119, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27937503, 'dashboard_result_id': 16543907, '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_P27937503_30-10-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937519, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27937856, 'dashboard_result_id': 16543908, '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_P27937856_30-10-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27937867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937878, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27938278, 'dashboard_result_id': 16543909, '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_P27938278_30-10-2025_06_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27938282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27938292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938293, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27938787, 'dashboard_result_id': 16543910, '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_P27938787_30-10-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27938796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27938802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938807, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27939227, 'dashboard_result_id': 16543911, '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_P27939227_30-10-2025_07_05_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939272, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2482128, 'mtr_portfolio_id': 27939778, 'dashboard_result_id': 16543912, '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_P27939778_30-10-2025_07_15_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939817, '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 = 27928884 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': 3963961, 'mtr_portfolio_id': 27928884, 'created_at': datetime.datetime(2025, 10, 30, 6, 19, 58), 'result': '0.062346153849257756', 'result_long': None, 'result_double': None}] Qualite : 0.062346153849257756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27928884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27928884_30-10-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27928884 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_P27928884_30-10-2025_06_20_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, 'pht': 3726}}" where mtr_portfolio_id = 27928884 and dashboard_run_id = 2482128 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`=27928884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543889, 0.062346153849257756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27928884_30-10-2025_06_20_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, '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 = 27929435 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': 3963962, 'mtr_portfolio_id': 27929435, 'created_at': datetime.datetime(2025, 10, 30, 6, 20, 28), 'result': '0.047308975695691854', 'result_long': None, 'result_double': None}] Qualite : 0.047308975695691854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27929435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929435_30-10-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27929435 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_P27929435_30-10-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, 'pht': 3726}}" where mtr_portfolio_id = 27929435 and dashboard_run_id = 2482128 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`=27929435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543890, 0.047308975695691854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929435_30-10-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, '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 = 27929931 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': 3963963, 'mtr_portfolio_id': 27929931, 'created_at': datetime.datetime(2025, 10, 30, 6, 21, 9), 'result': '0.033146636154077376', 'result_long': None, 'result_double': None}] Qualite : 0.033146636154077376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27929931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929931_30-10-2025_06_21_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27929931 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_P27929931_30-10-2025_06_21_11.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, 'pht': 3726}}" where mtr_portfolio_id = 27929931 and dashboard_run_id = 2482128 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`=27929931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543891, 0.033146636154077376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929931_30-10-2025_06_21_11.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, '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 = 27930441 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': 3963964, 'mtr_portfolio_id': 27930441, 'created_at': datetime.datetime(2025, 10, 30, 6, 21, 29), 'result': '0.06461271247938533', 'result_long': None, 'result_double': None}] Qualite : 0.06461271247938533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27930441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27930441_30-10-2025_06_21_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27930441 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_P27930441_30-10-2025_06_21_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, 'pht': 3726}}" where mtr_portfolio_id = 27930441 and dashboard_run_id = 2482128 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`=27930441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543892, 0.06461271247938533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27930441_30-10-2025_06_21_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, '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 = 27931641 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': 3963965, 'mtr_portfolio_id': 27931641, 'created_at': datetime.datetime(2025, 10, 30, 6, 21, 57), 'result': '0.04891286087142294', 'result_long': None, 'result_double': None}] Qualite : 0.04891286087142294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27931641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931641_30-10-2025_06_21_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27931641 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_P27931641_30-10-2025_06_21_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, 'pht': 3726}}" where mtr_portfolio_id = 27931641 and dashboard_run_id = 2482128 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`=27931641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543893, 0.04891286087142294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931641_30-10-2025_06_21_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, '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 = 27931962 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': 3963966, 'mtr_portfolio_id': 27931962, 'created_at': datetime.datetime(2025, 10, 30, 6, 22, 30), 'result': '0.041105412075530284', 'result_long': None, 'result_double': None}] Qualite : 0.041105412075530284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27931962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931962_30-10-2025_06_22_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27931962 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_P27931962_30-10-2025_06_22_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, 'pht': 3726}}" where mtr_portfolio_id = 27931962 and dashboard_run_id = 2482128 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`=27931962 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543894, 0.041105412075530284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931962_30-10-2025_06_22_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, '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 = 27932426 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': 3963967, 'mtr_portfolio_id': 27932426, 'created_at': datetime.datetime(2025, 10, 30, 6, 23, 29), 'result': '0.044698309946748685', 'result_long': None, 'result_double': None}] Qualite : 0.044698309946748685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27932426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932426_30-10-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27932426 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_P27932426_30-10-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, 'pht': 3726}}" where mtr_portfolio_id = 27932426 and dashboard_run_id = 2482128 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`=27932426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543895, 0.044698309946748685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932426_30-10-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, '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 = 27932875 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': 3963968, 'mtr_portfolio_id': 27932875, 'created_at': datetime.datetime(2025, 10, 30, 6, 23, 58), 'result': '0.06318522430639435', 'result_long': None, 'result_double': None}] Qualite : 0.06318522430639435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27932875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932875_30-10-2025_06_24_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27932875 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_P27932875_30-10-2025_06_24_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, 'pht': 3726}}" where mtr_portfolio_id = 27932875 and dashboard_run_id = 2482128 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`=27932875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543896, 0.06318522430639435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932875_30-10-2025_06_24_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, '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 = 27933317 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': 3963969, 'mtr_portfolio_id': 27933317, 'created_at': datetime.datetime(2025, 10, 30, 6, 24, 29), 'result': '0.042984225951589544', 'result_long': None, 'result_double': None}] Qualite : 0.042984225951589544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27933317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933317_30-10-2025_06_24_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27933317 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_P27933317_30-10-2025_06_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, 'pht': 3726}}" where mtr_portfolio_id = 27933317 and dashboard_run_id = 2482128 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`=27933317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543897, 0.042984225951589544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933317_30-10-2025_06_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, '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 = 27933735 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': 3963970, 'mtr_portfolio_id': 27933735, 'created_at': datetime.datetime(2025, 10, 30, 6, 25, 29), 'result': '0.07924195484013032', 'result_long': None, 'result_double': None}] Qualite : 0.07924195484013032 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27933735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933735_30-10-2025_06_25_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27933735 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_P27933735_30-10-2025_06_25_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, 'pht': 3726}}" where mtr_portfolio_id = 27933735 and dashboard_run_id = 2482128 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`=27933735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543898, 0.07924195484013032, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933735_30-10-2025_06_25_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, '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 = 27934173 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': 3963971, 'mtr_portfolio_id': 27934173, 'created_at': datetime.datetime(2025, 10, 30, 6, 25, 58), 'result': '0.0517947579710479', 'result_long': None, 'result_double': None}] Qualite : 0.0517947579710479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934173_30-10-2025_06_26_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934173 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_P27934173_30-10-2025_06_26_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, 'pht': 3726}}" where mtr_portfolio_id = 27934173 and dashboard_run_id = 2482128 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`=27934173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543899, 0.0517947579710479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934173_30-10-2025_06_26_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, '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 = 27934609 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': 3963972, 'mtr_portfolio_id': 27934609, 'created_at': datetime.datetime(2025, 10, 30, 6, 26, 14), 'result': '0.0518576423509456', 'result_long': None, 'result_double': None}] Qualite : 0.0518576423509456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934609_30-10-2025_06_26_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934609 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_P27934609_30-10-2025_06_26_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, 'pht': 3726}}" where mtr_portfolio_id = 27934609 and dashboard_run_id = 2482128 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`=27934609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543900, 0.0518576423509456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934609_30-10-2025_06_26_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, '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 = 27934992 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': 3963973, 'mtr_portfolio_id': 27934992, 'created_at': datetime.datetime(2025, 10, 30, 6, 26, 59), 'result': '0.07462635271049226', 'result_long': None, 'result_double': None}] Qualite : 0.07462635271049226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934992_30-10-2025_06_27_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934992 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_P27934992_30-10-2025_06_27_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, 'pht': 3726}}" where mtr_portfolio_id = 27934992 and dashboard_run_id = 2482128 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`=27934992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543901, 0.07462635271049226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934992_30-10-2025_06_27_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, '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 = 27935398 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': 3963974, 'mtr_portfolio_id': 27935398, 'created_at': datetime.datetime(2025, 10, 30, 6, 27, 28), 'result': '0.06502241464007665', 'result_long': None, 'result_double': None}] Qualite : 0.06502241464007665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27935398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935398_30-10-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27935398 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_P27935398_30-10-2025_06_27_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, 'pht': 3726}}" where mtr_portfolio_id = 27935398 and dashboard_run_id = 2482128 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`=27935398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543902, 0.06502241464007665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935398_30-10-2025_06_27_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, '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 = 27935710 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': 3963975, 'mtr_portfolio_id': 27935710, 'created_at': datetime.datetime(2025, 10, 30, 6, 28, 1), 'result': '0.04088164060197494', 'result_long': None, 'result_double': None}] Qualite : 0.04088164060197494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27935710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935710_30-10-2025_06_28_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27935710 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_P27935710_30-10-2025_06_28_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, 'pht': 3726}}" where mtr_portfolio_id = 27935710 and dashboard_run_id = 2482128 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`=27935710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543903, 0.04088164060197494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935710_30-10-2025_06_28_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, '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 = 27936581 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': 3963976, 'mtr_portfolio_id': 27936581, 'created_at': datetime.datetime(2025, 10, 30, 6, 28, 30), 'result': '0.06090917032406601', 'result_long': None, 'result_double': None}] Qualite : 0.06090917032406601 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27936581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_06_28_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27936581 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_P27936581_30-10-2025_06_28_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, 'pht': 3726}}" where mtr_portfolio_id = 27936581 and dashboard_run_id = 2482128 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`=27936581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543904, 0.06090917032406601, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_06_28_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, '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 = 27936898 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': 3963977, 'mtr_portfolio_id': 27936898, 'created_at': datetime.datetime(2025, 10, 30, 6, 29, 28), 'result': '0.07205998913681783', 'result_long': None, 'result_double': None}] Qualite : 0.07205998913681783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27936898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936898_30-10-2025_06_29_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27936898 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_P27936898_30-10-2025_06_29_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936910, 'pht': 3726}}" where mtr_portfolio_id = 27936898 and dashboard_run_id = 2482128 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`=27936898 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543905, 0.07205998913681783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936898_30-10-2025_06_29_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936910, '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 = 27937104 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': 3963880, 'mtr_portfolio_id': 27937104, 'created_at': datetime.datetime(2025, 10, 30, 5, 48, 57), 'result': '0.05513597335525593', 'result_long': None, 'result_double': None}] Qualite : 0.05513597335525593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27937104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937104_30-10-2025_05_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27937104 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_P27937104_30-10-2025_05_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937119, 'pht': 3726}}" where mtr_portfolio_id = 27937104 and dashboard_run_id = 2482128 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`=27937104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543906, 0.05513597335525593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937104_30-10-2025_05_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937119, '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 = 27937503 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': 3964060, 'mtr_portfolio_id': 27937503, 'created_at': datetime.datetime(2025, 10, 30, 6, 3, 28), 'result': '0.06333412625726831', 'result_long': None, 'result_double': None}] Qualite : 0.06333412625726831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27937503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937503_30-10-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27937503 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_P27937503_30-10-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937519, 'pht': 3726}}" where mtr_portfolio_id = 27937503 and dashboard_run_id = 2482128 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`=27937503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543907, 0.06333412625726831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937503_30-10-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937519, '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 = 27937856 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': 3964124, 'mtr_portfolio_id': 27937856, 'created_at': datetime.datetime(2025, 10, 30, 6, 17, 27), 'result': '0.07194761567433385', 'result_long': None, 'result_double': None}] Qualite : 0.07194761567433385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27937856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937856_30-10-2025_06_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27937856 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_P27937856_30-10-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27937867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937878, 'pht': 3726}}" where mtr_portfolio_id = 27937856 and dashboard_run_id = 2482128 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`=27937856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543908, 0.07194761567433385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937856_30-10-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27937867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937878, '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 = 27938278 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': 3964187, 'mtr_portfolio_id': 27938278, 'created_at': datetime.datetime(2025, 10, 30, 6, 34, 57), 'result': '0.06452872147134182', 'result_long': None, 'result_double': None}] Qualite : 0.06452872147134182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27938278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938278_30-10-2025_06_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27938278 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_P27938278_30-10-2025_06_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27938282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27938292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938293, 'pht': 3726}}" where mtr_portfolio_id = 27938278 and dashboard_run_id = 2482128 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`=27938278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543909, 0.06452872147134182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938278_30-10-2025_06_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27938282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27938292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938293, '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 = 27938787 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': 3964253, 'mtr_portfolio_id': 27938787, 'created_at': datetime.datetime(2025, 10, 30, 6, 48, 58), 'result': '0.07271842284783782', 'result_long': None, 'result_double': None}] Qualite : 0.07271842284783782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27938787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938787_30-10-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27938787 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_P27938787_30-10-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27938796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27938802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938807, 'pht': 3726}}" where mtr_portfolio_id = 27938787 and dashboard_run_id = 2482129 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`=27938787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543910, 0.07271842284783782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938787_30-10-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27938796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27938802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938807, '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 = 27939227 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': 3964322, 'mtr_portfolio_id': 27939227, 'created_at': datetime.datetime(2025, 10, 30, 7, 5, 30), 'result': '0.06375441685578183', 'result_long': None, 'result_double': None}] Qualite : 0.06375441685578183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27939227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939227_30-10-2025_07_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27939227 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_P27939227_30-10-2025_07_05_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939272, 'pht': 3726}}" where mtr_portfolio_id = 27939227 and dashboard_run_id = 2482129 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`=27939227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543911, 0.06375441685578183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939227_30-10-2025_07_05_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939272, '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 = 27939778 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': 3964400, 'mtr_portfolio_id': 27939778, 'created_at': datetime.datetime(2025, 10, 30, 7, 16, 58), 'result': '0.08642399062180188', 'result_long': None, 'result_double': None}] Qualite : 0.08642399062180188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27939778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939778_30-10-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27939778 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_P27939778_30-10-2025_07_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939817, 'pht': 3726}}" where mtr_portfolio_id = 27939778 and dashboard_run_id = 2482129 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`=27939778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16543912, 0.08642399062180188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939778_30-10-2025_07_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939817, '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 (27928884,27929435,27929931,27930441,27931641,27931962,27932426,27932875,27933317,27933735,27934173,27934609,27934992,27935398,27935710,27936581,27936898,27937104,27937503,27937856,27938278,27938787,27939227,27939778) result : ((1390202042,), (1390202046,), (1390202076,), (1390202079,), (1390202084,), (1390202088,), (1390202126,), (1390202128,), (1390202131,), (1390202134,), (1390202136,), (1390202181,), (1390202182,), (1390202185,), (1390202188,), (1390202223,), (1390202227,), (1390202271,), (1390202274,), (1390202277,), (1390202280,), (1390202282,), (1390202332,), (1390202334,), (1390202352,), (1390202378,), (1390202384,), (1390202446,), (1390202450,), (1390202453,), (1390202456,), (1390202462,), (1390202467,), (1390202471,), (1390202475,), (1390202480,), (1390202561,), (1390202566,), (1390202600,), (1390202602,), (1390202604,), (1390202620,), (1390202790,), (1390202803,), (1390202809,), (1390202858,), (1390202897,), (1390202970,), (1390202977,), (1390202988,), (1390202996,), (1390203257,), (1390203261,), (1390203262,), (1390203264,), (1390203267,), (1390203308,), (1390203310,), (1390203314,), (1390203319,), (1390203359,), (1390203360,), (1390203363,), (1390203608,), (1390203576,), (1390203589,), (1390203594,), (1390203598,), (1390203603,), (1390203649,), (1390203654,), (1390203657,), (1390203673,), (1390203677,), (1390203763,), (1390203797,), (1390203825,), (1390203829,), (1390203833,), (1390203838,), (1390203898,), (1390204088,), (1390204090,), (1390204094,), (1390204098,), (1390204135,), (1390204161,), (1390204171,), (1390204182,), (1390204192,), (1390204203,), (1390204316,), (1390204318,), (1390204323,), (1390204328,), (1390204385,), (1390204407,), (1390204441,), (1390204486,), (1390204520,), (1390204532,), (1390204729,), (1390204731,), (1390204739,), (1390204743,), (1390204758,), (1390204761,), (1390204762,), (1390204764,), (1390204870,), (1390204903,), (1390204937,), (1390204966,), (1390204999,), (1390205001,), (1390205011,), (1390205021,), (1390205062,), (1390205064,), (1390205067,), (1390205071,), (1390205116,), (1390205118,), (1390205122,), (1390205125,), (1390205200,), (1390205212,), (1390205222,), (1390205231,), (1390205354,), (1390205357,), (1390205369,), (1390205371,), (1390205377,), (1390205341,), (1390205344,), (1390205347,), (1390205351,), (1390205390,), (1390205394,), (1390205396,), (1390205399,), (1390205400,), (1390205434,), (1390205440,), (1390205443,), (1390205487,), (1390205489,), (1390205491,), (1390205536,), (1390205572,), (1390205609,), (1390205648,), (1390205687,), (1390206147,), (1390206148,), (1390206184,), (1390206186,), (1390206220,), (1390206228,), (1390207854,), (1390207855,), (1390207859,), (1390207860,), (1390208225,), (1390208226,), (1390208230,), (1390208242,), (1390208245,), (1390208248,), (1390208289,), (1390208293,), (1390208296,), (1390208299,), (1390208302,), (1390208459,), (1390208457,), (1390208502,), (1390208506,), (1390208510,), (1390208515,), (1390208617,), (1390208622,), (1390208628,), (1390208632,), (1390208667,), (1390208670,), (1390208675,), (1390208679,), (1390208703,), (1390208865,), (1390208866,), (1390208869,), (1390208870,), (1390208873,), (1390208874,), (1390208879,), (1390208880,), (1390208884,), (1390208885,), (1390208889,), (1390208891,), (1390208917,), (1390208920,), (1390208940,), (1390209024,), (1390209030,), (1390209035,), (1390209039,), (1390209212,), (1390209221,), (1390209225,), (1390209290,), (1390209300,), (1390209339,), (1390209343,), (1390209355,), (1390209361,), (1390209365,), (1390209368,), (1390209378,), (1390209381,), (1390209384,), (1390209385,), (1390209386,), (1390209387,), (1390209400,), (1390209403,), (1390209407,), (1390209412,), (1390209502,), (1390209538,), (1390209576,), (1390209612,), (1390209653,), (1390209779,), (1390209780,), (1390209783,), (1390209785,), (1390209790,), (1390209792,), (1390209801,), (1390209808,), (1390209815,), (1390209816,), (1390209835,), (1390209845,), (1390209850,), (1390209924,), (1390209932,), (1390209936,), (1390209942,), (1390209947,), (1390209952,), (1390209998,), (1390216052,), (1390216058,), (1390216062,), (1390216135,), (1390216138,), (1390216141,), (1390216219,), (1390216222,), (1390216285,), (1390216319,), (1390216355,), (1390216388,), (1390216426,), (1390216760,), (1390216762,), (1390216800,), (1390216804,), (1390216854,), (1390216869,), (1390216932,), (1390216941,), (1390217000,), (1390217007,), (1390217167,), (1390217207,), (1390217245,), (1390217592,), (1390217596,), (1390217608,), (1390217623,), (1390217778,), (1390217813,), (1390217850,), (1390217893,), (1390218122,), (1390218127,), (1390218130,), (1390218133,), (1390218158,), (1390218199,), (1390218380,), (1390218383,), (1390218385,), (1390218388,), (1390218487,), (1390218523,), (1390218560,), (1390218602,), (1390218644,), (1390218725,), (1390218771,), (1390218774,), (1390218779,), (1390218815,), (1390218817,), (1390218820,), (1390218823,), (1390218872,), (1390218864,), (1390218867,), (1390218910,), (1390218915,), (1390218926,), (1390218933,), (1390218937,), (1390218995,), (1390218999,), (1390219003,), (1390219005,), (1390219007,), (1390219040,), (1390219045,), (1390219050,), (1390219055,), (1390219093,), (1390219094,), (1390219120,), (1390219125,), (1390219129,), (1390219134,), (1390219138,), (1390219182,), (1390219183,), (1390219206,), (1390219207,), (1390219209,), (1390219210,), (1390219213,), (1390219214,), (1390219247,), (1390219250,), (1390219253,), (1390219257,), (1390219259,), (1390219265,), (1390219269,), (1390219271,), (1390219274,), (1390219277,), (1390219320,), (1390219329,), (1390219384,), (1390219385,), (1390219386,), (1390219387,), (1390219389,), (1390219396,), (1390219411,), (1390219417,), (1390219420,), (1390219422,), (1390219423,), (1390219485,), (1390219488,), (1390219492,), (1390219499,), (1390219529,), (1390219533,), (1390219537,), (1390219633,), (1390219616,), (1390219620,), (1390219624,), (1390219628,), (1390219826,), (1390219861,), (1390219896,), (1390219932,), (1390219966,), (1390220445,), (1390220481,), (1390220526,), (1390220612,), (1390220616,), (1390220621,), (1390220626,), (1390220629,), (1390220921,), (1390220953,), (1390220986,), (1390221121,), (1390221157,), (1390221192,), (1390221340,), (1390221341,), (1390221345,), (1390221346,), (1390221623,), (1390221624,), (1390221626,), (1390221627,), (1390221628,), (1390221630,), (1390221750,), (1390221754,), (1390221760,), (1390221765,), (1390221795,), (1390221797,), (1390221801,), (1390221804,), (1390221844,), (1390221848,), (1390221850,), (1390221886,), (1390221891,), (1390221894,), (1390221899,), (1390221960,), (1390221955,), (1390221958,), (1390221992,), (1390221995,), (1390221999,), (1390222003,), (1390222009,), (1390222047,), (1390222048,), (1390222052,), (1390222053,), (1390222056,), (1390222057,), (1390222093,), (1390222096,), (1390222100,), (1390222103,), (1390222107,), (1390222142,), (1390222146,), (1390222150,), (1390222154,), (1390222157,), (1390222165,), (1390222169,), (1390222177,), (1390222183,), (1390222193,), (1390222201,), (1390222212,), (1390222216,), (1390222219,), (1390222243,), (1390222250,), (1390222253,), (1390222292,), (1390222331,), (1390222334,), (1390222338,), (1390222340,), (1390222343,), (1390222391,), (1390222395,), (1390222443,), (1390222457,), (1390222462,), (1390222466,), (1390222530,), (1390222533,), (1390222537,), (1390222540,), (1390222542,), (1390222545,), (1390222577,), (1390222580,), (1390222582,), (1390222591,), (1390223066,), (1390223103,), (1390223137,), (1390223325,), (1390223292,), (1390223589,), (1390223594,), (1390223597,), (1390223601,), (1390223832,), (1390223833,), (1390223874,), (1390223909,), (1390223912,), (1390223945,), (1390223950,), (1390223981,), (1390224070,), (1390224105,), (1390224139,), (1390224177,), (1390224214,), (1390224250,), (1390224295,), (1390224298,), (1390224302,), (1390224523,), (1390224564,), (1390224602,), (1390224664,), (1390224730,), (1390224732,), (1390224734,), (1390224773,), (1390224776,), (1390224779,), (1390224783,), (1390224787,), (1390224818,), (1390224822,), (1390224827,), (1390224832,), (1390224836,), (1390224838,), (1390224876,), (1390224883,), (1390224887,), (1390224888,), (1390224892,), (1390224936,), (1390224940,), (1390224942,), (1390224946,), (1390224949,), (1390224951,), (1390224963,), (1390224965,), (1390224967,), (1390224970,), (1390224971,), (1390224978,), (1390225048,), (1390225050,), (1390225052,), (1390225055,), (1390225069,), (1390225074,), (1390225076,), (1390225079,), (1390225080,), (1390225082,), (1390225141,), (1390225143,), (1390225129,), (1390225130,), (1390225135,), (1390225137,), (1390225184,), (1390225185,), (1390225188,), (1390225189,), (1390225192,), (1390225193,), (1390225197,), (1390225200,), (1390225207,), (1390225208,), (1390225209,), (1390225213,), (1390225234,), (1390225239,), (1390225241,), (1390225243,), (1390225246,), (1390225284,), (1390225290,), (1390225294,), (1390225350,), (1390225356,), (1390225362,), (1390225368,), (1390225407,), (1390225410,), (1390225412,), (1390225421,), (1390225428,), (1390225431,), (1390225498,), (1390225500,), (1390225504,), (1390225508,), (1390225552,), (1390225556,), (1390225561,), (1390225562,), (1390225583,), (1390225590,), (1390225612,), (1390225617,), (1390225623,), (1390225627,), (1390225629,), (1390225632,), (1390225641,), (1390225649,), (1390225654,), (1390225657,), (1390225660,), (1390225663,), (1390225674,), (1390225677,), (1390225680,), (1390225682,), (1390225686,), (1390225723,), (1390225726,), (1390225732,), (1390225737,), (1390225791,), (1390225795,), (1390225798,), (1390225801,), (1390225804,), (1390225837,), (1390225841,), (1390225845,), (1390225857,), (1390225858,), (1390225922,), (1390225921,), (1390225931,), (1390225936,), (1390225941,), (1390225945,), (1390225948,), (1390226045,), (1390226080,), (1390226120,), (1390226156,), (1390226195,), (1390226662,), (1390226701,), (1390226743,), (1390226934,), (1390226936,), (1390226939,), (1390227177,), (1390227179,), (1390227213,), (1390227217,), (1390227253,), (1390227256,), (1390227293,), (1390227294,), (1390227333,), (1390227342,), (1390227447,), (1390227458,), (1390227641,), (1390227645,), (1390227649,), (1390227653,), (1390227658,), (1390227962,), (1390227973,), (1390227979,), (1390227984,), (1390227988,), (1390228038,), (1390228041,), (1390228090,), (1390228093,), (1390228159,), (1390228161,), (1390228164,), (1390228168,), (1390228172,), (1390228206,), (1390228256,), (1390228260,), (1390228263,), (1390228269,), (1390228304,), (1390228309,), (1390228312,), (1390228315,), (1390228375,), (1390228370,), (1390228431,), (1390228433,), (1390228435,), (1390228449,), (1390228453,), (1390228458,), (1390228460,), (1390228497,), (1390228502,), (1390228506,), (1390228509,), (1390228551,), (1390228554,), (1390228556,), (1390228558,), (1390228611,), (1390228612,), (1390228614,), (1390228615,), (1390228618,), (1390228619,), (1390228623,), (1390228624,), (1390228668,), (1390228671,), (1390228674,), (1390228712,), (1390228717,), (1390228720,), (1390228728,), (1390228737,), (1390228738,), (1390228740,), (1390228741,), (1390228743,), (1390228745,), (1390228749,), (1390228750,), (1390228757,), (1390228758,), (1390228771,), (1390228775,), (1390228779,), (1390228830,), (1390228835,), (1390228837,), (1390228838,), (1390228874,), (1390228878,), (1390228884,), (1390228887,), (1390228922,), (1390228923,), (1390228925,), (1390228926,), (1390229097,), (1390229135,), (1390229173,), (1390229210,), (1390229252,), (1390229390,), (1390229425,), (1390229463,), (1390229499,), (1390229867,), (1390229868,), (1390229871,), (1390229874,), (1390229914,), (1390229926,), (1390229941,), (1390229853,), (1390229854,), (1390229857,), (1390229858,), (1390229859,), (1390229860,), (1390229863,), (1390229864,), (1390229889,), (1390229893,), (1390229898,), (1390230363,), (1390230378,), (1390230392,), (1390230399,), (1390230590,), (1390230593,), (1390230595,), (1390230597,), (1390230599,), (1390230704,), (1390230741,), (1390230776,), (1390231040,), (1390231052,), (1390231055,), (1390231059,), (1390231092,), (1390231094,), (1390231096,), (1390231103,), (1390231108,), (1390231113,), (1390231125,), (1390231129,), (1390231139,), (1390231141,), (1390231143,), (1390231145,), (1390231152,), (1390231153,), (1390231171,), (1390231179,), (1390231183,), (1390231186,), (1390231251,), (1390231255,), (1390231259,), (1390231262,), (1390231302,), (1390231350,), (1390231352,), (1390231355,), (1390231358,), (1390231405,), (1390231406,), (1390231413,), (1390231414,), (1390231418,), (1390231419,), (1390231422,), (1390231423,), (1390231469,), (1390231471,), (1390231473,), (1390231474,), (1390231478,), (1390231489,), (1390231492,), (1390231496,), (1390231498,), (1390231553,), (1390231551,), (1390231596,), (1390231600,), (1390231604,), (1390231608,), (1390231652,), (1390231656,), (1390231660,), (1390231662,), (1390231666,), (1390231670,), (1390231677,), (1390231680,), (1390231682,), (1390231692,), (1390231695,), (1390231701,), (1390231708,), (1390231752,), (1390231753,), (1390231755,), (1390231756,), (1390231763,), (1390231764,), (1390231775,), (1390231776,), (1390231780,), (1390231855,), (1390231897,), (1390231904,), (1390231909,), (1390231943,), (1390231950,), (1390231952,), (1390231953,), (1390231991,), (1390231995,), (1390231998,), (1390232001,), (1390232004,), (1390232008,), (1390232681,), (1390232724,), (1390232763,), (1390232800,), (1390232839,), (1390232878,), (1390233119,), (1390233163,), (1390233644,), (1390233658,), (1390233661,), (1390233955,), (1390233994,), (1390234034,), (1390234050,), (1390234092,), (1390234096,), (1390234145,), (1390234147,), (1390234150,), (1390234158,), (1390234203,), (1390234206,), (1390234208,), (1390234211,), (1390234280,), (1390234281,), (1390234283,), (1390234285,), (1390234288,), (1390234293,), (1390234329,), (1390234332,), (1390234335,), (1390234338,), (1390234340,), (1390234342,), (1390234350,), (1390234354,), (1390234360,), (1390234364,), (1390234369,), (1390234373,), (1390234387,), (1390234388,), (1390234397,), (1390234402,), (1390234520,), (1390234521,), (1390239811,), (1390239812,), (1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,), (1390240327,), (1390240333,), (1390240338,), (1390240341,), (1390240344,), (1390240345,), (1390240354,), (1390240355,), (1390240360,), (1390240361,), (1390240366,), (1390240367,), (1390240371,), (1390240372,), (1390240376,), (1390240377,), (1390240380,), (1390240388,), (1390240500,), (1390240596,), (1390240635,), (1390240671,), (1390240676,), (1390240737,), (1390240740,), (1390240744,), (1390240749,), (1390240753,), (1390240757,), (1390240764,), (1390240766,), (1390240769,), (1390240772,), (1390240810,), (1390240813,), (1390240817,), (1390240820,), (1390240864,), (1390240867,), (1390240870,), (1390240874,), (1390240878,), (1390240914,), (1390240918,), (1390240922,), (1390240926,), (1390240929,), (1390240940,), (1390240979,), (1390240982,), (1390240984,), (1390240988,), (1390241032,), (1390241036,), (1390241040,), (1390241049,), (1390241080,), (1390241083,), (1390241085,), (1390241087,), (1390241089,), (1390241094,), (1390241121,), (1390241123,), (1390241126,), (1390241139,), (1390241142,), (1390241111,), (1390241115,), (1390241117,), (1390241154,), (1390241165,), (1390241214,), (1390241216,), (1390241220,), (1390241224,), (1390241228,), (1390241288,), (1390241290,), (1390241291,), (1390241292,), (1390241325,), (1390241326,), (1390241332,), (1390241334,), (1390241343,), (1390241344,), (1390241349,), (1390241350,), (1390241404,), (1390241407,), (1390241410,), (1390241412,), (1390241414,), (1390241420,), (1390241423,), (1390241427,), (1390241433,), (1390241482,), (1390241484,), (1390241487,), (1390241490,), (1390241520,), (1390241524,), (1390241527,), (1390241530,), (1390241534,), (1390241607,), (1390241610,), (1390241614,), (1390241616,), (1390241618,), (1390241621,), (1390241626,), (1390241630,), (1390241634,), (1390241681,), (1390241682,), (1390241687,), (1390241688,), (1390241693,), (1390241694,), (1390241697,), (1390241698,), (1390241711,), (1390241712,), (1390241721,), (1390241725,), (1390241728,), (1390241731,), (1390241790,), (1390241793,), (1390241795,), (1390241797,), (1390241799,), (1390241915,), (1390241917,), (1390241902,), (1390241903,), (1390241905,), (1390241906,), (1390241908,), (1390241909,), (1390241911,), (1390241912,), (1390241930,), (1390241933,), (1390241935,), (1390241937,), (1390241988,), (1390241990,), (1390241993,), (1390241997,), (1390242000,), (1390242037,), (1390242039,), (1390242043,), (1390242047,), (1390242051,), (1390242095,), (1390242098,), (1390242102,), (1390242105,), (1390242108,), (1390242141,), (1390242145,), (1390242152,), (1390242154,), (1390242210,), (1390242211,), (1390242215,), (1390242217,), (1390242221,), (1390242223,), (1390242227,), (1390242228,), (1390242233,), (1390242234,), (1390242271,), (1390242276,), (1390242280,), (1390242283,), (1390242286,), (1390242300,), (1390242304,), (1390242308,), (1390242343,), (1390242344,), (1390242347,), (1390242350,), (1390242397,), (1390242399,), (1390242401,), (1390242404,), (1390242407,), (1390242436,), (1390242439,), (1390242443,), (1390242446,), (1390242448,), (1390242489,), (1390242492,), (1390242494,), (1390242508,), (1390242512,), (1390242518,), (1390242523,), (1390242528,), (1390242533,), (1390242538,), (1390242544,), (1390242547,), (1390242595,), (1390242597,), (1390242602,), (1390242606,), (1390242590,), (1390242593,), (1390242619,), (1390242621,), (1390242623,), (1390242625,), (1390242661,), (1390242662,), (1390242665,), (1390242666,), (1390242668,), (1390242670,), (1390242673,), (1390242679,), (1390242712,), (1390242716,), (1390242719,), (1390242721,), (1390242727,), (1390242735,), (1390242738,), (1390242785,), (1390242797,), (1390242800,), (1390242803,), (1390242854,), (1390242859,), (1390242868,), (1390242873,), (1390242893,), (1390242896,), (1390242899,), (1390242902,), (1390242949,), (1390242950,), (1390243008,), (1390243011,), (1390243014,), (1390243018,), (1390243050,), (1390243053,), (1390243056,), (1390243119,), (1390243122,), (1390243126,), (1390243130,), (1390243133,), (1390243165,), (1390243168,), (1390243172,), (1390243177,), (1390243233,), (1390243234,), (1390243273,), (1390243275,), (1390243278,), (1390243281,), (1390243284,), (1390243286,), (1390243297,), (1390243298,), (1390243301,), (1390243302,), (1390243330,), (1390243322,), (1390243326,), (1390243328,), (1390243359,), (1390243361,), (1390243364,), (1390243368,), (1390243372,), (1390243420,), (1390243424,), (1390243461,), (1390243463,), (1390243466,), (1390243471,), (1390243475,), (1390243479,), (1390243529,), (1390243533,), (1390243536,), (1390243538,), (1390243540,), (1390243570,), (1390243573,), (1390243576,), (1390243581,), (1390243644,), (1390243645,), (1390243646,), (1390243647,), (1390243649,), (1390243650,), (1390243653,), (1390243654,), (1390243696,), (1390243700,), (1390243705,), (1390243710,), (1390243786,), (1390243789,), (1390243791,), (1390243829,), (1390243831,), (1390243833,), (1390243878,), (1390243880,), (1390243887,), (1390243888,), (1390243891,), (1390243893,), (1390243898,), (1390243899,), (1390243953,), (1390243957,), (1390243995,), (1390243996,), (1390243998,), (1390243999,), (1390244041,), (1390244044,), (1390244046,), (1390244048,), (1390244116,), (1390244117,), (1390244137,), (1390244140,), (1390244144,), (1390244147,), (1390244083,), (1390244084,), (1390244087,), (1390244088,), (1390244091,), (1390244092,), (1390244097,), (1390244100,), (1390244110,), (1390244111,), (1390244133,), (1390244135,), (1390244194,), (1390244197,), (1390244202,), (1390244206,), (1390244240,), (1390244243,), (1390244247,), (1390244250,), (1390244311,), (1390244312,), (1390244314,), (1390244316,), (1390244322,), (1390244323,), (1390244364,), (1390244367,), (1390244372,), (1390244426,), (1390244429,), (1390244432,), (1390244440,), (1390244443,), (1390244446,), (1390244454,), (1390244499,), (1390244502,), (1390244507,), (1390244567,), (1390244572,), (1390244575,), (1390244576,), (1390244609,), (1390244613,), (1390244616,), (1390244650,), (1390244654,), (1390244658,), (1390244661,), (1390244708,), (1390244709,), (1390244710,), (1390244711,), (1390244712,), (1390244713,), (1390244761,), (1390244762,), (1390244765,), (1390244766,), (1390244767,), (1390244768,), (1390244805,), (1390244806,), (1390244809,), (1390244810,), (1390244812,), (1390244814,), (1390244869,), (1390244870,), (1390244860,), (1390244861,), (1390244862,), (1390244864,), (1390244865,), (1390244866,), (1390244932,), (1390244936,), (1390244939,), (1390244943,), (1390244946,), (1390244949,), (1390244965,), (1390244968,), (1390244974,), (1390245037,), (1390245039,), (1390245042,), (1390245046,), (1390245120,), (1390245121,), (1390245123,), (1390245126,), (1390245156,), (1390245159,), (1390245163,), (1390245220,), (1390245224,), (1390245253,), (1390245260,), (1390245264,), (1390245331,), (1390245334,), (1390245336,), (1390245340,), (1390245344,), (1390245378,), (1390245383,), (1390245388,), (1390245390,), (1390245393,), (1390245436,), (1390245439,), (1390245445,), (1390245446,), (1390245447,), (1390245448,), (1390245463,), (1390245467,), (1390245472,), (1390245477,), (1390245479,), (1390245527,), (1390245528,), (1390245531,), (1390245532,), (1390245536,), (1390245537,), (1390245541,), (1390245542,), (1390245546,), (1390245548,), (1390245564,), (1390245569,), (1390245575,), (1390245581,), (1390245654,), (1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30102025': {'nb_upload': 75, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27939778]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] map_info['map_portfolio_photo'] : {27939778: [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763, 1390246688, 1390246682, 1390246677, 1390246674, 1390246606, 1390246603, 1390246427, 1390246404, 1390246386, 1390246297, 1390246294, 1390246291, 1390246221, 1390246211, 1390246196, 1390246186, 1390246182, 1390246181, 1390246179, 1390246178, 1390246175, 1390246174, 1390246056, 1390246053, 1390246036, 1390246033, 1390246031, 1390245971, 1390245968, 1390245966, 1390245963, 1390245960, 1390245958, 1390245944, 1390245939, 1390245937, 1390245926, 1390245922, 1390245875, 1390245874, 1390245870, 1390245869, 1390245865, 1390245863, 1390245859, 1390245857, 1390245819, 1390245815, 1390245812, 1390245806, 1390245804, 1390245802, 1390245790, 1390245786, 1390245779, 1390245772, 1390245758, 1390245717, 1390245715, 1390245713, 1390245650, 1390245646]} final : True mtd_id 4302 list_pids : [1390246930, 1390246900, 1390246896, 1390246893, 1390246891, 1390246857, 1390246821, 1390246802, 1390246788, 1390246786, 1390246783, 1390246779, 1390246763] Looping around the photos to save general results len do output : 1 /27939778Didn'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, '3964400') ('4302', '27939778', '1390246930', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246900', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246896', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246893', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246891', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246857', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246821', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246802', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246788', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246786', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246783', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246779', None, None, None, None, None, '3964400') ('4302', None, None, None, None, None, None, None, '3964400') ('4302', '27939778', '1390246763', None, None, None, None, None, '3964400') 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, '27939778', 'None', None, None, None, None, '3964400'), ('4302', '27939778', '1390246930', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246900', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246896', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246893', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246891', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246857', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246821', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246802', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246788', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246786', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246783', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246779', None, None, None, None, None, '3964400'), ('4302', '27939778', '1390246763', None, None, None, None, None, '3964400')] time used for this insertion : 0.012269735336303711 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6703119277954102 time spend to save output : 0.012563467025756836 total time spend for step 5 : 1.682875394821167 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 (3964400) 2.36user 2.46system 0:16.38elapsed 29%CPU (0avgtext+0avgdata 160596maxresident)k 392inputs+26136outputs (3major+75470minor)pagefaults 0swaps