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 : 279542 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 (3682523) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3682523) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674397 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3682523'] with mtr_portfolio_ids : ['26674397'] and first list_photo_ids : [] new path : /proc/279542/ Name: python3 Umask: 0002 State: R (running) Tgid: 279542 Ngid: 0 Pid: 279542 PPid: 279541 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 279542 NSpid: 279542 NSpgid: 278067 NSsid: 278067 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99640 kB VmRSS: 99640 kB RssAnon: 60160 kB RssFile: 39480 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 58 nonvoluntary_ctxt_switches: 129 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '279542', 'Ngid': '0', 'Pid': '279542', 'PPid': '279541', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '279542', 'NSpid': '279542', 'NSpgid': '278067', 'NSsid': '278067', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99640 kB', 'VmRSS': '99640 kB', 'RssAnon': '60160 kB', 'RssFile': '39480 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '58', 'nonvoluntary_ctxt_switches': '129'} ('datou_batch_current', '279542', '1107252', '0', '1107252', '866004', '99640', b'', 'marlene', '3682523') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26674397) 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 (3682523 ) ) 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 (26674397) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1382728677, 'portfolio_id': 26674397}, {'photo_id': 1382728674, 'portfolio_id': 26674397}, {'photo_id': 1382728670, 'portfolio_id': 26674397}, {'photo_id': 1382728666, 'portfolio_id': 26674397}, {'photo_id': 1382728663, 'portfolio_id': 26674397}, {'photo_id': 1382728626, 'portfolio_id': 26674397}, {'photo_id': 1382728622, 'portfolio_id': 26674397}, {'photo_id': 1382728614, 'portfolio_id': 26674397}, {'photo_id': 1382728610, 'portfolio_id': 26674397}, {'photo_id': 1382728606, 'portfolio_id': 26674397}, {'photo_id': 1382728602, 'portfolio_id': 26674397}, {'photo_id': 1382728586, 'portfolio_id': 26674397}, {'photo_id': 1382728582, 'portfolio_id': 26674397}, {'photo_id': 1382728578, 'portfolio_id': 26674397}, {'photo_id': 1382728573, 'portfolio_id': 26674397}, {'photo_id': 1382728569, 'portfolio_id': 26674397}, {'photo_id': 1382728566, 'portfolio_id': 26674397}, {'photo_id': 1382728555, 'portfolio_id': 26674397}, {'photo_id': 1382728551, 'portfolio_id': 26674397}, {'photo_id': 1382728543, 'portfolio_id': 26674397}, {'photo_id': 1382728533, 'portfolio_id': 26674397}, {'photo_id': 1382728520, 'portfolio_id': 26674397}, {'photo_id': 1382728518, 'portfolio_id': 26674397}, {'photo_id': 1382728516, 'portfolio_id': 26674397}, {'photo_id': 1382728514, 'portfolio_id': 26674397}, {'photo_id': 1382728510, 'portfolio_id': 26674397}, {'photo_id': 1382728508, 'portfolio_id': 26674397}, {'photo_id': 1382728496, 'portfolio_id': 26674397}, {'photo_id': 1382728492, 'portfolio_id': 26674397}, {'photo_id': 1382728487, 'portfolio_id': 26674397}, {'photo_id': 1382728482, 'portfolio_id': 26674397}, {'photo_id': 1382728478, 'portfolio_id': 26674397}, {'photo_id': 1382728426, 'portfolio_id': 26674397}, {'photo_id': 1382728420, 'portfolio_id': 26674397}, {'photo_id': 1382728416, 'portfolio_id': 26674397}, {'photo_id': 1382728409, 'portfolio_id': 26674397}, {'photo_id': 1382728396, 'portfolio_id': 26674397}, {'photo_id': 1382728393, 'portfolio_id': 26674397}, {'photo_id': 1382728388, 'portfolio_id': 26674397}, {'photo_id': 1382728382, 'portfolio_id': 26674397}, {'photo_id': 1382728380, 'portfolio_id': 26674397}, {'photo_id': 1382728371, 'portfolio_id': 26674397}, {'photo_id': 1382728351, 'portfolio_id': 26674397}, {'photo_id': 1382728347, 'portfolio_id': 26674397}, {'photo_id': 1382728345, 'portfolio_id': 26674397}, {'photo_id': 1382728342, 'portfolio_id': 26674397}, {'photo_id': 1382728341, 'portfolio_id': 26674397}, {'photo_id': 1382728338, 'portfolio_id': 26674397}, {'photo_id': 1382728320, 'portfolio_id': 26674397}, {'photo_id': 1382728317, 'portfolio_id': 26674397}, {'photo_id': 1382728314, 'portfolio_id': 26674397}, {'photo_id': 1382728294, 'portfolio_id': 26674397}, {'photo_id': 1382728289, 'portfolio_id': 26674397}, {'photo_id': 1382728284, 'portfolio_id': 26674397}, {'photo_id': 1382728279, 'portfolio_id': 26674397}, {'photo_id': 1382728274, 'portfolio_id': 26674397}, {'photo_id': 1382728270, 'portfolio_id': 26674397}, {'photo_id': 1382728260, 'portfolio_id': 26674397}, {'photo_id': 1382728256, 'portfolio_id': 26674397}, {'photo_id': 1382728251, 'portfolio_id': 26674397}, {'photo_id': 1382728246, 'portfolio_id': 26674397}, {'photo_id': 1382728244, 'portfolio_id': 26674397}, {'photo_id': 1382728238, 'portfolio_id': 26674397}, {'photo_id': 1382728209, 'portfolio_id': 26674397}, {'photo_id': 1382728206, 'portfolio_id': 26674397}, {'photo_id': 1382728203, 'portfolio_id': 26674397}, {'photo_id': 1382728201, 'portfolio_id': 26674397}, {'photo_id': 1382728200, 'portfolio_id': 26674397}, {'photo_id': 1382728181, 'portfolio_id': 26674397}, {'photo_id': 1382728179, 'portfolio_id': 26674397}] map_portfolio_id_photo_id: {26674397: [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602, 1382728586, 1382728582, 1382728578, 1382728573, 1382728569, 1382728566, 1382728555, 1382728551, 1382728543, 1382728533, 1382728520, 1382728518, 1382728516, 1382728514, 1382728510, 1382728508, 1382728496, 1382728492, 1382728487, 1382728482, 1382728478, 1382728426, 1382728420, 1382728416, 1382728409, 1382728396, 1382728393, 1382728388, 1382728382, 1382728380, 1382728371, 1382728351, 1382728347, 1382728345, 1382728342, 1382728341, 1382728338, 1382728320, 1382728317, 1382728314, 1382728294, 1382728289, 1382728284, 1382728279, 1382728274, 1382728270, 1382728260, 1382728256, 1382728251, 1382728246, 1382728244, 1382728238, 1382728209, 1382728206, 1382728203, 1382728201, 1382728200, 1382728181, 1382728179]} ##### 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.01610112190246582 #### 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 Tue Sep 9 05:30:56 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 (26674397) 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 : 26674397 get user id for portfolio 26674397 get sub ptf for main ptf 26674397, type 3726 and hashtags ['mal_croppe', 'papier', 'Carton_brun', 'kraft', 'Teint_Dans_La_Masse', 'Carton_gris', 'metal', 'plastique', 'flou', 'autre_refus', 'cartonnette', 'environnement'] 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`=26674397 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','metal','plastique','flou','autre_refus','cartonnette','environnement')) 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`=26674397 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','metal','plastique','flou','autre_refus','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26674397, 'sub_port_id': 26674402, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977734, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'Carton_gris': {'main_port_id': 26674397, 'sub_port_id': 26674403, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977735, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'papier': {'main_port_id': 26674397, 'sub_port_id': 26674404, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977736, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'cartonnette': {'main_port_id': 26674397, 'sub_port_id': 26674405, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977737, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'flou': {'main_port_id': 26674397, 'sub_port_id': 26674406, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977738, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'mal_croppe': {'main_port_id': 26674397, 'sub_port_id': 26674407, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977739, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'metal': {'main_port_id': 26674397, 'sub_port_id': 26674408, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977740, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26674397, 'sub_port_id': 26674409, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977741, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'environnement': {'main_port_id': 26674397, 'sub_port_id': 26674410, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977742, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'plastique': {'main_port_id': 26674397, 'sub_port_id': 26674411, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977743, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'Carton_brun': {'main_port_id': 26674397, 'sub_port_id': 26674412, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977744, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}, 'autre_refus': {'main_port_id': 26674397, 'sub_port_id': 26674413, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977745, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26674402 , 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=26674397 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 (26674402) result : ((1382728379,), (1382728548,), (1382728694,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674403 , 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=26674397 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 (26674403) result : ((1382728303,), (1382728363,), (1382728364,), (1382728365,), (1382728440,), (1382728540,), (1382728541,), (1382728542,), (1382728591,), (1382728682,), (1382728683,), (1382728684,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674404 , 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=26674397 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 (26674404) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674405 , 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=26674397 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 (26674405) result : ((1382728366,), (1382728367,), (1382728368,), (1382728369,), (1382728370,), (1382728372,), (1382728441,), (1382728442,), (1382728592,), (1382728685,), (1382728686,), (1382728687,), (1382728688,), (1382728689,), (1382728690,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674406 , 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=26674397 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 (26674406) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674407 , 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=26674397 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 (26674407) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674408 , 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=26674397 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 (26674408) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674409 , 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=26674397 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 (26674409) result : ((1382728212,), (1382728213,), (1382728214,), (1382728215,), (1382728216,), (1382728297,), (1382728298,), (1382728299,), (1382728300,), (1382728301,), (1382728302,), (1382728306,), (1382728308,), (1382728309,), (1382728350,), (1382728361,), (1382728362,), (1382728438,), (1382728439,), (1382728522,), (1382728528,), (1382728529,), (1382728530,), (1382728531,), (1382728532,), (1382728534,), (1382728536,), (1382728537,), (1382728590,), (1382728680,), (1382728681,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674410 , 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=26674397 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 (26674410) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674411 , 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=26674397 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 (26674411) result : ((1382728446,), (1382728595,), (1382728596,), (1382728693,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674412 , 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=26674397 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 (26674412) result : ((1382728304,), (1382728305,), (1382728374,), (1382728375,), (1382728376,), (1382728377,), (1382728378,), (1382728443,), (1382728444,), (1382728445,), (1382728523,), (1382728545,), (1382728546,), (1382728547,), (1382728593,), (1382728691,), (1382728692,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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 26674413 , 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=26674397 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 (26674413) result : ((1382728538,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26674397) result : ((1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) 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 (1382728200) 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`=26674397 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','metal','plastique','flou','autre_refus','cartonnette','environnement')) 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`=26674397 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','kraft','Teint_Dans_La_Masse','Carton_gris','metal','plastique','flou','autre_refus','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26674397, 'sub_port_id': 26674414, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977746, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'Carton_gris': {'main_port_id': 26674397, 'sub_port_id': 26674415, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977747, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'papier': {'main_port_id': 26674397, 'sub_port_id': 26674416, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977748, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'cartonnette': {'main_port_id': 26674397, 'sub_port_id': 26674417, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977749, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'flou': {'main_port_id': 26674397, 'sub_port_id': 26674418, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977750, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'mal_croppe': {'main_port_id': 26674397, 'sub_port_id': 26674419, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977751, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'metal': {'main_port_id': 26674397, 'sub_port_id': 26674420, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977752, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 26674397, 'sub_port_id': 26674421, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977753, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'environnement': {'main_port_id': 26674397, 'sub_port_id': 26674422, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977754, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'plastique': {'main_port_id': 26674397, 'sub_port_id': 26674423, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977755, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'Carton_brun': {'main_port_id': 26674397, 'sub_port_id': 26674424, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977756, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}, 'autre_refus': {'main_port_id': 26674397, 'sub_port_id': 26674425, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17977757, 'last_updated_at': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 5, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 5, 17, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674408 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674409 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674412 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26674425,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26674413 lien utilise dans velours : https://marlene.fotonower.com/velours/26674414,26674415,26674416,26674417,26674418,26674419,26674420,26674421,26674422,26674423,26674424,26674425?tags=kraft,Carton_gris,papier,cartonnette,flou,mal_croppe,metal,Teint_Dans_La_Masse,environnement,plastique,Carton_brun,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26674397]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] map_info['map_portfolio_photo'] : {26674397: [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602, 1382728586, 1382728582, 1382728578, 1382728573, 1382728569, 1382728566, 1382728555, 1382728551, 1382728543, 1382728533, 1382728520, 1382728518, 1382728516, 1382728514, 1382728510, 1382728508, 1382728496, 1382728492, 1382728487, 1382728482, 1382728478, 1382728426, 1382728420, 1382728416, 1382728409, 1382728396, 1382728393, 1382728388, 1382728382, 1382728380, 1382728371, 1382728351, 1382728347, 1382728345, 1382728342, 1382728341, 1382728338, 1382728320, 1382728317, 1382728314, 1382728294, 1382728289, 1382728284, 1382728279, 1382728274, 1382728270, 1382728260, 1382728256, 1382728251, 1382728246, 1382728244, 1382728238, 1382728209, 1382728206, 1382728203, 1382728201, 1382728200, 1382728181, 1382728179]} final : False mtd_id 4302 list_pids : [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] Looping around the photos to save general results len do output : 1 /26674397. 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, '3682523') ('4302', '26674397', '1382728677', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728674', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728670', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728666', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728663', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728626', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728622', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728614', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728610', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728606', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728602', None, None, None, None, None, '3682523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26674397', "{'kraft': 26674402, 'Carton_gris': 26674403, 'papier': 26674404, 'cartonnette': 26674405, 'flou': 26674406, 'mal_croppe': 26674407, 'metal': 26674408, 'Teint_Dans_La_Masse': 26674409, 'environnement': 26674410, 'plastique': 26674411, 'Carton_brun': 26674412, 'autre_refus': 26674413}", None, None, None, None, '3682523'), ('4302', '26674397', '1382728677', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728674', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728670', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728666', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728663', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728626', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728622', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728614', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728610', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728606', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728602', None, None, None, None, None, '3682523')] time used for this insertion : 0.05767345428466797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.728574275970459 time spend to save output : 0.058057546615600586 total time spend for step 1 : 0.7866318225860596 step2:final Tue Sep 9 05:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (26674397) 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 26674397 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1382728181,1382728179,1382728209,1382728206,1382728203,1382728201,1382728200,1382728260,1382728256,1382728251,1382728246,1382728244,1382728238,1382728294,1382728289,1382728284,1382728279,1382728274,1382728270,1382728320,1382728317,1382728314,1382728351,1382728347,1382728345,1382728342,1382728341,1382728338,1382728396,1382728393,1382728388,1382728382,1382728380,1382728371,1382728426,1382728420,1382728416,1382728409,1382728496,1382728492,1382728487,1382728482,1382728478,1382728520,1382728518,1382728516,1382728514,1382728510,1382728508,1382728555,1382728551,1382728543,1382728533,1382728586,1382728582,1382728578,1382728573,1382728569,1382728566,1382728626,1382728622,1382728614,1382728610,1382728606,1382728602,1382728677,1382728674,1382728670,1382728666,1382728663); 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([26674397]) Inside saveOutput : final : False verbose : True original output for save of step final : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} new output for save of step final : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] map_info['map_portfolio_photo'] : {26674397: [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602, 1382728586, 1382728582, 1382728578, 1382728573, 1382728569, 1382728566, 1382728555, 1382728551, 1382728543, 1382728533, 1382728520, 1382728518, 1382728516, 1382728514, 1382728510, 1382728508, 1382728496, 1382728492, 1382728487, 1382728482, 1382728478, 1382728426, 1382728420, 1382728416, 1382728409, 1382728396, 1382728393, 1382728388, 1382728382, 1382728380, 1382728371, 1382728351, 1382728347, 1382728345, 1382728342, 1382728341, 1382728338, 1382728320, 1382728317, 1382728314, 1382728294, 1382728289, 1382728284, 1382728279, 1382728274, 1382728270, 1382728260, 1382728256, 1382728251, 1382728246, 1382728244, 1382728238, 1382728209, 1382728206, 1382728203, 1382728201, 1382728200, 1382728181, 1382728179]} final : False mtd_id 4302 list_pids : [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] Looping around the photos to save general results len do output : 11 /1382728677.Didn't retrieve data . /1382728674.Didn't retrieve data . /1382728670.Didn't retrieve data . /1382728666.Didn't retrieve data . /1382728663.Didn't retrieve data . /1382728626.Didn't retrieve data . /1382728622.Didn't retrieve data . /1382728614.Didn't retrieve data . /1382728610.Didn't retrieve data . /1382728606.Didn't retrieve data . /1382728602.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, '3682523') ('4302', '26674397', '1382728677', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728674', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728670', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728666', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728663', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728626', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728622', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728614', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728610', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728606', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728602', None, None, None, None, None, '3682523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '26674397', '1382728677', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728674', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728670', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728666', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728663', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728626', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728622', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728614', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728610', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728606', '0.06514147765617946', None, None, None, None, '3682523'), ('4302', '26674397', '1382728602', '0.06514147765617946', None, None, None, None, '3682523')] time used for this insertion : 0.016234159469604492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07999968528747559 time spend to save output : 0.01690959930419922 total time spend for step 2 : 0.0969092845916748 step3:velours_tree Tue Sep 9 05:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {26674397: [{'kraft': 26674402, 'Carton_gris': 26674403, 'papier': 26674404, 'cartonnette': 26674405, 'flou': 26674406, 'mal_croppe': 26674407, 'metal': 26674408, 'Teint_Dans_La_Masse': 26674409, 'environnement': 26674410, 'plastique': 26674411, 'Carton_brun': 26674412, 'autre_refus': 26674413}]} input_args_next_step : {26674397: ()} output_args : {26674397: [{'kraft': 26674402, 'Carton_gris': 26674403, 'papier': 26674404, 'cartonnette': 26674405, 'flou': 26674406, 'mal_croppe': 26674407, 'metal': 26674408, 'Teint_Dans_La_Masse': 26674409, 'environnement': 26674410, 'plastique': 26674411, 'Carton_brun': 26674412, 'autre_refus': 26674413}]} args : 26674397 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 26674402, 'Carton_gris': 26674403, 'papier': 26674404, 'cartonnette': 26674405, 'flou': 26674406, 'mal_croppe': 26674407, 'metal': 26674408, 'Teint_Dans_La_Masse': 26674409, 'environnement': 26674410, 'plastique': 26674411, 'Carton_brun': 26674412, 'autre_refus': 26674413},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26674397) 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([26674397]) 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.3280010223388672 time spend to save output : 5.984306335449219e-05 total time spend for step 3 : 0.3280608654022217 step4:send_mail_cod Tue Sep 9 05:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} input_args_next_step : {1382728677: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728677 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728674 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728670 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728666 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728663 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728626 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728622 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728614 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728610 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728606 depend.output_id : 0 input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ()} output_args : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',)} args : 1382728602 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 : {26674397: [{'kraft': 26674402, 'Carton_gris': 26674403, 'papier': 26674404, 'cartonnette': 26674405, 'flou': 26674406, 'mal_croppe': 26674407, 'metal': 26674408, 'Teint_Dans_La_Masse': 26674409, 'environnement': 26674410, 'plastique': 26674411, 'Carton_brun': 26674412, 'autre_refus': 26674413}]} input_args_next_step : {1382728677: ('0.06514147765617946',), 1382728674: ('0.06514147765617946',), 1382728670: ('0.06514147765617946',), 1382728666: ('0.06514147765617946',), 1382728663: ('0.06514147765617946',), 1382728626: ('0.06514147765617946',), 1382728622: ('0.06514147765617946',), 1382728614: ('0.06514147765617946',), 1382728610: ('0.06514147765617946',), 1382728606: ('0.06514147765617946',), 1382728602: ('0.06514147765617946',), 26674397: ()} output_args : {26674397: [{'kraft': 26674402, 'Carton_gris': 26674403, 'papier': 26674404, 'cartonnette': 26674405, 'flou': 26674406, 'mal_croppe': 26674407, 'metal': 26674408, 'Teint_Dans_La_Masse': 26674409, 'environnement': 26674410, 'plastique': 26674411, 'Carton_brun': 26674412, 'autre_refus': 26674413}]} args : 26674397 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 :12, first value : ('0.06514147765617946',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26674397) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1382728677,1382728674,1382728670,1382728666,1382728663,1382728626,1382728622,1382728614,1382728610,1382728606,1382728602) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1382728602 begin to download photo : 1382728614 begin to download photo : 1382728663 begin to download photo : 1382728674 download finish for photo 1382728614 begin to download photo : 1382728622 download finish for photo 1382728674 begin to download photo : 1382728677 download finish for photo 1382728663 begin to download photo : 1382728666 download finish for photo 1382728602 begin to download photo : 1382728606 download finish for photo 1382728677 download finish for photo 1382728622 begin to download photo : 1382728626 download finish for photo 1382728606 begin to download photo : 1382728610 download finish for photo 1382728666 begin to download photo : 1382728670 download finish for photo 1382728626 download finish for photo 1382728670 download finish for photo 1382728610 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P26674397_09-09-2025_05_30_58.pdf 26674402 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382728379: '1757388084_813223_1382728274_788be1678c4a9eb60be5015c4647d9f8_rle_crop_3952072679_0.png', 1382728548: '1757388326_824992_1382728426_2b4d2614f400f52d9e8f3aed1ae9e8af_rle_crop_3952073921_0.png', 1382728694: '1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074762_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/65221efe16f86cc595424f836867189b_91948015.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/789bab295978edae48a2f511fa61f938_91385260.png change filename to text .imagette266744021757388658/ imagette266744021757388658/1757388084_813223_1382728274_788be1678c4a9eb60be5015c4647d9f8_rle_crop_3952072679_0.png.png imagette266744021757388658/1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074762_0.png.png imagette266744021757388658/1757388326_824992_1382728426_2b4d2614f400f52d9e8f3aed1ae9e8af_rle_crop_3952073921_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0a22aed39a7fb3eb8ac5c1f25f5caa90_21468217.png imagette266744021757388658 26674405 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674405 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382728366: '1757388084_813223_1382728320_69b2bd65856365ef4b6f1a8b5d73c93a_rle_crop_3952072536_0.png', 1382728367: '1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072643_0.png', 1382728368: '1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072657_0.png', 1382728369: '1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072656_0.png', 1382728370: '1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072659_0.png', 1382728372: '1757388084_813223_1382728274_788be1678c4a9eb60be5015c4647d9f8_rle_crop_3952072677_0.png', 1382728441: '1757388186_819356_1382728347_ba201480120cdfcb0017118d2e001f26_rle_crop_3952072822_0.png', 1382728442: '1757388186_819356_1382728338_68bf584f38d51a69c9c2e76ee6f728b9_rle_crop_3952072882_0.png', 1382728592: '1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074156_0.png', 1382728685: '1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074766_0.png', 1382728686: '1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074756_0.png', 1382728687: '1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074754_0.png', 1382728688: '1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074806_0.png', 1382728689: '1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074803_0.png', 1382728690: '1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074804_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/21adf7c16cf7f96362e978786b00ca35_61734350.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/5009cad9d00c19e3521163bfe6cf6780_63660860.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/eea0ee188b1b1b03470df097b7711a12_3045505.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/a77121832320d1a5de59aed9011355a5_79787382.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/db406f4fbf3fe4372759c95282d13dfc_82464499.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0b51ab56cb1a2abbdcb21b859bb2c985_61491647.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/87ebdfbabb8279e4927d03c28751fb82_86906203.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/a04c4fc046ef8fc8ddb85dca28b58d2a_19001146.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f37f24ae6f3b9276bb3006a24e4f088b_52485444.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f2e8f0d5d5cfcdb4b29df04c6963290b_83547031.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/15b89cb52c86d4769afe2dcef0b49995_57110759.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f317705b8ebc8ed692c6903c2a1b4fce_53134082.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/2cb793f78579dba6d487baa6078dfbca_77910180.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/9e1011be55fb87d5421a9de57953840d_37108368.png change filename to text .imagette266744051757388658/ imagette266744051757388658/1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074754_0.png.png imagette266744051757388658/1757388084_813223_1382728320_69b2bd65856365ef4b6f1a8b5d73c93a_rle_crop_3952072536_0.png.png imagette266744051757388658/1757388084_813223_1382728274_788be1678c4a9eb60be5015c4647d9f8_rle_crop_3952072677_0.png.png imagette266744051757388658/1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074156_0.png.png imagette266744051757388658/1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074804_0.png.png imagette266744051757388658/1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074803_0.png.png imagette266744051757388658/1757388186_819356_1382728338_68bf584f38d51a69c9c2e76ee6f728b9_rle_crop_3952072882_0.png.png imagette266744051757388658/1757388186_819356_1382728347_ba201480120cdfcb0017118d2e001f26_rle_crop_3952072822_0.png.png imagette266744051757388658/1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074756_0.png.png imagette266744051757388658/1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072656_0.png.png imagette266744051757388658/1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074766_0.png.png imagette266744051757388658/1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072643_0.png.png imagette266744051757388658/1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072659_0.png.png imagette266744051757388658/1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072657_0.png.png imagette266744051757388658/1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074806_0.png.png imagette266744061757388659/ imagette266744071757388659/ imagette266744081757388659/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e3634df5b8e9de3fc4c9b66274dca9b0_26721703.png imagette266744051757388658 26674406 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266744061757388659 26674407 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674407 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266744071757388659 26674408 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266744081757388659 26674411 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382728446: '1757388186_819356_1382728341_3aa3875ed705fe1a49d66fc666d8490c_rle_crop_3952072874_0.png', 1382728595: '1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074157_0.png', 1382728596: '1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074160_0.png', 1382728693: '1757388567_834123_1382728555_f3e2a6bcf3920a6f59d994634549a4a2_rle_crop_3952074837_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/95eb3fb1db6adf37e02ae1d51337a65a_24351847.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/521596415faff51eb9acb847950a2b8c_82913408.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/706eb10a92971c352daade2ed5672397_82420557.png change filename to text .imagette266744111757388659/ imagette266744111757388659/1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074157_0.png.png imagette266744111757388659/1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074160_0.png.png imagette266744111757388659/1757388186_819356_1382728341_3aa3875ed705fe1a49d66fc666d8490c_rle_crop_3952072874_0.png.png imagette266744111757388659/1757388567_834123_1382728555_f3e2a6bcf3920a6f59d994634549a4a2_rle_crop_3952074837_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/2a5f688bc4624eb7b5b367cc0db3c405_11173358.png imagette266744111757388659 26674413 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674413 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382728538: '1757388326_824992_1382728393_a95fd3c49a3b56d31194b41802ac905f_rle_crop_3952073934_0.png'} change filename to text .imagette266744131757388659/ imagette266744131757388659/1757388326_824992_1382728393_a95fd3c49a3b56d31194b41802ac905f_rle_crop_3952073934_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/7ecc0df6cd2cc4d1957155dfe5cfa8e8_78678054.png imagette266744131757388659 26674403 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382728303: '1757387945_806461_1382728200_77d5a7bd6e855dde5616fad60d62f210_rle_crop_3952072281_0.png', 1382728363: '1757388084_813223_1382728320_69b2bd65856365ef4b6f1a8b5d73c93a_rle_crop_3952072534_0.png', 1382728364: '1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072642_0.png', 1382728365: '1757388084_813223_1382728270_46bb6bc5d8b1a7af125cd84f6623e952_rle_crop_3952072689_0.png', 1382728440: '1757388186_819356_1382728342_ec40f40586d30503fa8793e69be52944_rle_crop_3952072863_0.png', 1382728540: '1757388326_824992_1382728388_b585340039b02234eea027692e493640_rle_crop_3952073951_0.png', 1382728541: '1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073973_0.png', 1382728542: '1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073974_0.png', 1382728591: '1757388426_830657_1382728514_873f78706eadce321bfa6a90c894db68_rle_crop_3952074143_0.png', 1382728682: '1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074758_0.png', 1382728683: '1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074798_0.png', 1382728684: '1757388547_833785_1382728566_ccc8378ee8aa8a020d770aeecd8122dd_rle_crop_3952074816_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/d8792c99d89919008e440199e5c19874_54001023.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/90a645ac2bc2e77e75780efa0edbabaf_52463939.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4f5f74b20ebe980066b230632237feb2_81145344.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/6c705c67df9a48a901f77d93bc7199d2_55274923.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/782ca756b55650213c3bbb818c1c4e9e_90713640.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/1ae8e7d396bb2f33d1c30bfd892dd874_70611141.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f29b914d75b211f1f3d272779264993c_61568096.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/af049c6e67f49a6457d7e5fd804d8b47_55196252.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/822f55cf5dce0ab232034384b5dc0c09_96971653.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/8bfaeae7235cb8b830d1a69b882fa76b_80442624.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/9128e7242b4371b9cc599825bdf94d22_51093520.png change filename to text .imagette266744031757388660/ imagette266744031757388660/1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072642_0.png.png imagette266744031757388660/1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073973_0.png.png imagette266744031757388660/1757388326_824992_1382728388_b585340039b02234eea027692e493640_rle_crop_3952073951_0.png.png imagette266744031757388660/1757388547_833785_1382728566_ccc8378ee8aa8a020d770aeecd8122dd_rle_crop_3952074816_0.png.png imagette266744031757388660/1757388547_833785_1382728573_5142d23446539a1140be09e4a4e146fe_rle_crop_3952074758_0.png.png imagette266744031757388660/1757388084_813223_1382728270_46bb6bc5d8b1a7af125cd84f6623e952_rle_crop_3952072689_0.png.png imagette266744031757388660/1757387945_806461_1382728200_77d5a7bd6e855dde5616fad60d62f210_rle_crop_3952072281_0.png.png imagette266744031757388660/1757388426_830657_1382728514_873f78706eadce321bfa6a90c894db68_rle_crop_3952074143_0.png.png imagette266744031757388660/1757388547_833785_1382728569_0bbcc1dd7340452659242f773dbbdf5a_rle_crop_3952074798_0.png.png imagette266744031757388660/1757388084_813223_1382728320_69b2bd65856365ef4b6f1a8b5d73c93a_rle_crop_3952072534_0.png.png imagette266744031757388660/1757388186_819356_1382728342_ec40f40586d30503fa8793e69be52944_rle_crop_3952072863_0.png.png imagette266744031757388660/1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073974_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/1d0afd090e836128786cbfcdfc4b9cde_77323661.png imagette266744031757388660 26674409 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674409 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382728361: '1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072644_0.png', 1382728681: '1757388547_833785_1382728566_ccc8378ee8aa8a020d770aeecd8122dd_rle_crop_3952074820_0.png', 1382728680: '1757388547_833785_1382728578_4a41ab957715ee0066a444fa84dc8935_rle_crop_3952074749_0.png', 1382728590: '1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074161_0.png', 1382728537: '1757388326_824992_1382728371_c176d11d786a797fec3fff0a10c88117_rle_crop_3952074010_0.png', 1382728536: '1757388326_824992_1382728380_7587e50d51a9d9545917bc2d3506edff_rle_crop_3952073990_0.png', 1382728534: '1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073980_0.png', 1382728532: '1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073977_0.png', 1382728531: '1757388326_824992_1382728388_b585340039b02234eea027692e493640_rle_crop_3952073957_0.png', 1382728530: '1757388326_824992_1382728388_b585340039b02234eea027692e493640_rle_crop_3952073955_0.png', 1382728529: '1757388326_824992_1382728393_a95fd3c49a3b56d31194b41802ac905f_rle_crop_3952073936_0.png', 1382728528: '1757388326_824992_1382728393_a95fd3c49a3b56d31194b41802ac905f_rle_crop_3952073945_0.png', 1382728522: '1757388307_824603_1382728409_c80c042db3da1ce8203e8090a30bb989_rle_crop_3952073723_0.png', 1382728439: '1757388186_819356_1382728345_46d2150ee19eb5dbf2c4580923dd35b8_rle_crop_3952072839_0.png', 1382728438: '1757388186_819356_1382728347_ba201480120cdfcb0017118d2e001f26_rle_crop_3952072828_0.png', 1382728362: '1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072650_0.png', 1382728212: '1757387825_800566_1382728181_1930f5d7e4027cfb92380d68ecba7974_rle_crop_3952071909_0.png', 1382728350: '1757388066_811874_1382728317_7edbdffa7e98a8820078993fb35d7b46_rle_crop_3952072379_0.png', 1382728309: '1757387966_806831_1382728209_78f9b0d94f634ca45dfb4a309d3d3f95_rle_crop_3952072336_0.png', 1382728308: '1757387966_806831_1382728209_78f9b0d94f634ca45dfb4a309d3d3f95_rle_crop_3952072335_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/53f0f63c0c565c1d481bb53836395fa9_84494575.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/c094ab4c3d6e2e93fcae80de831f6b55_40407456.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/477e278c2b4b931f1f69dbfdc228d99f_8072740.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/8d7ead7ae24a663aa887c5e069290bb8_19568696.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0d30631381fc88f11d09a281bb450f2e_49109180.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/dda04b81d07c25afb9310152ed10d86b_5286731.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0bd5df115e84cf52b33889b6d87fa296_68179024.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/2e79ad844e9685644c2f36fab7921438_87783284.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/357258264f12bddd3375dcb3fa885c54_4144336.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/9a459d9e12b2a75c94370fdbb3bd322a_19571718.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/25cb55915223a47cac2a44e9fe7fd55f_89839965.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/03264d489759c64b08d529e7ce1028d1_46809376.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/938ac68b009e5113b07bec13e77bba95_23670555.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e08ce89c39800680809074f396c4c6cf_91571767.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4da55fefcca6ea865b76d158fb93e6cd_10309262.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/852b4762829c610242cc7647eca30cef_12668413.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/dd84bcd2abd575bf8aa466d5228adc4f_42373053.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e5058330bd5216beac3d9999516e3c21_79868835.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4a20cd42774612aa220a8bf9234e9b27_43607094.png change filename to text .imagette266744091757388660/ imagette266744091757388660/1757388326_824992_1382728371_c176d11d786a797fec3fff0a10c88117_rle_crop_3952074010_0.png.png imagette266744091757388660/1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072644_0.png.png imagette266744091757388660/1757388547_833785_1382728578_4a41ab957715ee0066a444fa84dc8935_rle_crop_3952074749_0.png.png imagette266744091757388660/1757388186_819356_1382728345_46d2150ee19eb5dbf2c4580923dd35b8_rle_crop_3952072839_0.png.png imagette266744091757388660/1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073980_0.png.png imagette266744091757388660/1757388307_824603_1382728409_c80c042db3da1ce8203e8090a30bb989_rle_crop_3952073723_0.png.png imagette266744091757388660/1757388326_824992_1382728393_a95fd3c49a3b56d31194b41802ac905f_rle_crop_3952073936_0.png.png imagette266744091757388660/1757388066_811874_1382728317_7edbdffa7e98a8820078993fb35d7b46_rle_crop_3952072379_0.png.png imagette266744091757388660/1757388326_824992_1382728380_7587e50d51a9d9545917bc2d3506edff_rle_crop_3952073990_0.png.png imagette266744091757388660/1757387966_806831_1382728209_78f9b0d94f634ca45dfb4a309d3d3f95_rle_crop_3952072336_0.png.png imagette266744091757388660/1757388547_833785_1382728566_ccc8378ee8aa8a020d770aeecd8122dd_rle_crop_3952074820_0.png.png imagette266744091757388660/1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072650_0.png.png imagette266744091757388660/1757387825_800566_1382728181_1930f5d7e4027cfb92380d68ecba7974_rle_crop_3952071909_0.png.png imagette266744091757388660/1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073977_0.png.png imagette266744091757388660/1757388186_819356_1382728347_ba201480120cdfcb0017118d2e001f26_rle_crop_3952072828_0.png.png imagette266744091757388660/1757388326_824992_1382728388_b585340039b02234eea027692e493640_rle_crop_3952073955_0.png.png imagette266744091757388660/1757388326_824992_1382728393_a95fd3c49a3b56d31194b41802ac905f_rle_crop_3952073945_0.png.png imagette266744091757388660/1757388326_824992_1382728388_b585340039b02234eea027692e493640_rle_crop_3952073957_0.png.png imagette266744091757388660/1757388426_830657_1382728508_6e17f979161db88edf1c7b401c530cc2_rle_crop_3952074161_0.png.png imagette266744091757388660/1757387966_806831_1382728209_78f9b0d94f634ca45dfb4a309d3d3f95_rle_crop_3952072335_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e98359cce1482e6d1395fc580c743a87_7835788.png imagette266744091757388660 26674412 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674412 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382728444: '1757388186_819356_1382728345_46d2150ee19eb5dbf2c4580923dd35b8_rle_crop_3952072843_0.png', 1382728692: '1757388547_833785_1382728566_ccc8378ee8aa8a020d770aeecd8122dd_rle_crop_3952074818_0.png', 1382728691: '1757388547_833785_1382728578_4a41ab957715ee0066a444fa84dc8935_rle_crop_3952074747_0.png', 1382728593: '1757388426_830657_1382728518_4558982955e2f459fc0f18430288230c_rle_crop_3952074120_0.png', 1382728547: '1757388326_824992_1382728371_c176d11d786a797fec3fff0a10c88117_rle_crop_3952074004_0.png', 1382728546: '1757388326_824992_1382728380_7587e50d51a9d9545917bc2d3506edff_rle_crop_3952073991_0.png', 1382728545: '1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073975_0.png', 1382728523: '1757388307_824603_1382728416_7de7140edc0eb19eead34395cf3eab90_rle_crop_3952073711_0.png', 1382728445: '1757388186_819356_1382728345_46d2150ee19eb5dbf2c4580923dd35b8_rle_crop_3952072836_0.png', 1382728304: '1757387945_806461_1382728203_7838ff03b4d553a4c66fa55fafe87d6b_rle_crop_3952072264_0.png', 1382728443: '1757388186_819356_1382728347_ba201480120cdfcb0017118d2e001f26_rle_crop_3952072827_0.png', 1382728378: '1757388084_813223_1382728270_46bb6bc5d8b1a7af125cd84f6623e952_rle_crop_3952072692_0.png', 1382728377: '1757388084_813223_1382728274_788be1678c4a9eb60be5015c4647d9f8_rle_crop_3952072682_0.png', 1382728376: '1757388084_813223_1382728279_4c6561955e1817f41492706eb79c5792_rle_crop_3952072666_0.png', 1382728375: '1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072660_0.png', 1382728374: '1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072645_0.png', 1382728305: '1757387945_806461_1382728201_a4cfcf7060271e074acddfe7e3be8d3c_rle_crop_3952072274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/7f3b1bad24201c212df71321f8dde244_73703077.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/d5f0bd96435d645e4fd205869f6dfe58_74920555.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0e68bca0b71a9a8120a88e3231898b70_19227271.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/8d683e6ce80ac77abfcb3f9f27731d45_46222449.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0ad6f8302c4c7de4f02d8ef2f75ad8df_13870306.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/ace76b2c3a30bdfc28e02cabc8abc635_27374442.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/15fd4ecfae04b5bb80b6ac67751c6433_69416159.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/78a5bb7fbf9029d5bb3350fc0c30ab49_94876032.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/7084a0e1783494c47afd66b68f4f7b42_31373937.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/ce52e70ff76719a3be282f430d979de4_23546804.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/97f4060c77267a94fa110ac7f3ef179e_22280499.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/8d4e7589199023d900def3551d0dc0e0_36009411.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/6ae440301cab3b6aa5254df53e97c18e_26575169.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0733f2ba3d0b474e03c81422d5aa92eb_72633594.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/2569392e23ef549c3d55bf2533dea845_3745807.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/fc7a825e072c5ca50024ff9dd8e6569e_17518343.png change filename to text .imagette266744121757388662/ imagette266744121757388662/1757388186_819356_1382728345_46d2150ee19eb5dbf2c4580923dd35b8_rle_crop_3952072836_0.png.png imagette266744121757388662/1757388547_833785_1382728578_4a41ab957715ee0066a444fa84dc8935_rle_crop_3952074747_0.png.png imagette266744121757388662/1757388084_813223_1382728274_788be1678c4a9eb60be5015c4647d9f8_rle_crop_3952072682_0.png.png imagette266744121757388662/1757388326_824992_1382728380_7587e50d51a9d9545917bc2d3506edff_rle_crop_3952073991_0.png.png imagette266744121757388662/1757387945_806461_1382728203_7838ff03b4d553a4c66fa55fafe87d6b_rle_crop_3952072264_0.png.png imagette266744121757388662/1757388084_813223_1382728270_46bb6bc5d8b1a7af125cd84f6623e952_rle_crop_3952072692_0.png.png imagette266744121757388662/1757387945_806461_1382728201_a4cfcf7060271e074acddfe7e3be8d3c_rle_crop_3952072274_0.png.png imagette266744121757388662/1757388547_833785_1382728566_ccc8378ee8aa8a020d770aeecd8122dd_rle_crop_3952074818_0.png.png imagette266744121757388662/1757388084_813223_1382728284_f7cb7fe256b427e9da68d6dcb26533c6_rle_crop_3952072660_0.png.png imagette266744121757388662/1757388084_813223_1382728279_4c6561955e1817f41492706eb79c5792_rle_crop_3952072666_0.png.png imagette266744121757388662/1757388186_819356_1382728345_46d2150ee19eb5dbf2c4580923dd35b8_rle_crop_3952072843_0.png.png imagette266744121757388662/1757388186_819356_1382728347_ba201480120cdfcb0017118d2e001f26_rle_crop_3952072827_0.png.png imagette266744121757388662/1757388084_813223_1382728289_4e6ded6b4fd81cccced9a53ba7ef30af_rle_crop_3952072645_0.png.png imagette266744121757388662/1757388307_824603_1382728416_7de7140edc0eb19eead34395cf3eab90_rle_crop_3952073711_0.png.png imagette266744121757388662/1757388426_830657_1382728518_4558982955e2f459fc0f18430288230c_rle_crop_3952074120_0.png.png imagette266744121757388662/1757388326_824992_1382728382_5ae3f7136c0b9bf4757b0b7f55157fb6_rle_crop_3952073975_0.png.png imagette266744121757388662/1757388326_824992_1382728371_c176d11d786a797fec3fff0a10c88117_rle_crop_3952074004_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4c25aa59f07432a8e8a296dabe199f89_88663247.png imagette266744121757388662 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26674397 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26674414,26674415,26674416,26674417,26674418,26674419,26674420,26674421,26674422,26674423,26674424,26674425?tags=kraft,Carton_gris,papier,cartonnette,flou,mal_croppe,metal,Teint_Dans_La_Masse,environnement,plastique,Carton_brun,autre_refus your option no_mail is active, we will not send the real mail to your client args[1382728677] : ('0.06514147765617946',) no score found for photo 1382728677 We are sending mail with results at report@fotonower.com args[1382728674] : ('0.06514147765617946',) no score found for photo 1382728674 We are sending mail with results at report@fotonower.com args[1382728670] : ('0.06514147765617946',) no score found for photo 1382728670 We are sending mail with results at report@fotonower.com args[1382728666] : ('0.06514147765617946',) no score found for photo 1382728666 We are sending mail with results at report@fotonower.com args[1382728663] : ('0.06514147765617946',) no score found for photo 1382728663 We are sending mail with results at report@fotonower.com args[1382728626] : ('0.06514147765617946',) no score found for photo 1382728626 We are sending mail with results at report@fotonower.com args[1382728622] : ('0.06514147765617946',) no score found for photo 1382728622 We are sending mail with results at report@fotonower.com args[1382728614] : ('0.06514147765617946',) no score found for photo 1382728614 We are sending mail with results at report@fotonower.com args[1382728610] : ('0.06514147765617946',) no score found for photo 1382728610 We are sending mail with results at report@fotonower.com args[1382728606] : ('0.06514147765617946',) no score found for photo 1382728606 We are sending mail with results at report@fotonower.com args[1382728602] : ('0.06514147765617946',) no score found for photo 1382728602 We are sending mail with results at report@fotonower.com refus_total : 0.06514147765617946 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674397 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_P26674397_09-09-2025_05_30_58.pdf results_Auto_P26674397_09-09-2025_05_30_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_05_30_58.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','26674397','results_Auto_P26674397_09-09-2025_05_30_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_05_30_58.pdf','pdf','','0.29','0.06514147765617946') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26674397]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] map_info['map_portfolio_photo'] : {26674397: [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602, 1382728586, 1382728582, 1382728578, 1382728573, 1382728569, 1382728566, 1382728555, 1382728551, 1382728543, 1382728533, 1382728520, 1382728518, 1382728516, 1382728514, 1382728510, 1382728508, 1382728496, 1382728492, 1382728487, 1382728482, 1382728478, 1382728426, 1382728420, 1382728416, 1382728409, 1382728396, 1382728393, 1382728388, 1382728382, 1382728380, 1382728371, 1382728351, 1382728347, 1382728345, 1382728342, 1382728341, 1382728338, 1382728320, 1382728317, 1382728314, 1382728294, 1382728289, 1382728284, 1382728279, 1382728274, 1382728270, 1382728260, 1382728256, 1382728251, 1382728246, 1382728244, 1382728238, 1382728209, 1382728206, 1382728203, 1382728201, 1382728200, 1382728181, 1382728179]} final : False mtd_id 4302 list_pids : [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] 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, '3682523') ('4302', '26674397', '1382728677', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728674', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728670', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728666', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728663', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728626', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728622', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728614', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728610', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728606', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728602', None, None, None, None, None, '3682523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '26674397', '1382728677', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728674', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728670', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728666', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728663', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728626', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728622', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728614', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728610', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728606', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728602', None, None, None, None, None, '3682523')] time used for this insertion : 0.40102148056030273 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.274284362792969 time spend to save output : 0.4012622833251953 total time spend for step 4 : 6.675546646118164 step5:split_time_score Tue Sep 9 05:31:04 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 : ['26674397'] 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 : [('26674397',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26674397) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1382728674: {'path': 'temp/1757388658_279542_1382728674_f44738feda95780bdbb31dee366410b7.jpg', 'extension': 'jpg'}, 1382728677: {'path': 'temp/1757388658_279542_1382728677_ff82d5000017acd5c600791560707ac4.jpg', 'extension': 'jpg'}, 1382728614: {'path': 'temp/1757388658_279542_1382728614_7c2effb079ce7c195d6c1f0f02255d6f.jpg', 'extension': 'jpg'}, 1382728622: {'path': 'temp/1757388658_279542_1382728622_ffed09dd15b7bd1d329215a28201adde.jpg', 'extension': 'jpg'}, 1382728626: {'path': 'temp/1757388658_279542_1382728626_fb8ceea595e5f96e7ca701844fd060b0.jpg', 'extension': 'jpg'}, 1382728663: {'path': 'temp/1757388658_279542_1382728663_c4ab3f59bd0819ae1692e14cf544ac60.jpg', 'extension': 'jpg'}, 1382728666: {'path': 'temp/1757388658_279542_1382728666_0192e8f36a2bcda93ff7e7ea166100cf.jpg', 'extension': 'jpg'}, 1382728670: {'path': 'temp/1757388658_279542_1382728670_99a463a4e36d5a0318eb291642a98421.jpg', 'extension': 'jpg'}, 1382728602: {'path': 'temp/1757388658_279542_1382728602_a83b408150f6a84ed57411190f37f8a2.jpg', 'extension': 'jpg'}, 1382728606: {'path': 'temp/1757388658_279542_1382728606_2f11e4fe497d57cbfff186c715bf585b.jpg', 'extension': 'jpg'}, 1382728610: {'path': 'temp/1757388658_279542_1382728610_6cdf6108fcc3f37bc116b3659edeedaf.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 = 26674397; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26674397 group by h (('05', 70),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26674397 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 (26674397) 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 (26674397) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09092025 26674397 Nombre de photos uploadées : 70 / 23040 (0%) 09092025 26674397 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 09092025 26674397 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1382728181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/1930f5d7e4027cfb92380d68ecba7974.jpg', 'username': None, 'uploaded_at': 1757387767, 'text': 'image_09092025_05_15_35_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382728179, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/b7fefdc6f1278376507bdfadfefd8800.jpg', 'username': None, 'uploaded_at': 1757387767, 'text': 'image_09092025_05_15_44_009121m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1382728209, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/78f9b0d94f634ca45dfb4a309d3d3f95.jpg', 'username': None, 'uploaded_at': 1757387828, 'text': 'image_09092025_05_15_54_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382728206, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/1e81f5ff3c11ba128e82defaeec95560.jpg', 'username': None, 'uploaded_at': 1757387828, 'text': 'image_09092025_05_16_04_010155m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 1.1920928955078125e-05 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030927658081054688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26674397, '2025-09-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2253579,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21422100067138672 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= 2253579 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26665951, 'dashboard_result_id': 14926480, '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_P26665951_09-09-2025_00_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26666470, 'dashboard_result_id': 14926481, '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_P26666470_09-09-2025_00_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26666997, 'dashboard_result_id': 14926482, '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_P26666997_09-09-2025_00_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26667314, 'dashboard_result_id': 14926483, '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_P26667314_09-09-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26668399, 'dashboard_result_id': 14926484, '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_P26668399_09-09-2025_01_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26668763, 'dashboard_result_id': 14926485, '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_P26668763_09-09-2025_02_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26669124, 'dashboard_result_id': 14926486, '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_P26669124_09-09-2025_02_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26669820, 'dashboard_result_id': 14926487, '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_P26669820_09-09-2025_02_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26670286, 'dashboard_result_id': 14926488, '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_P26670286_09-09-2025_02_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26670744, 'dashboard_result_id': 14926489, '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_P26670744_09-09-2025_03_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26671134, 'dashboard_result_id': 14926490, '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_P26671134_09-09-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26671697, 'dashboard_result_id': 14926491, '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_P26671697_09-09-2025_03_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26672133, 'dashboard_result_id': 14926492, '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_P26672133_09-09-2025_03_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26672645, 'dashboard_result_id': 14926493, '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_P26672645_09-09-2025_04_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26673061, 'dashboard_result_id': 14926494, '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_P26673061_09-09-2025_04_09_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26674196, 'dashboard_result_id': 14926495, '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_P26674196_09-09-2025_05_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2262283, 'mtr_portfolio_id': 26674397, 'dashboard_result_id': 14926496, '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_P26674397_09-09-2025_05_28_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, '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 = 26665951 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': 3681317, 'mtr_portfolio_id': 26665951, 'created_at': datetime.datetime(2025, 9, 9, 0, 18, 57), 'result': '0.046662394749032415', 'result_long': None, 'result_double': None}] Qualite : 0.046662394749032415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26665951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_00_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26665951 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_P26665951_09-09-2025_00_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}" where mtr_portfolio_id = 26665951 and dashboard_run_id = 2262283 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`=26665951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926480, 0.046662394749032415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_00_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, '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 = 26666470 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': 3681360, 'mtr_portfolio_id': 26666470, 'created_at': datetime.datetime(2025, 9, 9, 0, 34, 59), 'result': '0.054882241324818885', 'result_long': None, 'result_double': None}] Qualite : 0.054882241324818885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_00_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666470 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_P26666470_09-09-2025_00_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}" where mtr_portfolio_id = 26666470 and dashboard_run_id = 2262283 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`=26666470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926481, 0.054882241324818885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_00_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, '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 = 26666997 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': 3681419, 'mtr_portfolio_id': 26666997, 'created_at': datetime.datetime(2025, 9, 9, 0, 48, 58), 'result': '0.061625099150971356', 'result_long': None, 'result_double': None}] Qualite : 0.061625099150971356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_00_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666997 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_P26666997_09-09-2025_00_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}" where mtr_portfolio_id = 26666997 and dashboard_run_id = 2262283 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`=26666997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926482, 0.061625099150971356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_00_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, '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 = 26667314 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': 3681455, 'mtr_portfolio_id': 26667314, 'created_at': datetime.datetime(2025, 9, 9, 1, 33), 'result': '0.07097795704242905', 'result_long': None, 'result_double': None}] Qualite : 0.07097795704242905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26667314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_01_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26667314 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_P26667314_09-09-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}" where mtr_portfolio_id = 26667314 and dashboard_run_id = 2262283 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`=26667314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926483, 0.07097795704242905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, '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 = 26668399 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': 3681594, 'mtr_portfolio_id': 26668399, 'created_at': datetime.datetime(2025, 9, 9, 1, 48, 57), 'result': '0.04110695882135456', 'result_long': None, 'result_double': None}] Qualite : 0.04110695882135456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_01_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668399 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_P26668399_09-09-2025_01_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}" where mtr_portfolio_id = 26668399 and dashboard_run_id = 2262283 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`=26668399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926484, 0.04110695882135456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_01_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, '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 = 26668763 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': 3681635, 'mtr_portfolio_id': 26668763, 'created_at': datetime.datetime(2025, 9, 9, 2, 2, 57), 'result': '0.028900682519440953', 'result_long': None, 'result_double': None}] Qualite : 0.028900682519440953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_02_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668763 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_P26668763_09-09-2025_02_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}" where mtr_portfolio_id = 26668763 and dashboard_run_id = 2262283 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`=26668763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926485, 0.028900682519440953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_02_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, '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 = 26669124 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': 3681698, 'mtr_portfolio_id': 26669124, 'created_at': datetime.datetime(2025, 9, 9, 2, 19, 1), 'result': '0.039077998133629235', 'result_long': None, 'result_double': None}] Qualite : 0.039077998133629235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_02_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669124 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_P26669124_09-09-2025_02_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}" where mtr_portfolio_id = 26669124 and dashboard_run_id = 2262283 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`=26669124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926486, 0.039077998133629235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_02_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, '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 = 26669820 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': 3681756, 'mtr_portfolio_id': 26669820, 'created_at': datetime.datetime(2025, 9, 9, 2, 33, 27), 'result': '0.03782897775463108', 'result_long': None, 'result_double': None}] Qualite : 0.03782897775463108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_02_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669820 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_P26669820_09-09-2025_02_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}" where mtr_portfolio_id = 26669820 and dashboard_run_id = 2262283 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`=26669820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926487, 0.03782897775463108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_02_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, '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 = 26670286 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': 3681808, 'mtr_portfolio_id': 26670286, 'created_at': datetime.datetime(2025, 9, 9, 2, 48, 58), 'result': '0.04562831883154974', 'result_long': None, 'result_double': None}] Qualite : 0.04562831883154974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670286 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_P26670286_09-09-2025_02_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}" where mtr_portfolio_id = 26670286 and dashboard_run_id = 2262283 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`=26670286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926488, 0.04562831883154974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_02_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, '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 = 26670744 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': 3681875, 'mtr_portfolio_id': 26670744, 'created_at': datetime.datetime(2025, 9, 9, 3, 4, 57), 'result': '0.0625638514028179', 'result_long': None, 'result_double': None}] Qualite : 0.0625638514028179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_03_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670744 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_P26670744_09-09-2025_03_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}" where mtr_portfolio_id = 26670744 and dashboard_run_id = 2262283 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`=26670744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926489, 0.0625638514028179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_03_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, '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 = 26671134 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': 3681967, 'mtr_portfolio_id': 26671134, 'created_at': datetime.datetime(2025, 9, 9, 3, 18, 56), 'result': '0.040897300538202924', 'result_long': None, 'result_double': None}] Qualite : 0.040897300538202924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_03_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671134 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_P26671134_09-09-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}" where mtr_portfolio_id = 26671134 and dashboard_run_id = 2262283 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`=26671134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926490, 0.040897300538202924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, '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 = 26671697 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': 3682052, 'mtr_portfolio_id': 26671697, 'created_at': datetime.datetime(2025, 9, 9, 3, 32, 57), 'result': '0.056151272843762666', 'result_long': None, 'result_double': None}] Qualite : 0.056151272843762666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_03_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671697 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_P26671697_09-09-2025_03_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, 'pht': 3726}}" where mtr_portfolio_id = 26671697 and dashboard_run_id = 2262283 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`=26671697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926491, 0.056151272843762666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_03_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, '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 = 26672133 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': 3682137, 'mtr_portfolio_id': 26672133, 'created_at': datetime.datetime(2025, 9, 9, 3, 48, 58), 'result': '0.0744359609918102', 'result_long': None, 'result_double': None}] Qualite : 0.0744359609918102 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26672133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672133_09-09-2025_03_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26672133 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_P26672133_09-09-2025_03_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, 'pht': 3726}}" where mtr_portfolio_id = 26672133 and dashboard_run_id = 2262283 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`=26672133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926492, 0.0744359609918102, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672133_09-09-2025_03_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, '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 = 26672645 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': 3682228, 'mtr_portfolio_id': 26672645, 'created_at': datetime.datetime(2025, 9, 9, 4, 3, 28), 'result': '0.03191053281076769', 'result_long': None, 'result_double': None}] Qualite : 0.03191053281076769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26672645 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672645_09-09-2025_04_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26672645 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_P26672645_09-09-2025_04_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, 'pht': 3726}}" where mtr_portfolio_id = 26672645 and dashboard_run_id = 2262283 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`=26672645 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926493, 0.03191053281076769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672645_09-09-2025_04_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, '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 = 26673061 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': 3682323, 'mtr_portfolio_id': 26673061, 'created_at': datetime.datetime(2025, 9, 9, 4, 9), 'result': '0.043422380603753884', 'result_long': None, 'result_double': None}] Qualite : 0.043422380603753884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26673061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26673061_09-09-2025_04_09_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26673061 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_P26673061_09-09-2025_04_09_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, 'pht': 3726}}" where mtr_portfolio_id = 26673061 and dashboard_run_id = 2262283 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`=26673061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926494, 0.043422380603753884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26673061_09-09-2025_04_09_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, '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 = 26674196 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': 3682504, 'mtr_portfolio_id': 26674196, 'created_at': datetime.datetime(2025, 9, 9, 5, 16, 59), 'result': '0.05176324258719917', 'result_long': None, 'result_double': None}] Qualite : 0.05176324258719917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674196_09-09-2025_05_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674196 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_P26674196_09-09-2025_05_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, 'pht': 3726}}" where mtr_portfolio_id = 26674196 and dashboard_run_id = 2262283 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`=26674196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926495, 0.05176324258719917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674196_09-09-2025_05_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, '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 = 26674397 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': 3682523, 'mtr_portfolio_id': 26674397, 'created_at': datetime.datetime(2025, 9, 9, 5, 30, 57), 'result': '0.06514147765617946', 'result_long': None, 'result_double': None}] Qualite : 0.06514147765617946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_05_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674397 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_P26674397_09-09-2025_05_30_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, 'pht': 3726}}" where mtr_portfolio_id = 26674397 and dashboard_run_id = 2262283 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`=26674397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14926496, 0.06514147765617946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_05_30_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, '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 (26665951,26666470,26666997,26667314,26668399,26668763,26669124,26669820,26670286,26670744,26671134,26671697,26672133,26672645,26673061,26674196,26674397) result : ((1382694087,), (1382694183,), (1382694245,), (1382694319,), (1382694895,), (1382694983,), (1382695070,), (1382695164,), (1382695818,), (1382695895,), (1382695984,), (1382696065,), (1382696130,), (1382696190,), (1382696400,), (1382696407,), (1382696438,), (1382696470,), (1382696837,), (1382696868,), (1382696928,), (1382696966,), (1382696999,), (1382697040,), (1382697100,), (1382697146,), (1382697174,), (1382697194,), (1382697215,), (1382697218,), (1382697224,), (1382697271,), (1382697272,), (1382697291,), (1382697326,), (1382697385,), (1382697470,), (1382697558,), (1382697652,), (1382698439,), (1382698441,), (1382698443,), (1382698446,), (1382698451,), (1382698455,), (1382698698,), (1382698753,), (1382698793,), (1382698825,), (1382698855,), (1382698894,), (1382698911,), (1382698928,), (1382698938,), (1382698948,), (1382698964,), (1382699012,), (1382699014,), (1382699017,), (1382699021,), (1382699030,), (1382699038,), (1382699054,), (1382699056,), (1382699058,), (1382699060,), (1382699061,), (1382699073,), (1382699077,), (1382699081,), (1382699083,), (1382699089,), (1382699095,), (1382699099,), (1382699104,), (1382699110,), (1382699281,), (1382699199,), (1382699230,), (1382699263,), (1382699321,), (1382699322,), (1382699324,), (1382699328,), (1382699395,), (1382699396,), (1382699398,), (1382699403,), (1382699429,), (1382699433,), (1382699438,), (1382699441,), (1382699466,), (1382699467,), (1382699468,), (1382699473,), (1382699477,), (1382699484,), (1382699612,), (1382699647,), (1382699675,), (1382699722,), (1382700012,), (1382700045,), (1382700074,), (1382700103,), (1382700433,), (1382700465,), (1382700502,), (1382700533,), (1382700741,), (1382700750,), (1382700754,), (1382700756,), (1382700958,), (1382700969,), (1382700971,), (1382700974,), (1382700978,), (1382700981,), (1382701248,), (1382701333,), (1382701237,), (1382701240,), (1382701241,), (1382701244,), (1382701310,), (1382701311,), (1382701313,), (1382701318,), (1382701321,), (1382701324,), (1382701330,), (1382701341,), (1382701347,), (1382701362,), (1382701364,), (1382701366,), (1382701369,), (1382701375,), (1382701408,), (1382701411,), (1382701412,), (1382701416,), (1382701419,), (1382701439,), (1382701441,), (1382701449,), (1382701453,), (1382701463,), (1382701520,), (1382701522,), (1382701525,), (1382701530,), (1382701549,), (1382701552,), (1382701555,), (1382701589,), (1382701591,), (1382701592,), (1382701595,), (1382701616,), (1382701617,), (1382701619,), (1382701623,), (1382701626,), (1382701631,), (1382701641,), (1382701642,), (1382701643,), (1382701645,), (1382701651,), (1382701663,), (1382701668,), (1382701673,), (1382701677,), (1382701680,), (1382701685,), (1382701689,), (1382701690,), (1382701692,), (1382701694,), (1382701696,), (1382701707,), (1382701710,), (1382701714,), (1382701716,), (1382701718,), (1382701720,), (1382701734,), (1382701741,), (1382701744,), (1382701747,), (1382701749,), (1382701751,), (1382701762,), (1382701769,), (1382701773,), (1382701777,), (1382701784,), (1382701755,), (1382701758,), (1382701791,), (1382701794,), (1382701798,), (1382701802,), (1382701805,), (1382701808,), (1382701828,), (1382701830,), (1382701832,), (1382701835,), (1382701841,), (1382701854,), (1382701856,), (1382701908,), (1382701922,), (1382701925,), (1382701929,), (1382701933,), (1382701960,), (1382701962,), (1382701966,), (1382701971,), (1382701975,), (1382702002,), (1382702004,), (1382702005,), (1382702007,), (1382702013,), (1382702035,), (1382702062,), (1382702067,), (1382702072,), (1382702076,), (1382702080,), (1382702087,), (1382702090,), (1382702092,), (1382702097,), (1382702101,), (1382702115,), (1382702119,), (1382702123,), (1382702126,), (1382702156,), (1382702160,), (1382702162,), (1382702165,), (1382702185,), (1382702187,), (1382702189,), (1382702192,), (1382702195,), (1382702218,), (1382702219,), (1382702230,), (1382702237,), (1382702241,), (1382702246,), (1382706399,), (1382706429,), (1382706431,), (1382706513,), (1382706515,), (1382706516,), (1382706519,), (1382706522,), (1382706544,), (1382706545,), (1382706548,), (1382706552,), (1382706575,), (1382706580,), (1382706585,), (1382706589,), (1382706595,), (1382706609,), (1382706615,), (1382706619,), (1382706636,), (1382706637,), (1382706638,), (1382706640,), (1382706645,), (1382706672,), (1382706674,), (1382706676,), (1382706680,), (1382706685,), (1382706700,), (1382706703,), (1382706706,), (1382706708,), (1382706735,), (1382706765,), (1382706769,), (1382706774,), (1382706805,), (1382706808,), (1382706810,), (1382706813,), (1382706872,), (1382706874,), (1382706876,), (1382706880,), (1382706885,), (1382706914,), (1382706915,), (1382706917,), (1382706920,), (1382706923,), (1382706940,), (1382706941,), (1382706943,), (1382706946,), (1382706980,), (1382706963,), (1382706965,), (1382706968,), (1382706971,), (1382706976,), (1382706990,), (1382706992,), (1382706995,), (1382706999,), (1382707003,), (1382707006,), (1382707022,), (1382707028,), (1382707029,), (1382707109,), (1382707112,), (1382707116,), (1382707120,), (1382707124,), (1382707146,), (1382707147,), (1382707148,), (1382707150,), (1382707155,), (1382707174,), (1382707397,), (1382707425,), (1382707452,), (1382707483,), (1382707513,), (1382707747,), (1382707773,), (1382707885,), (1382707887,), (1382707888,), (1382708041,), (1382708071,), (1382708103,), (1382708139,), (1382708321,), (1382708324,), (1382708327,), (1382708343,), (1382708345,), (1382708348,), (1382708372,), (1382708375,), (1382708378,), (1382708389,), (1382708419,), (1382708421,), (1382708423,), (1382708745,), (1382708775,), (1382708807,), (1382708837,), (1382708869,), (1382709572,), (1382709404,), (1382709461,), (1382709516,), (1382709816,), (1382709853,), (1382709878,), (1382710151,), (1382710173,), (1382710205,), (1382710216,), (1382710238,), (1382710240,), (1382710248,), (1382710250,), (1382710251,), (1382710254,), (1382710257,), (1382710261,), (1382710266,), (1382710391,), (1382710422,), (1382710454,), (1382710493,), (1382710527,), (1382710561,), (1382710684,), (1382710715,), (1382711170,), (1382711231,), (1382711643,), (1382711682,), (1382711742,), (1382711773,), (1382712106,), (1382712136,), (1382712141,), (1382712162,), (1382712216,), (1382712277,), (1382712279,), (1382712282,), (1382712286,), (1382712317,), (1382712333,), (1382712337,), (1382712342,), (1382712347,), (1382712352,), (1382712568,), (1382712599,), (1382712630,), (1382712663,), (1382712694,), (1382712729,), (1382712836,), (1382712861,), (1382712863,), (1382712865,), (1382712931,), (1382712965,), (1382712974,), (1382712986,), (1382713010,), (1382713049,), (1382713052,), (1382713058,), (1382713062,), (1382713064,), (1382713066,), (1382713103,), (1382713269,), (1382713304,), (1382713423,), (1382713077,), (1382713087,), (1382713094,), (1382713099,), (1382713102,), (1382713125,), (1382713159,), (1382713190,), (1382713231,), (1382713511,), (1382713541,), (1382713571,), (1382713878,), (1382713908,), (1382713938,), (1382713942,), (1382713946,), (1382713975,), (1382713977,), (1382713979,), (1382713982,), (1382713990,), (1382714291,), (1382714323,), (1382714353,), (1382714477,), (1382714478,), (1382714479,), (1382714481,), (1382714500,), (1382714501,), (1382714505,), (1382714510,), (1382714514,), (1382714517,), (1382714522,), (1382714532,), (1382714544,), (1382714549,), (1382714559,), (1382714561,), (1382714563,), (1382714566,), (1382714570,), (1382714598,), (1382714600,), (1382714602,), (1382714605,), (1382714632,), (1382714634,), (1382714637,), (1382714641,), (1382714673,), (1382714676,), (1382714679,), (1382714683,), (1382714686,), (1382714704,), (1382714707,), (1382714710,), (1382714744,), (1382714745,), (1382714746,), (1382714749,), (1382714804,), (1382714802,), (1382714803,), (1382714827,), (1382714830,), (1382714886,), (1382714887,), (1382714888,), (1382714892,), (1382714896,), (1382714924,), (1382714926,), (1382714928,), (1382714931,), (1382714935,), (1382714941,), (1382714965,), (1382714970,), (1382714975,), (1382714981,), (1382714985,), (1382714989,), (1382715003,), (1382715006,), (1382715007,), (1382715008,), (1382715013,), (1382715017,), (1382715027,), (1382715030,), (1382715034,), (1382715037,), (1382715047,), (1382715060,), (1382715074,), (1382715112,), (1382715115,), (1382715117,), (1382715120,), (1382715142,), (1382715144,), (1382715147,), (1382715150,), (1382715190,), (1382715192,), (1382715215,), (1382715218,), (1382715222,), (1382715228,), (1382715257,), (1382715263,), (1382715276,), (1382715299,), (1382715300,), (1382715301,), (1382715305,), (1382715333,), (1382715336,), (1382715338,), (1382715341,), (1382715346,), (1382715349,), (1382715363,), (1382715368,), (1382715373,), (1382715379,), (1382715383,), (1382715388,), (1382715393,), (1382715395,), (1382715414,), (1382715398,), (1382715401,), (1382715405,), (1382715408,), (1382715411,), (1382715449,), (1382715451,), (1382715453,), (1382715455,), (1382715459,), (1382715463,), (1382715485,), (1382715487,), (1382715488,), (1382715500,), (1382715513,), (1382715530,), (1382715533,), (1382715535,), (1382715567,), (1382715568,), (1382715569,), (1382715571,), (1382715591,), (1382715595,), (1382715600,), (1382715619,), (1382715620,), (1382715621,), (1382715633,), (1382715636,), (1382715639,), (1382715642,), (1382715649,), (1382715650,), (1382715659,), (1382715661,), (1382715663,), (1382715666,), (1382715681,), (1382715684,), (1382715689,), (1382715696,), (1382715702,), (1382715711,), (1382715713,), (1382715715,), (1382715728,), (1382715730,), (1382715742,), (1382715807,), (1382715810,), (1382715813,), (1382715815,), (1382716517,), (1382716576,), (1382716637,), (1382716691,), (1382716752,), (1382716895,), (1382716947,), (1382717004,), (1382717059,), (1382717386,), (1382718157,), (1382717203,), (1382717254,), (1382717293,), (1382717346,), (1382717714,), (1382717744,), (1382717775,), (1382717809,), (1382717841,), (1382717896,), (1382718081,), (1382718125,), (1382718295,), (1382718352,), (1382718631,), (1382718658,), (1382718687,), (1382718706,), (1382718707,), (1382718735,), (1382718769,), (1382718962,), (1382718993,), (1382719024,), (1382719081,), (1382719084,), (1382719087,), (1382719100,), (1382719105,), (1382719120,), (1382719154,), (1382719156,), (1382719160,), (1382719162,), (1382719164,), (1382719168,), (1382719186,), (1382719219,), (1382719225,), (1382719229,), (1382719233,), (1382719237,), (1382719245,), (1382719247,), (1382719251,), (1382719269,), (1382719272,), (1382719275,), (1382719279,), (1382719282,), (1382719292,), (1382719295,), (1382719300,), (1382719304,), (1382719313,), (1382719315,), (1382719318,), (1382719332,), (1382719335,), (1382719337,), (1382719339,), (1382719341,), (1382719353,), (1382719355,), (1382719358,), (1382719363,), (1382719366,), (1382719369,), (1382719385,), (1382719387,), (1382719389,), (1382719404,), (1382719405,), (1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,), (1382719710,), (1382719714,), (1382719718,), (1382719722,), (1382719728,), (1382719732,), (1382719739,), (1382719741,), (1382719743,), (1382719745,), (1382719774,), (1382719779,), (1382719784,), (1382719788,), (1382719797,), (1382719812,), (1382719844,), (1382719846,), (1382719848,), (1382719854,), (1382719856,), (1382719858,), (1382719859,), (1382719860,), (1382719861,), (1382719870,), (1382719902,), (1382719904,), (1382719905,), (1382719909,), (1382719912,), (1382719936,), (1382719929,), (1382719930,), (1382719932,), (1382719934,), (1382719955,), (1382719958,), (1382719960,), (1382719963,), (1382719966,), (1382719977,), (1382719983,), (1382719987,), (1382719990,), (1382719993,), (1382720000,), (1382720007,), (1382720009,), (1382720013,), (1382720016,), (1382720019,), (1382720021,), (1382720033,), (1382720039,), (1382720043,), (1382720047,), (1382720055,), (1382720060,), (1382720063,), (1382720070,), (1382720077,), (1382720087,), (1382720090,), (1382720092,), (1382720093,), (1382720095,), (1382720097,), (1382720101,), (1382720108,), (1382720117,), (1382720174,), (1382720194,), (1382720196,), (1382720198,), (1382720200,), (1382720202,), (1382720207,), (1382720208,), (1382720210,), (1382720219,), (1382720240,), (1382720241,), (1382720242,), (1382720245,), (1382720248,), (1382720251,), (1382720267,), (1382720271,), (1382720322,), (1382720328,), (1382720330,), (1382720343,), (1382720385,), (1382720386,), (1382720389,), (1382720392,), (1382720397,), (1382720406,), (1382720412,), (1382720413,), (1382720414,), (1382720415,), (1382720418,), (1382720421,), (1382720429,), (1382720478,), (1382720464,), (1382720472,), (1382720475,), (1382720490,), (1382720494,), (1382720502,), (1382720507,), (1382720527,), (1382720554,), (1382720556,), (1382720559,), (1382720562,), (1382720564,), (1382720577,), (1382720579,), (1382720582,), (1382720611,), (1382720612,), (1382720613,), (1382720615,), (1382720620,), (1382720630,), (1382720632,), (1382720634,), (1382720638,), (1382720641,), (1382720645,), (1382720671,), (1382720687,), (1382720705,), (1382720719,), (1382720724,), (1382720728,), (1382720735,), (1382720739,), (1382720741,), (1382720753,), (1382720755,), (1382720758,), (1382720773,), (1382720777,), (1382720781,), (1382720803,), (1382720805,), (1382720809,), (1382720812,), (1382720816,), (1382720818,), (1382720830,), (1382720853,), (1382720882,), (1382720910,), (1382721214,), (1382721234,), (1382721263,), (1382721580,), (1382721604,), (1382721630,), (1382721655,), (1382721681,), (1382721706,), (1382721822,), (1382721851,), (1382721877,), (1382721902,), (1382721929,), (1382722069,), (1382722015,), (1382722043,), (1382722317,), (1382722344,), (1382722371,), (1382722396,), (1382722423,), (1382722787,), (1382722864,), (1382722914,), (1382722974,), (1382723027,), (1382723079,), (1382723162,), (1382723207,), (1382723267,), (1382723321,), (1382723449,), (1382723478,), (1382723505,), (1382723541,), (1382723569,), (1382723641,), (1382723642,), (1382723661,), (1382723664,), (1382723693,), (1382723695,), (1382723722,), (1382723723,), (1382723753,), (1382723756,), (1382723782,), (1382723785,), (1382723832,), (1382723864,), (1382723872,), (1382723902,), (1382723915,), (1382723919,), (1382723923,), (1382723924,), (1382723926,), (1382723930,), (1382723936,), (1382723947,), (1382723951,), (1382723969,), (1382727904,), (1382727940,), (1382727941,), (1382727967,), (1382727970,), (1382727974,), (1382727995,), (1382728025,), (1382728028,), (1382728031,), (1382728035,), (1382728039,), (1382728057,), (1382728060,), (1382728063,), (1382728066,), (1382728070,), (1382728085,), (1382728088,), (1382728105,), (1382728107,), (1382728111,), (1382728137,), (1382728140,), (1382728142,), (1382728147,), (1382728151,), (1382728157,), (1382728159,), (1382728162,), (1382728166,), (1382728171,), (1382728174,), (1382728183,), (1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09092025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26674397]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] map_info['map_portfolio_photo'] : {26674397: [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602, 1382728586, 1382728582, 1382728578, 1382728573, 1382728569, 1382728566, 1382728555, 1382728551, 1382728543, 1382728533, 1382728520, 1382728518, 1382728516, 1382728514, 1382728510, 1382728508, 1382728496, 1382728492, 1382728487, 1382728482, 1382728478, 1382728426, 1382728420, 1382728416, 1382728409, 1382728396, 1382728393, 1382728388, 1382728382, 1382728380, 1382728371, 1382728351, 1382728347, 1382728345, 1382728342, 1382728341, 1382728338, 1382728320, 1382728317, 1382728314, 1382728294, 1382728289, 1382728284, 1382728279, 1382728274, 1382728270, 1382728260, 1382728256, 1382728251, 1382728246, 1382728244, 1382728238, 1382728209, 1382728206, 1382728203, 1382728201, 1382728200, 1382728181, 1382728179]} final : True mtd_id 4302 list_pids : [1382728677, 1382728674, 1382728670, 1382728666, 1382728663, 1382728626, 1382728622, 1382728614, 1382728610, 1382728606, 1382728602] Looping around the photos to save general results len do output : 1 /26674397Didn'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, '3682523') ('4302', '26674397', '1382728677', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728674', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728670', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728666', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728663', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728626', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728622', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728614', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728610', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728606', None, None, None, None, None, '3682523') ('4302', None, None, None, None, None, None, None, '3682523') ('4302', '26674397', '1382728602', None, None, None, None, None, '3682523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26674397', 'None', None, None, None, None, '3682523'), ('4302', '26674397', '1382728677', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728674', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728670', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728666', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728663', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728626', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728622', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728614', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728610', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728606', None, None, None, None, None, '3682523'), ('4302', '26674397', '1382728602', None, None, None, None, None, '3682523')] time used for this insertion : 0.28902769088745117 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8065576553344727 time spend to save output : 0.28928542137145996 total time spend for step 5 : 2.0958430767059326 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 (3682523) 2.28user 2.63system 0:12.62elapsed 39%CPU (0avgtext+0avgdata 161380maxresident)k 6464inputs+15528outputs (45major+73273minor)pagefaults 0swaps