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 : 939443 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 (2812873) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2812873) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831604 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2812873'] with mtr_portfolio_ids : ['22831604'] and first list_photo_ids : [] new path : /proc/939443/ Name: python3 Umask: 0002 State: R (running) Tgid: 939443 Ngid: 0 Pid: 939443 PPid: 939442 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 939443 NSpid: 939443 NSpgid: 935482 NSsid: 935482 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97972 kB VmRSS: 97972 kB RssAnon: 60200 kB RssFile: 37772 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 62 nonvoluntary_ctxt_switches: 154 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '939443', 'Ngid': '0', 'Pid': '939443', 'PPid': '939442', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '939443', 'NSpid': '939443', 'NSpgid': '935482', 'NSsid': '935482', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97972 kB', 'VmRSS': '97972 kB', 'RssAnon': '60200 kB', 'RssFile': '37772 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '62', 'nonvoluntary_ctxt_switches': '154'} ('datou_batch_current', '939443', '1107228', '0', '1107228', '865976', '97972', b'', 'marlene', '2812873') 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 (22831604) 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 (2812873 ) ) 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 (22831604) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357221057, 'portfolio_id': 22831604}, {'photo_id': 1357221055, 'portfolio_id': 22831604}, {'photo_id': 1357221051, 'portfolio_id': 22831604}, {'photo_id': 1357220984, 'portfolio_id': 22831604}, {'photo_id': 1357220979, 'portfolio_id': 22831604}, {'photo_id': 1357220975, 'portfolio_id': 22831604}, {'photo_id': 1357220971, 'portfolio_id': 22831604}, {'photo_id': 1357220966, 'portfolio_id': 22831604}, {'photo_id': 1357220770, 'portfolio_id': 22831604}, {'photo_id': 1357220766, 'portfolio_id': 22831604}, {'photo_id': 1357220763, 'portfolio_id': 22831604}, {'photo_id': 1357220760, 'portfolio_id': 22831604}, {'photo_id': 1357220756, 'portfolio_id': 22831604}, {'photo_id': 1357220649, 'portfolio_id': 22831604}, {'photo_id': 1357220620, 'portfolio_id': 22831604}, {'photo_id': 1357220602, 'portfolio_id': 22831604}, {'photo_id': 1357220593, 'portfolio_id': 22831604}, {'photo_id': 1357220564, 'portfolio_id': 22831604}, {'photo_id': 1357220549, 'portfolio_id': 22831604}, {'photo_id': 1357220417, 'portfolio_id': 22831604}, {'photo_id': 1357220389, 'portfolio_id': 22831604}, {'photo_id': 1357220368, 'portfolio_id': 22831604}, {'photo_id': 1357220340, 'portfolio_id': 22831604}, {'photo_id': 1357220308, 'portfolio_id': 22831604}, {'photo_id': 1357220278, 'portfolio_id': 22831604}, {'photo_id': 1357219997, 'portfolio_id': 22831604}, {'photo_id': 1357219994, 'portfolio_id': 22831604}, {'photo_id': 1357219989, 'portfolio_id': 22831604}, {'photo_id': 1357219968, 'portfolio_id': 22831604}, {'photo_id': 1357219870, 'portfolio_id': 22831604}, {'photo_id': 1357219863, 'portfolio_id': 22831604}, {'photo_id': 1357219836, 'portfolio_id': 22831604}, {'photo_id': 1357219830, 'portfolio_id': 22831604}, {'photo_id': 1357219827, 'portfolio_id': 22831604}, {'photo_id': 1357219823, 'portfolio_id': 22831604}, {'photo_id': 1357219759, 'portfolio_id': 22831604}, {'photo_id': 1357219755, 'portfolio_id': 22831604}, {'photo_id': 1357219733, 'portfolio_id': 22831604}, {'photo_id': 1357219719, 'portfolio_id': 22831604}, {'photo_id': 1357219681, 'portfolio_id': 22831604}, {'photo_id': 1357219677, 'portfolio_id': 22831604}, {'photo_id': 1357219673, 'portfolio_id': 22831604}, {'photo_id': 1357219671, 'portfolio_id': 22831604}, {'photo_id': 1357219668, 'portfolio_id': 22831604}, {'photo_id': 1357219664, 'portfolio_id': 22831604}, {'photo_id': 1357219635, 'portfolio_id': 22831604}, {'photo_id': 1357219627, 'portfolio_id': 22831604}, {'photo_id': 1357219597, 'portfolio_id': 22831604}, {'photo_id': 1357219592, 'portfolio_id': 22831604}, {'photo_id': 1357219587, 'portfolio_id': 22831604}, {'photo_id': 1357219535, 'portfolio_id': 22831604}, {'photo_id': 1357219531, 'portfolio_id': 22831604}, {'photo_id': 1357219527, 'portfolio_id': 22831604}, {'photo_id': 1357219483, 'portfolio_id': 22831604}, {'photo_id': 1357219479, 'portfolio_id': 22831604}, {'photo_id': 1357219463, 'portfolio_id': 22831604}, {'photo_id': 1357219459, 'portfolio_id': 22831604}, {'photo_id': 1357219405, 'portfolio_id': 22831604}, {'photo_id': 1357219401, 'portfolio_id': 22831604}, {'photo_id': 1357219397, 'portfolio_id': 22831604}, {'photo_id': 1357219394, 'portfolio_id': 22831604}, {'photo_id': 1357219383, 'portfolio_id': 22831604}, {'photo_id': 1357219376, 'portfolio_id': 22831604}, {'photo_id': 1357219313, 'portfolio_id': 22831604}, {'photo_id': 1357219307, 'portfolio_id': 22831604}, {'photo_id': 1357219301, 'portfolio_id': 22831604}] map_portfolio_id_photo_id: {22831604: [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756, 1357220649, 1357220620, 1357220602, 1357220593, 1357220564, 1357220549, 1357220417, 1357220389, 1357220368, 1357220340, 1357220308, 1357220278, 1357219997, 1357219994, 1357219989, 1357219968, 1357219870, 1357219863, 1357219836, 1357219830, 1357219827, 1357219823, 1357219759, 1357219755, 1357219733, 1357219719, 1357219681, 1357219677, 1357219673, 1357219671, 1357219668, 1357219664, 1357219635, 1357219627, 1357219597, 1357219592, 1357219587, 1357219535, 1357219531, 1357219527, 1357219483, 1357219479, 1357219463, 1357219459, 1357219405, 1357219401, 1357219397, 1357219394, 1357219383, 1357219376, 1357219313, 1357219307, 1357219301]} ##### 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.016063928604125977 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri May 9 16:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22831604) 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 : 22831604 get user id for portfolio 22831604 get sub ptf for main ptf 22831604, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'mal_croppe', 'autre_refus', 'Carton_brun', 'environnement', 'papier', 'flou', 'kraft', 'Carton_gris'] 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`=22831604 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus','Carton_brun','environnement','papier','flou','kraft','Carton_gris')) 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`=22831604 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus','Carton_brun','environnement','papier','flou','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22831604, 'sub_port_id': 22831637, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234305, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'cartonnette': {'main_port_id': 22831604, 'sub_port_id': 22831638, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234306, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'plastique': {'main_port_id': 22831604, 'sub_port_id': 22831639, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234307, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'environnement': {'main_port_id': 22831604, 'sub_port_id': 22831640, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234308, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'flou': {'main_port_id': 22831604, 'sub_port_id': 22831641, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234309, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'Carton_gris': {'main_port_id': 22831604, 'sub_port_id': 22831642, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234310, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'metal': {'main_port_id': 22831604, 'sub_port_id': 22831643, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234311, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22831604, 'sub_port_id': 22831644, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234312, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'Carton_brun': {'main_port_id': 22831604, 'sub_port_id': 22831645, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234313, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'autre_refus': {'main_port_id': 22831604, 'sub_port_id': 22831646, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234314, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'mal_croppe': {'main_port_id': 22831604, 'sub_port_id': 22831647, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234315, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}, 'kraft': {'main_port_id': 22831604, 'sub_port_id': 22831648, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234316, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831637 , 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=22831604 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 (22831637) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831638 , 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=22831604 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 (22831638) result : ((1357219516,), (1357219707,), (1357219708,), (1357220078,), (1357220120,), (1357220559,), (1357221024,), (1357221025,), (1357221039,), (1357221040,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831639 , 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=22831604 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 (22831639) result : ((1357219712,), (1357220572,), (1357220573,), (1357220726,), (1357220751,), (1357220752,), (1357220753,), (1357220754,), (1357221045,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831640 , 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=22831604 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 (22831640) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831641 , 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=22831604 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 (22831641) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831642 , 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=22831604 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 (22831642) result : ((1357220072,), (1357220556,), (1357220557,), (1357220558,), (1357220724,), (1357220744,), (1357221020,), (1357221021,), (1357221022,), (1357221038,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831643 , 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=22831604 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 (22831643) result : ((1357220755,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831644 , 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=22831604 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 (22831644) result : ((1357219512,), (1357219706,), (1357220551,), (1357220732,), (1357220733,), (1357220734,), (1357220736,), (1357220737,), (1357220738,), (1357220739,), (1357221011,), (1357221030,), (1357221032,), (1357221034,), (1357221035,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831645 , 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=22831604 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 (22831645) result : ((1357219517,), (1357219648,), (1357219711,), (1357220563,), (1357220725,), (1357220747,), (1357220748,), (1357220749,), (1357221026,), (1357221042,), (1357221043,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831646 , 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=22831604 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 (22831646) result : ((1357219809,), (1357220552,), (1357220553,), (1357220554,), (1357220740,), (1357220741,), (1357220742,), (1357221013,), (1357221014,), (1357221015,), (1357221016,), (1357221037,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831647 , 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=22831604 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 (22831647) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22831648 , 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=22831604 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 (22831648) result : ((1357221027,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22831604) result : ((1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22831604 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus','Carton_brun','environnement','papier','flou','kraft','Carton_gris')) 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`=22831604 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus','Carton_brun','environnement','papier','flou','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22831604, 'sub_port_id': 22831649, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234317, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'cartonnette': {'main_port_id': 22831604, 'sub_port_id': 22831650, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234318, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'plastique': {'main_port_id': 22831604, 'sub_port_id': 22831651, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234319, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'environnement': {'main_port_id': 22831604, 'sub_port_id': 22831652, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234320, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'flou': {'main_port_id': 22831604, 'sub_port_id': 22831653, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234321, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'Carton_gris': {'main_port_id': 22831604, 'sub_port_id': 22831654, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234322, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'metal': {'main_port_id': 22831604, 'sub_port_id': 22831655, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234323, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22831604, 'sub_port_id': 22831656, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234324, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'Carton_brun': {'main_port_id': 22831604, 'sub_port_id': 22831657, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234325, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'autre_refus': {'main_port_id': 22831604, 'sub_port_id': 22831658, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234326, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'mal_croppe': {'main_port_id': 22831604, 'sub_port_id': 22831659, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234327, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}, 'kraft': {'main_port_id': 22831604, 'sub_port_id': 22831660, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15234328, 'last_updated_at': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 16, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 16, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831649,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831637 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831650,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831638 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831651,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831639 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831652,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831640 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831653,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831641 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831654,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831642 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831655,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831643 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831656,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831644 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831657,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831645 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831658,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831646 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831659,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831647 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22831660,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22831648 lien utilise dans velours : https://www.fotonower.com/velours/22831649,22831650,22831651,22831652,22831653,22831654,22831655,22831656,22831657,22831658,22831659,22831660?tags=papier,cartonnette,plastique,environnement,flou,Carton_gris,metal,Teint_Dans_La_Masse,Carton_brun,autre_refus,mal_croppe,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22831604]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] map_info['map_portfolio_photo'] : {22831604: [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756, 1357220649, 1357220620, 1357220602, 1357220593, 1357220564, 1357220549, 1357220417, 1357220389, 1357220368, 1357220340, 1357220308, 1357220278, 1357219997, 1357219994, 1357219989, 1357219968, 1357219870, 1357219863, 1357219836, 1357219830, 1357219827, 1357219823, 1357219759, 1357219755, 1357219733, 1357219719, 1357219681, 1357219677, 1357219673, 1357219671, 1357219668, 1357219664, 1357219635, 1357219627, 1357219597, 1357219592, 1357219587, 1357219535, 1357219531, 1357219527, 1357219483, 1357219479, 1357219463, 1357219459, 1357219405, 1357219401, 1357219397, 1357219394, 1357219383, 1357219376, 1357219313, 1357219307, 1357219301]} final : False mtd_id 4302 list_pids : [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] Looping around the photos to save general results len do output : 1 /22831604. 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, '2812873') ('4302', '22831604', '1357221057', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221055', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221051', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220984', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220979', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220975', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220971', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220966', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220770', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220766', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220763', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220760', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220756', None, None, None, None, None, '2812873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22831604', "{'papier': 22831637, 'cartonnette': 22831638, 'plastique': 22831639, 'environnement': 22831640, 'flou': 22831641, 'Carton_gris': 22831642, 'metal': 22831643, 'Teint_Dans_La_Masse': 22831644, 'Carton_brun': 22831645, 'autre_refus': 22831646, 'mal_croppe': 22831647, 'kraft': 22831648}", None, None, None, None, '2812873'), ('4302', '22831604', '1357221057', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357221055', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357221051', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220984', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220979', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220975', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220971', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220966', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220770', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220766', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220763', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220760', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220756', None, None, None, None, None, '2812873')] time used for this insertion : 0.015642642974853516 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.674055814743042 time spend to save output : 0.015947580337524414 total time spend for step 1 : 1.6900033950805664 step2:final Fri May 9 16:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22831604) 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 22831604 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357219313,1357219307,1357219301,1357219405,1357219401,1357219397,1357219394,1357219383,1357219376,1357219483,1357219479,1357219463,1357219459,1357219535,1357219531,1357219527,1357219635,1357219627,1357219597,1357219592,1357219587,1357219681,1357219677,1357219673,1357219671,1357219668,1357219664,1357219759,1357219755,1357219733,1357219719,1357219870,1357219863,1357219836,1357219830,1357219827,1357219823,1357219997,1357219994,1357219989,1357219968,1357220417,1357220389,1357220368,1357220340,1357220308,1357220278,1357220649,1357220620,1357220602,1357220593,1357220564,1357220549,1357220770,1357220766,1357220763,1357220760,1357220756,1357220984,1357220979,1357220975,1357220971,1357220966,1357221057,1357221055,1357221051); 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([22831604]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} new output for save of step final : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] map_info['map_portfolio_photo'] : {22831604: [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756, 1357220649, 1357220620, 1357220602, 1357220593, 1357220564, 1357220549, 1357220417, 1357220389, 1357220368, 1357220340, 1357220308, 1357220278, 1357219997, 1357219994, 1357219989, 1357219968, 1357219870, 1357219863, 1357219836, 1357219830, 1357219827, 1357219823, 1357219759, 1357219755, 1357219733, 1357219719, 1357219681, 1357219677, 1357219673, 1357219671, 1357219668, 1357219664, 1357219635, 1357219627, 1357219597, 1357219592, 1357219587, 1357219535, 1357219531, 1357219527, 1357219483, 1357219479, 1357219463, 1357219459, 1357219405, 1357219401, 1357219397, 1357219394, 1357219383, 1357219376, 1357219313, 1357219307, 1357219301]} final : False mtd_id 4302 list_pids : [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] Looping around the photos to save general results len do output : 13 /1357221057.Didn't retrieve data . /1357221055.Didn't retrieve data . /1357221051.Didn't retrieve data . /1357220984.Didn't retrieve data . /1357220979.Didn't retrieve data . /1357220975.Didn't retrieve data . /1357220971.Didn't retrieve data . /1357220966.Didn't retrieve data . /1357220770.Didn't retrieve data . /1357220766.Didn't retrieve data . /1357220763.Didn't retrieve data . /1357220760.Didn't retrieve data . /1357220756.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, '2812873') ('4302', '22831604', '1357221057', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221055', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221051', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220984', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220979', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220975', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220971', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220966', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220770', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220766', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220763', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220760', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220756', None, None, None, None, None, '2812873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22831604', '1357221057', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357221055', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357221051', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220984', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220979', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220975', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220971', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220966', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220770', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220766', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220763', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220760', '0.058536979270878975', None, None, None, None, '2812873'), ('4302', '22831604', '1357220756', '0.058536979270878975', None, None, None, None, '2812873')] time used for this insertion : 0.015868663787841797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08082056045532227 time spend to save output : 0.016546964645385742 total time spend for step 2 : 0.09736752510070801 step3:velours_tree Fri May 9 16:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22831604: [{'papier': 22831637, 'cartonnette': 22831638, 'plastique': 22831639, 'environnement': 22831640, 'flou': 22831641, 'Carton_gris': 22831642, 'metal': 22831643, 'Teint_Dans_La_Masse': 22831644, 'Carton_brun': 22831645, 'autre_refus': 22831646, 'mal_croppe': 22831647, 'kraft': 22831648}]} input_args_next_step : {22831604: ()} output_args : {22831604: [{'papier': 22831637, 'cartonnette': 22831638, 'plastique': 22831639, 'environnement': 22831640, 'flou': 22831641, 'Carton_gris': 22831642, 'metal': 22831643, 'Teint_Dans_La_Masse': 22831644, 'Carton_brun': 22831645, 'autre_refus': 22831646, 'mal_croppe': 22831647, 'kraft': 22831648}]} args : 22831604 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 : ({'papier': 22831637, 'cartonnette': 22831638, 'plastique': 22831639, 'environnement': 22831640, 'flou': 22831641, 'Carton_gris': 22831642, 'metal': 22831643, 'Teint_Dans_La_Masse': 22831644, 'Carton_brun': 22831645, 'autre_refus': 22831646, 'mal_croppe': 22831647, 'kraft': 22831648},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22831604) 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([22831604]) 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.3207864761352539 time spend to save output : 5.316734313964844e-05 total time spend for step 3 : 0.32083964347839355 step4:send_mail_cod Fri May 9 16:15:00 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 : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} input_args_next_step : {1357221057: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357221057 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357221055 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357221051 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220984 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220979 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220975 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220971 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220966 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220770 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220766 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220763 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220760 depend.output_id : 0 input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ()} output_args : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',)} args : 1357220756 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 : {22831604: [{'papier': 22831637, 'cartonnette': 22831638, 'plastique': 22831639, 'environnement': 22831640, 'flou': 22831641, 'Carton_gris': 22831642, 'metal': 22831643, 'Teint_Dans_La_Masse': 22831644, 'Carton_brun': 22831645, 'autre_refus': 22831646, 'mal_croppe': 22831647, 'kraft': 22831648}]} input_args_next_step : {1357221057: ('0.058536979270878975',), 1357221055: ('0.058536979270878975',), 1357221051: ('0.058536979270878975',), 1357220984: ('0.058536979270878975',), 1357220979: ('0.058536979270878975',), 1357220975: ('0.058536979270878975',), 1357220971: ('0.058536979270878975',), 1357220966: ('0.058536979270878975',), 1357220770: ('0.058536979270878975',), 1357220766: ('0.058536979270878975',), 1357220763: ('0.058536979270878975',), 1357220760: ('0.058536979270878975',), 1357220756: ('0.058536979270878975',), 22831604: ()} output_args : {22831604: [{'papier': 22831637, 'cartonnette': 22831638, 'plastique': 22831639, 'environnement': 22831640, 'flou': 22831641, 'Carton_gris': 22831642, 'metal': 22831643, 'Teint_Dans_La_Masse': 22831644, 'Carton_brun': 22831645, 'autre_refus': 22831646, 'mal_croppe': 22831647, 'kraft': 22831648}]} args : 22831604 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :14, first value : ('0.058536979270878975',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22831604) 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 (1357221057,1357221055,1357221051,1357220984,1357220979,1357220975,1357220971,1357220966,1357220770,1357220766,1357220763,1357220760,1357220756) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357220756 begin to download photo : 1357220766 begin to download photo : 1357220971 begin to download photo : 1357220984 begin to download photo : 1357221057 download finish for photo 1357220766 begin to download photo : 1357220770 download finish for photo 1357220971 begin to download photo : 1357220975 download finish for photo 1357220756 begin to download photo : 1357220760 download finish for photo 1357220984 begin to download photo : 1357221051 download finish for photo 1357221057 download finish for photo 1357220770 begin to download photo : 1357220966 download finish for photo 1357220975 begin to download photo : 1357220979 download finish for photo 1357220760 begin to download photo : 1357220763 download finish for photo 1357221051 begin to download photo : 1357221055 download finish for photo 1357220763 download finish for photo 1357220966 download finish for photo 1357221055 download finish for photo 1357220979 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22831604_09-05-2025_16_15_00.pdf 22831638 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=22831638 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357219516: '1746799393_184990_1357219301_e6cf586792c065bb11fad5b211071e45_rle_crop_3791565113_0.png', 1357219707: '1746799573_187410_1357219483_b698cc40b6afe353485be432c55a71aa_rle_crop_3791568470_0.png', 1357219708: '1746799573_187410_1357219401_f0a54980622eab544ea5cf76aa948056_rle_crop_3791568498_0.png', 1357220078: '1746799754_189787_1357219681_31cf40efb58e3fbe53d9b52e3f37643c_rle_crop_3791571526_0.png', 1357220120: '1746799767_3377866_1357219755_4257f730883ff6766b5de9ee00bc5c42_rle_crop_3791571566_0.png', 1357220559: '1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572324_0.png', 1357221024: '1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573865_0.png', 1357221025: '1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573979_0.png', 1357221039: '1746800006_3383718_1357220649_3cb398714856a04b81c414c82e61b883_rle_crop_3791573961_0.png', 1357221040: '1746800006_3383718_1357220368_7cb21fbb2c10450db668da4f6baf7849_rle_crop_3791573996_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/07eb264e941696615837ec1bb76ffa58_25948446.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fa317474789e7ebec1440bb4a92866ed_8003696.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/ac9a5221482d2f5be2a6b05546338f91_2968060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/898f896dccd37c3aac30451d833d3750_37145943.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/9dc314df0595ee3c2c0ae21b9a59bffc_71264888.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/48c55e26490ff35523cd1787593dd13b_30632978.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d38e3ba6c57c983fa87efcf78769a47b_40463800.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5767159f3e62987219fcedf1de6a789d_51331214.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d2e2e69b98baef0ef68113617120686e_93623155.png change filename to text .imagette228316381746800100/ imagette228316381746800100/1746799767_3377866_1357219755_4257f730883ff6766b5de9ee00bc5c42_rle_crop_3791571566_0.png.png imagette228316381746800100/1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573865_0.png.png imagette228316381746800100/1746799754_189787_1357219681_31cf40efb58e3fbe53d9b52e3f37643c_rle_crop_3791571526_0.png.png imagette228316381746800100/1746799573_187410_1357219483_b698cc40b6afe353485be432c55a71aa_rle_crop_3791568470_0.png.png imagette228316381746800100/1746800006_3383718_1357220368_7cb21fbb2c10450db668da4f6baf7849_rle_crop_3791573996_0.png.png imagette228316381746800100/1746799393_184990_1357219301_e6cf586792c065bb11fad5b211071e45_rle_crop_3791565113_0.png.png imagette228316381746800100/1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573979_0.png.png imagette228316381746800100/1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572324_0.png.png imagette228316381746800100/1746800006_3383718_1357220649_3cb398714856a04b81c414c82e61b883_rle_crop_3791573961_0.png.png imagette228316381746800100/1746799573_187410_1357219401_f0a54980622eab544ea5cf76aa948056_rle_crop_3791568498_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/9386eb862b0f0d4ad5723a9310e3b898_45115759.png imagette228316381746800100 22831639 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=22831639 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357219712: '1746799573_187410_1357219397_4bd81dffab7fc54d6dbc94674d70f760_rle_crop_3791568540_0.png', 1357220572: '1746799812_190649_1357219759_6db36eda0d3f6ab38985fa9f867b70f8_rle_crop_3791572261_0.png', 1357220573: '1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572331_0.png', 1357220726: '1746799873_191443_1357219994_d5e73d3b5198cd04d55e7cc2219d8518_rle_crop_3791572812_0.png', 1357220751: '1746799886_3380913_1357219997_83c472d05f1dc1238a6f30fc05df10eb_rle_crop_3791572839_0.png', 1357220752: '1746799886_3380913_1357219827_f9d9e19ba0ef2f35ca867adba53fb8d6_rle_crop_3791572917_0.png', 1357220753: '1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572934_0.png', 1357220754: '1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572929_0.png', 1357221045: '1746800006_3383718_1357220308_cc98259103d99de0aa5bf2c45335c763_rle_crop_3791574018_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1c971556e0e4387a8474f736ad38ba52_12454377.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/976a3133214904ab4572fd8767af7032_7171880.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3fc376c84300cdce92d3c3dce64273b3_92579084.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f8c116278782e6de01024a5ebd9b8b38_28500812.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f6fb58620c2dedf451b57b9405a5d4f6_55920020.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a21b1b416f62ff407a6f2c7695d2b411_95525467.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/689d51af36c52070e3c47c6f01120355_4300347.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5cdcacfb3c2a3244a2ce8f979c866c7c_17338333.png change filename to text .imagette228316391746800101/ imagette228316391746800101/1746799812_190649_1357219759_6db36eda0d3f6ab38985fa9f867b70f8_rle_crop_3791572261_0.png.png imagette228316391746800101/1746799873_191443_1357219994_d5e73d3b5198cd04d55e7cc2219d8518_rle_crop_3791572812_0.png.png imagette228316391746800101/1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572929_0.png.png imagette228316391746800101/1746800006_3383718_1357220308_cc98259103d99de0aa5bf2c45335c763_rle_crop_3791574018_0.png.png imagette228316391746800101/1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572934_0.png.png imagette228316391746800101/1746799886_3380913_1357219827_f9d9e19ba0ef2f35ca867adba53fb8d6_rle_crop_3791572917_0.png.png imagette228316391746800101/1746799573_187410_1357219397_4bd81dffab7fc54d6dbc94674d70f760_rle_crop_3791568540_0.png.png imagette228316391746800101/1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572331_0.png.png imagette228316391746800101/1746799886_3380913_1357219997_83c472d05f1dc1238a6f30fc05df10eb_rle_crop_3791572839_0.png.png imagette228316411746800101/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4db609ee098a4bd9f3262f6c843349d5_57272427.png imagette228316391746800101 22831641 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=22831641 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228316411746800101 22831643 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=22831643 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357220755: '1746799886_3380913_1357219863_a81ed7922b07cd4ef7bda68143365d3e_rle_crop_3791572859_0.png'} change filename to text .imagette228316431746800101/ imagette228316431746800101/1746799886_3380913_1357219863_a81ed7922b07cd4ef7bda68143365d3e_rle_crop_3791572859_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/86f6800f88de0e9e8343285a5eb4f8b5_71577324.png imagette228316431746800101 22831646 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=22831646 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357219809: '1746799630_188130_1357219627_fe91054b82b92d59188802a7f807a5e9_rle_crop_3791569169_0.png', 1357220552: '1746799812_190649_1357219677_07c157be0c8bc0a00ba4e71998159b1a_rle_crop_3791572268_0.png', 1357220553: '1746799812_190649_1357219668_982fc41b4b48093fe2149868b546f802_rle_crop_3791572304_0.png', 1357220554: '1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572323_0.png', 1357220740: '1746799886_3380913_1357219830_42ab9f184168a844a16d871199645cfa_rle_crop_3791572893_0.png', 1357220741: '1746799886_3380913_1357219827_f9d9e19ba0ef2f35ca867adba53fb8d6_rle_crop_3791572916_0.png', 1357220742: '1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572931_0.png', 1357221013: '1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573868_0.png', 1357221014: '1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573871_0.png', 1357221015: '1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573869_0.png', 1357221016: '1746799990_193035_1357220564_070ca110121c238cb63cae0f760a518c_rle_crop_3791573946_0.png', 1357221037: '1746800006_3383718_1357220278_296074b0b1f7641ea760925d3287bba5_rle_crop_3791574044_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/becd296dbc08a3fa1a8a6de2ce61803d_38317632.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e55946f92fe6d340ea7ceac17f5ce433_7311603.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/812006718898fbc12f9a2392803cd485_94879776.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fe4ab0c7a693163b13c60beb1c8bee17_73581565.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/870937352612e1592bdf3b4287bd74c0_88515870.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e5de94de8bd804e3e0d4f6a335ee83df_6309215.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/82e633b447713dd60996f7994268d4bf_4708714.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3408a2bc39384cdaca0f0b23074319a5_19917462.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/955be17ca94bf7266442f94f01a657fe_61100914.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d750d9b0e831becac8f6879ff367d4d7_81965608.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8c404145c0d1dccecaa8cfbbdc091d6a_54204617.png change filename to text .imagette228316461746800101/ imagette228316461746800101/1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573868_0.png.png imagette228316461746800101/1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573869_0.png.png imagette228316461746800101/1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572931_0.png.png imagette228316461746800101/1746799886_3380913_1357219830_42ab9f184168a844a16d871199645cfa_rle_crop_3791572893_0.png.png imagette228316461746800101/1746799812_190649_1357219668_982fc41b4b48093fe2149868b546f802_rle_crop_3791572304_0.png.png imagette228316461746800101/1746799812_190649_1357219677_07c157be0c8bc0a00ba4e71998159b1a_rle_crop_3791572268_0.png.png imagette228316461746800101/1746799886_3380913_1357219827_f9d9e19ba0ef2f35ca867adba53fb8d6_rle_crop_3791572916_0.png.png imagette228316461746800101/1746799990_193035_1357220564_070ca110121c238cb63cae0f760a518c_rle_crop_3791573946_0.png.png imagette228316461746800101/1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572323_0.png.png imagette228316461746800101/1746799630_188130_1357219627_fe91054b82b92d59188802a7f807a5e9_rle_crop_3791569169_0.png.png imagette228316461746800101/1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573871_0.png.png imagette228316461746800101/1746800006_3383718_1357220278_296074b0b1f7641ea760925d3287bba5_rle_crop_3791574044_0.png.png imagette228316471746800102/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/75ecb935b807dd9aee7f2c960f0a7f23_55245422.png imagette228316461746800101 22831647 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=22831647 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228316471746800102 22831648 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=22831648 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357221027: '1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573978_0.png'} change filename to text .imagette228316481746800102/ imagette228316481746800102/1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573978_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/19212e95e007a558c0b42c24ba99cd3b_23701781.png imagette228316481746800102 22831642 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=22831642 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357220072: '1746799754_189787_1357219681_31cf40efb58e3fbe53d9b52e3f37643c_rle_crop_3791571523_0.png', 1357220556: '1746799812_190649_1357219759_6db36eda0d3f6ab38985fa9f867b70f8_rle_crop_3791572258_0.png', 1357220557: '1746799812_190649_1357219673_91b1b46c7ae67ffd79500587723c847a_rle_crop_3791572282_0.png', 1357220558: '1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572319_0.png', 1357220724: '1746799873_191443_1357219994_d5e73d3b5198cd04d55e7cc2219d8518_rle_crop_3791572808_0.png', 1357220744: '1746799886_3380913_1357219836_0aa37502a6aa5e693e57149c36a2148d_rle_crop_3791572877_0.png', 1357221020: '1746799990_193035_1357220564_070ca110121c238cb63cae0f760a518c_rle_crop_3791573948_0.png', 1357221021: '1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573984_0.png', 1357221022: '1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573981_0.png', 1357221038: '1746800006_3383718_1357220308_cc98259103d99de0aa5bf2c45335c763_rle_crop_3791574024_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/70f7d97fb4ab76525b9b3026f451b834_81118615.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b18afcfd1bcbe349680f62e645e0d0e8_29581447.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/50564bdba531315aa0defd49896e1ef1_98311113.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1f0a738c8b6a1e38cb518ff476ff3a9b_91188216.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/984a46bb3c8010d4efd272bad30e5f48_9878057.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/bff7d802fe510fa49a3f0407116a5908_9884443.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/665f3fc876216261ae1d3747982425f7_21518830.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c770d0521bb372b229389d4fd754dfbe_33949452.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c4d173ca2d85f9587b36c542cda29337_16840550.png change filename to text .imagette228316421746800102/ imagette228316421746800102/1746799812_190649_1357219664_cb4bbbcc37628612826276cdf2a4fd8a_rle_crop_3791572319_0.png.png imagette228316421746800102/1746799812_190649_1357219673_91b1b46c7ae67ffd79500587723c847a_rle_crop_3791572282_0.png.png imagette228316421746800102/1746799873_191443_1357219994_d5e73d3b5198cd04d55e7cc2219d8518_rle_crop_3791572808_0.png.png imagette228316421746800102/1746799754_189787_1357219681_31cf40efb58e3fbe53d9b52e3f37643c_rle_crop_3791571523_0.png.png imagette228316421746800102/1746799990_193035_1357220564_070ca110121c238cb63cae0f760a518c_rle_crop_3791573948_0.png.png imagette228316421746800102/1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573984_0.png.png imagette228316421746800102/1746799812_190649_1357219759_6db36eda0d3f6ab38985fa9f867b70f8_rle_crop_3791572258_0.png.png imagette228316421746800102/1746800006_3383718_1357220308_cc98259103d99de0aa5bf2c45335c763_rle_crop_3791574024_0.png.png imagette228316421746800102/1746799886_3380913_1357219836_0aa37502a6aa5e693e57149c36a2148d_rle_crop_3791572877_0.png.png imagette228316421746800102/1746799990_193035_1357220549_1804409bba73608582970ed7d61d0076_rle_crop_3791573981_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d9acf804a9d19344464704bdf8530cbb_56785981.png imagette228316421746800102 22831644 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=22831644 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357219512: '1746799393_184990_1357219301_e6cf586792c065bb11fad5b211071e45_rle_crop_3791565119_0.png', 1357219706: '1746799573_187410_1357219401_f0a54980622eab544ea5cf76aa948056_rle_crop_3791568504_0.png', 1357220551: '1746799812_190649_1357219673_91b1b46c7ae67ffd79500587723c847a_rle_crop_3791572285_0.png', 1357220732: '1746799886_3380913_1357219997_83c472d05f1dc1238a6f30fc05df10eb_rle_crop_3791572842_0.png', 1357220733: '1746799886_3380913_1357219997_83c472d05f1dc1238a6f30fc05df10eb_rle_crop_3791572845_0.png', 1357220734: '1746799886_3380913_1357219863_a81ed7922b07cd4ef7bda68143365d3e_rle_crop_3791572866_0.png', 1357220736: '1746799886_3380913_1357219836_0aa37502a6aa5e693e57149c36a2148d_rle_crop_3791572882_0.png', 1357220737: '1746799886_3380913_1357219836_0aa37502a6aa5e693e57149c36a2148d_rle_crop_3791572885_0.png', 1357220738: '1746799886_3380913_1357219830_42ab9f184168a844a16d871199645cfa_rle_crop_3791572897_0.png', 1357220739: '1746799886_3380913_1357219827_f9d9e19ba0ef2f35ca867adba53fb8d6_rle_crop_3791572920_0.png', 1357221011: '1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573870_0.png', 1357221030: '1746800006_3383718_1357220649_3cb398714856a04b81c414c82e61b883_rle_crop_3791573969_0.png', 1357221032: '1746800006_3383718_1357220368_7cb21fbb2c10450db668da4f6baf7849_rle_crop_3791573994_0.png', 1357221034: '1746800006_3383718_1357220308_cc98259103d99de0aa5bf2c45335c763_rle_crop_3791574029_0.png', 1357221035: '1746800006_3383718_1357220278_296074b0b1f7641ea760925d3287bba5_rle_crop_3791574045_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/995eba916578e122f21b73fc5369ee48_10594413.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/656a2acf0f84b1571bb63e12dd467ac0_92871447.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/636228116a4ec0c4898bcfcfdfa31d57_81912620.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/830402aa7c7012f458d98a0f39119eb9_21070938.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e0291de9c76dbbcb2409604526dcf590_13771401.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/985901bb0740f7ac640b7b22fbd2de7c_34894674.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8a75ed58de91f1945f0d7ceac13c092c_83061931.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/360d5b99c949329307771d379ccdd76e_24995949.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c1e059f91b127ac0c45faa09082ab686_95014079.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7e5876962d91e01aa9fb48c510047242_6758508.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e12dd45977d6f144f6eff48eccfccb0e_44801053.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/683665c4781911d79b0ef2a233af83a8_4826663.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d690d82135d47e30265fbdf645d5813a_73313457.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a213a8925050c1ac84346fe481f56ca9_30902859.png change filename to text .imagette228316441746800103/ imagette228316441746800103/1746799812_190649_1357219673_91b1b46c7ae67ffd79500587723c847a_rle_crop_3791572285_0.png.png imagette228316441746800103/1746799393_184990_1357219301_e6cf586792c065bb11fad5b211071e45_rle_crop_3791565119_0.png.png imagette228316441746800103/1746800006_3383718_1357220308_cc98259103d99de0aa5bf2c45335c763_rle_crop_3791574029_0.png.png imagette228316441746800103/1746800006_3383718_1357220649_3cb398714856a04b81c414c82e61b883_rle_crop_3791573969_0.png.png imagette228316441746800103/1746799886_3380913_1357219827_f9d9e19ba0ef2f35ca867adba53fb8d6_rle_crop_3791572920_0.png.png imagette228316441746800103/1746800006_3383718_1357220368_7cb21fbb2c10450db668da4f6baf7849_rle_crop_3791573994_0.png.png imagette228316441746800103/1746799573_187410_1357219401_f0a54980622eab544ea5cf76aa948056_rle_crop_3791568504_0.png.png imagette228316441746800103/1746800006_3383718_1357220278_296074b0b1f7641ea760925d3287bba5_rle_crop_3791574045_0.png.png imagette228316441746800103/1746799886_3380913_1357219836_0aa37502a6aa5e693e57149c36a2148d_rle_crop_3791572882_0.png.png imagette228316441746800103/1746799886_3380913_1357219997_83c472d05f1dc1238a6f30fc05df10eb_rle_crop_3791572845_0.png.png imagette228316441746800103/1746799990_193035_1357220620_b37ea8a0a8d5b5d9b6388f8e8a4ff087_rle_crop_3791573870_0.png.png imagette228316441746800103/1746799886_3380913_1357219830_42ab9f184168a844a16d871199645cfa_rle_crop_3791572897_0.png.png imagette228316441746800103/1746799886_3380913_1357219836_0aa37502a6aa5e693e57149c36a2148d_rle_crop_3791572885_0.png.png imagette228316441746800103/1746799886_3380913_1357219863_a81ed7922b07cd4ef7bda68143365d3e_rle_crop_3791572866_0.png.png imagette228316441746800103/1746799886_3380913_1357219997_83c472d05f1dc1238a6f30fc05df10eb_rle_crop_3791572842_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f5596bf81081b4c82d0774a6ff245793_48546033.png imagette228316441746800103 22831645 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=22831645 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357219517: '1746799393_184990_1357219301_e6cf586792c065bb11fad5b211071e45_rle_crop_3791565114_0.png', 1357219648: '1746799528_3373859_1357219527_c668190b10b5054f267e129003243930_rle_crop_3791567535_0.png', 1357219711: '1746799573_187410_1357219401_f0a54980622eab544ea5cf76aa948056_rle_crop_3791568501_0.png', 1357220563: '1746799812_190649_1357219668_982fc41b4b48093fe2149868b546f802_rle_crop_3791572308_0.png', 1357220725: '1746799873_191443_1357219989_e8e63be3f9c55033abb59d9101b4f3c2_rle_crop_3791572826_0.png', 1357220747: '1746799886_3380913_1357219863_a81ed7922b07cd4ef7bda68143365d3e_rle_crop_3791572869_0.png', 1357220748: '1746799886_3380913_1357219830_42ab9f184168a844a16d871199645cfa_rle_crop_3791572900_0.png', 1357220749: '1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572940_0.png', 1357221026: '1746799990_193035_1357220602_129879c554b9cb6e963ffaa150b3cfbb_rle_crop_3791573885_0.png', 1357221042: '1746800006_3383718_1357220649_3cb398714856a04b81c414c82e61b883_rle_crop_3791573963_0.png', 1357221043: '1746800006_3383718_1357220368_7cb21fbb2c10450db668da4f6baf7849_rle_crop_3791573993_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fb4a1c8dd4391947899756184c926126_75627915.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5c348429f25fcbf38671e40259a78e8e_19470336.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c1869faf486f2a78cf860b6c5d5cd108_56970097.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/425b096a7daaffa9964bf2369443efe9_55060964.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b77551edd095b704c774d48c4c5d179f_45361135.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/20fbfc6d8f8788d77d6b222312cb7d7c_54604868.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7cedf8e9e2ff68bcf4387b20c38b6334_31676722.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/00369dc0115ebfbbd9a7f24f6086a520_22675502.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/115d3f77e8413bd89d8e72008e19a4f0_10882314.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c8cf564b96e8f2e09b83dee8d24398f0_64743509.png change filename to text .imagette228316451746800104/ imagette228316451746800104/1746800006_3383718_1357220368_7cb21fbb2c10450db668da4f6baf7849_rle_crop_3791573993_0.png.png imagette228316451746800104/1746799886_3380913_1357219830_42ab9f184168a844a16d871199645cfa_rle_crop_3791572900_0.png.png imagette228316451746800104/1746799886_3380913_1357219823_ab7a0d4d4dc444d72e12808c8f06f254_rle_crop_3791572940_0.png.png imagette228316451746800104/1746799990_193035_1357220602_129879c554b9cb6e963ffaa150b3cfbb_rle_crop_3791573885_0.png.png imagette228316451746800104/1746799812_190649_1357219668_982fc41b4b48093fe2149868b546f802_rle_crop_3791572308_0.png.png imagette228316451746800104/1746800006_3383718_1357220649_3cb398714856a04b81c414c82e61b883_rle_crop_3791573963_0.png.png imagette228316451746800104/1746799886_3380913_1357219863_a81ed7922b07cd4ef7bda68143365d3e_rle_crop_3791572869_0.png.png imagette228316451746800104/1746799873_191443_1357219989_e8e63be3f9c55033abb59d9101b4f3c2_rle_crop_3791572826_0.png.png imagette228316451746800104/1746799528_3373859_1357219527_c668190b10b5054f267e129003243930_rle_crop_3791567535_0.png.png imagette228316451746800104/1746799393_184990_1357219301_e6cf586792c065bb11fad5b211071e45_rle_crop_3791565114_0.png.png imagette228316451746800104/1746799573_187410_1357219401_f0a54980622eab544ea5cf76aa948056_rle_crop_3791568501_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/228954047a15ba3b9f59e508257250e1_56971085.png imagette228316451746800104 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22831604 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22831649,22831650,22831651,22831652,22831653,22831654,22831655,22831656,22831657,22831658,22831659,22831660?tags=papier,cartonnette,plastique,environnement,flou,Carton_gris,metal,Teint_Dans_La_Masse,Carton_brun,autre_refus,mal_croppe,kraft your option no_mail is active, we will not send the real mail to your client args[1357221057] : ('0.058536979270878975',) no score found for photo 1357221057 We are sending mail with results at report@fotonower.com args[1357221055] : ('0.058536979270878975',) no score found for photo 1357221055 We are sending mail with results at report@fotonower.com args[1357221051] : ('0.058536979270878975',) no score found for photo 1357221051 We are sending mail with results at report@fotonower.com args[1357220984] : ('0.058536979270878975',) no score found for photo 1357220984 We are sending mail with results at report@fotonower.com args[1357220979] : ('0.058536979270878975',) no score found for photo 1357220979 We are sending mail with results at report@fotonower.com args[1357220975] : ('0.058536979270878975',) no score found for photo 1357220975 We are sending mail with results at report@fotonower.com args[1357220971] : ('0.058536979270878975',) no score found for photo 1357220971 We are sending mail with results at report@fotonower.com args[1357220966] : ('0.058536979270878975',) no score found for photo 1357220966 We are sending mail with results at report@fotonower.com args[1357220770] : ('0.058536979270878975',) no score found for photo 1357220770 We are sending mail with results at report@fotonower.com args[1357220766] : ('0.058536979270878975',) no score found for photo 1357220766 We are sending mail with results at report@fotonower.com args[1357220763] : ('0.058536979270878975',) no score found for photo 1357220763 We are sending mail with results at report@fotonower.com args[1357220760] : ('0.058536979270878975',) no score found for photo 1357220760 We are sending mail with results at report@fotonower.com args[1357220756] : ('0.058536979270878975',) no score found for photo 1357220756 We are sending mail with results at report@fotonower.com refus_total : 0.058536979270878975 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=22831604 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_P22831604_09-05-2025_16_15_00.pdf results_Auto_P22831604_09-05-2025_16_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_15_00.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','22831604','results_Auto_P22831604_09-05-2025_16_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_15_00.pdf','pdf','','0.3','0.058536979270878975') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22831604]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] map_info['map_portfolio_photo'] : {22831604: [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756, 1357220649, 1357220620, 1357220602, 1357220593, 1357220564, 1357220549, 1357220417, 1357220389, 1357220368, 1357220340, 1357220308, 1357220278, 1357219997, 1357219994, 1357219989, 1357219968, 1357219870, 1357219863, 1357219836, 1357219830, 1357219827, 1357219823, 1357219759, 1357219755, 1357219733, 1357219719, 1357219681, 1357219677, 1357219673, 1357219671, 1357219668, 1357219664, 1357219635, 1357219627, 1357219597, 1357219592, 1357219587, 1357219535, 1357219531, 1357219527, 1357219483, 1357219479, 1357219463, 1357219459, 1357219405, 1357219401, 1357219397, 1357219394, 1357219383, 1357219376, 1357219313, 1357219307, 1357219301]} final : False mtd_id 4302 list_pids : [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] 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, '2812873') ('4302', '22831604', '1357221057', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221055', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221051', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220984', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220979', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220975', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220971', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220966', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220770', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220766', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220763', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220760', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220756', None, None, None, None, None, '2812873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22831604', '1357221057', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357221055', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357221051', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220984', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220979', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220975', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220971', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220966', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220770', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220766', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220763', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220760', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220756', None, None, None, None, None, '2812873')] time used for this insertion : 0.015472650527954102 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.891482830047607 time spend to save output : 0.01579570770263672 total time spend for step 4 : 5.907278537750244 step5:split_time_score Fri May 9 16:15:06 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 : ['22831604'] 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 : [('22831604',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22831604) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357221057: {'path': 'temp/1746800100_939443_1357221057_945bed1fbd4ec84f2ad3ea3ccd22666e.jpg', 'extension': 'jpg'}, 1357220756: {'path': 'temp/1746800100_939443_1357220756_7b46e59e0416492a93e625a5f0f059e4.jpg', 'extension': 'jpg'}, 1357220760: {'path': 'temp/1746800100_939443_1357220760_77a7ddf1a27cf8a7b926e71962addb3d.jpg', 'extension': 'jpg'}, 1357220763: {'path': 'temp/1746800100_939443_1357220763_f3c13f9e166d124cb7e2f5f1cf7ab4b4.jpg', 'extension': 'jpg'}, 1357220766: {'path': 'temp/1746800100_939443_1357220766_8a571a5c9278bcb903b9907f58573fcd.jpg', 'extension': 'jpg'}, 1357220770: {'path': 'temp/1746800100_939443_1357220770_176a018a185cc81942556add2bfeb3c6.jpg', 'extension': 'jpg'}, 1357220966: {'path': 'temp/1746800100_939443_1357220966_59852d36abc12b6d6c6ce37669753bba.jpg', 'extension': 'jpg'}, 1357220984: {'path': 'temp/1746800100_939443_1357220984_b7cef435d1bc61f3481712428ab97e5c.jpg', 'extension': 'jpg'}, 1357221051: {'path': 'temp/1746800100_939443_1357221051_75e48641c0674fd33071a748dc955dd1.jpg', 'extension': 'jpg'}, 1357221055: {'path': 'temp/1746800100_939443_1357221055_c0aee224da5695887315da98e2849b9b.jpg', 'extension': 'jpg'}, 1357220971: {'path': 'temp/1746800100_939443_1357220971_24768307319232486eed4841d71a57fc.jpg', 'extension': 'jpg'}, 1357220975: {'path': 'temp/1746800100_939443_1357220975_5bd520445c26cb17fd9d289dd79233c7.jpg', 'extension': 'jpg'}, 1357220979: {'path': 'temp/1746800100_939443_1357220979_ec79d6c39f9beafcaecd5372299b86a7.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 = 22831604; (('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 = 22831604 group by h (('16', 66),) 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=22831604 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 (22831604) 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 (22831604) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09052025 22831604 Nombre de photos uploadées : 66 / 23040 (0%) 09052025 22831604 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 09052025 22831604 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1357219313, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/013e52bfc30d60bab539d55c0fcd6d1c.jpg', 'username': None, 'uploaded_at': 1746799277, 'text': 'image_09052025_16_00_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357219307, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4f7613275a79edf016d772cf00500518.jpg', 'username': None, 'uploaded_at': 1746799277, 'text': 'image_09052025_16_00_34_009122m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357219301, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e6cf586792c065bb11fad5b211071e45.jpg', 'username': None, 'uploaded_at': 1746799277, 'text': 'image_09052025_16_00_44_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357219405, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/45f96254763b3c0821bb6ea63180cc93.jpg', 'username': None, 'uploaded_at': 1746799327, 'text': 'image_09052025_16_00_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031325817108154297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22831604, '2025-05-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1789478,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03079819679260254 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= 1789478 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22808280, 'dashboard_result_id': 10445697, '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_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22808548, 'dashboard_result_id': 10445698, '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_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22808912, 'dashboard_result_id': 10445699, '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_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22809471, 'dashboard_result_id': 10445700, '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_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22809829, 'dashboard_result_id': 10445701, '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_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22810325, 'dashboard_result_id': 10445702, '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_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22810785, 'dashboard_result_id': 10445703, '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_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22811272, 'dashboard_result_id': 10445704, '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_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22811687, 'dashboard_result_id': 10445705, '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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22812382, 'dashboard_result_id': 10445706, '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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22812747, 'dashboard_result_id': 10445707, '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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22813158, 'dashboard_result_id': 10445708, '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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22813765, 'dashboard_result_id': 10445709, '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_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22814401, 'dashboard_result_id': 10445710, '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_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22814870, 'dashboard_result_id': 10445711, '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_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22815465, 'dashboard_result_id': 10445712, '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_P22815465_09-05-2025_09_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22829434, 'dashboard_result_id': 10445713, '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_P22829434_09-05-2025_15_36_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22829435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22829436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22829437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22829438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22829439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22829440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22829441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22829442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22829443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22829444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22829445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22829446, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22830600, 'dashboard_result_id': 10445714, '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_P22830600_09-05-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22830665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22830666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22830667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22830668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22830669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22830670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22830671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22830672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22830673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22830674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22830675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22830676, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22831086, 'dashboard_result_id': 10445715, '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_P22831086_09-05-2025_16_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831127, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799486, 'mtr_portfolio_id': 22831604, 'dashboard_result_id': 10445716, '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_P22831604_09-05-2025_16_13_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831648, '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 = 22808280 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': 2810138, 'mtr_portfolio_id': 22808280, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 30), 'result': '0.06913327302407037', 'result_long': None, 'result_double': None}] Qualite : 0.06913327302407037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808280 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_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}" where mtr_portfolio_id = 22808280 and dashboard_run_id = 1799486 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`=22808280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445697, 0.06913327302407037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, '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 = 22808548 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': 2810139, 'mtr_portfolio_id': 22808548, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 58), 'result': '0.03951571250957044', 'result_long': None, 'result_double': None}] Qualite : 0.03951571250957044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808548 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_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}" where mtr_portfolio_id = 22808548 and dashboard_run_id = 1799486 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`=22808548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445698, 0.03951571250957044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, '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 = 22808912 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': 2810132, 'mtr_portfolio_id': 22808912, 'created_at': datetime.datetime(2025, 5, 9, 5, 50, 57), 'result': '0.03307885640778427', 'result_long': None, 'result_double': None}] Qualite : 0.03307885640778427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808912 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_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}" where mtr_portfolio_id = 22808912 and dashboard_run_id = 1799486 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`=22808912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445699, 0.03307885640778427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, '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 = 22809471 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': 2810189, 'mtr_portfolio_id': 22809471, 'created_at': datetime.datetime(2025, 5, 9, 6, 2, 59), 'result': '0.04790586201526422', 'result_long': None, 'result_double': None}] Qualite : 0.04790586201526422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809471 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_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}" where mtr_portfolio_id = 22809471 and dashboard_run_id = 1799486 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`=22809471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445700, 0.04790586201526422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, '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 = 22809829 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': 2810234, 'mtr_portfolio_id': 22809829, 'created_at': datetime.datetime(2025, 5, 9, 6, 18, 59), 'result': '0.056862605077740415', 'result_long': None, 'result_double': None}] Qualite : 0.056862605077740415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809829 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_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}" where mtr_portfolio_id = 22809829 and dashboard_run_id = 1799486 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`=22809829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445701, 0.056862605077740415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, '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 = 22810325 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': 2810278, 'mtr_portfolio_id': 22810325, 'created_at': datetime.datetime(2025, 5, 9, 6, 32, 57), 'result': '0.05784554719434019', 'result_long': None, 'result_double': None}] Qualite : 0.05784554719434019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810325 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_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}" where mtr_portfolio_id = 22810325 and dashboard_run_id = 1799486 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`=22810325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445702, 0.05784554719434019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, '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 = 22810785 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': 2810321, 'mtr_portfolio_id': 22810785, 'created_at': datetime.datetime(2025, 5, 9, 6, 48, 59), 'result': '0.04238890891936698', 'result_long': None, 'result_double': None}] Qualite : 0.04238890891936698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810785 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_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}" where mtr_portfolio_id = 22810785 and dashboard_run_id = 1799486 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`=22810785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445703, 0.04238890891936698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, '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 = 22811272 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': 2810366, 'mtr_portfolio_id': 22811272, 'created_at': datetime.datetime(2025, 5, 9, 7, 2, 58), 'result': '0.03954195196305571', 'result_long': None, 'result_double': None}] Qualite : 0.03954195196305571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811272 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_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}" where mtr_portfolio_id = 22811272 and dashboard_run_id = 1799486 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`=22811272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445704, 0.03954195196305571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, '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 = 22811687 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': 2810419, 'mtr_portfolio_id': 22811687, 'created_at': datetime.datetime(2025, 5, 9, 7, 21, 1), 'result': '0.040710775610379564', 'result_long': None, 'result_double': None}] Qualite : 0.040710775610379564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811687 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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}" where mtr_portfolio_id = 22811687 and dashboard_run_id = 1799486 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`=22811687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445705, 0.040710775610379564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, '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 = 22812382 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': 2810497, 'mtr_portfolio_id': 22812382, 'created_at': datetime.datetime(2025, 5, 9, 7, 33), 'result': '0.03290544309501728', 'result_long': None, 'result_double': None}] Qualite : 0.03290544309501728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812382 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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}" where mtr_portfolio_id = 22812382 and dashboard_run_id = 1799486 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`=22812382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445706, 0.03290544309501728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, '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 = 22812747 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': 2810539, 'mtr_portfolio_id': 22812747, 'created_at': datetime.datetime(2025, 5, 9, 7, 46, 59), 'result': '0.04560334557780507', 'result_long': None, 'result_double': None}] Qualite : 0.04560334557780507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812747 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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}" where mtr_portfolio_id = 22812747 and dashboard_run_id = 1799486 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`=22812747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445707, 0.04560334557780507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, '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 = 22813158 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': 2810590, 'mtr_portfolio_id': 22813158, 'created_at': datetime.datetime(2025, 5, 9, 8, 2, 58), 'result': '0.06227089715816248', 'result_long': None, 'result_double': None}] Qualite : 0.06227089715816248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813158 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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}" where mtr_portfolio_id = 22813158 and dashboard_run_id = 1799486 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`=22813158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445708, 0.06227089715816248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, '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 = 22813765 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': 2810664, 'mtr_portfolio_id': 22813765, 'created_at': datetime.datetime(2025, 5, 9, 8, 16, 59), 'result': '0.06385383787588404', 'result_long': None, 'result_double': None}] Qualite : 0.06385383787588404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813765 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_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}" where mtr_portfolio_id = 22813765 and dashboard_run_id = 1799486 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`=22813765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445709, 0.06385383787588404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, '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 = 22814401 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': 2810727, 'mtr_portfolio_id': 22814401, 'created_at': datetime.datetime(2025, 5, 9, 8, 33, 1), 'result': '0.05223752094263289', 'result_long': None, 'result_double': None}] Qualite : 0.05223752094263289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814401 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_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}" where mtr_portfolio_id = 22814401 and dashboard_run_id = 1799486 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`=22814401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445710, 0.05223752094263289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, '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 = 22814870 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': 2810791, 'mtr_portfolio_id': 22814870, 'created_at': datetime.datetime(2025, 5, 9, 8, 49), 'result': '0.029737422408573598', 'result_long': None, 'result_double': None}] Qualite : 0.029737422408573598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814870 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_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}" where mtr_portfolio_id = 22814870 and dashboard_run_id = 1799486 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`=22814870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445711, 0.029737422408573598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, '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 = 22815465 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': 2810899, 'mtr_portfolio_id': 22815465, 'created_at': datetime.datetime(2025, 5, 9, 9, 33, 31), 'result': '0.03761594021463628', 'result_long': None, 'result_double': None}] Qualite : 0.03761594021463628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22815465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22815465 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_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}" where mtr_portfolio_id = 22815465 and dashboard_run_id = 1799486 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`=22815465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445712, 0.03761594021463628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, '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 = 22829434 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': 2812646, 'mtr_portfolio_id': 22829434, 'created_at': datetime.datetime(2025, 5, 9, 15, 36, 57), 'result': '0.050340132920930314', 'result_long': None, 'result_double': None}] Qualite : 0.050340132920930314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22829434 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22829434_09-05-2025_15_36_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22829434 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_P22829434_09-05-2025_15_36_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22829435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22829436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22829437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22829438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22829439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22829440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22829441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22829442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22829443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22829444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22829445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22829446, 'pht': 3726}}" where mtr_portfolio_id = 22829434 and dashboard_run_id = 1799485 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`=22829434 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445713, 0.050340132920930314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22829434_09-05-2025_15_36_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22829435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22829436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22829437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22829438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22829439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22829440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22829441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22829442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22829443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22829444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22829445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22829446, '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 = 22830600 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': 2812769, 'mtr_portfolio_id': 22830600, 'created_at': datetime.datetime(2025, 5, 9, 15, 48, 57), 'result': '0.07664179499989596', 'result_long': None, 'result_double': None}] Qualite : 0.07664179499989596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22830600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22830600_09-05-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22830600 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_P22830600_09-05-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22830665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22830666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22830667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22830668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22830669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22830670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22830671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22830672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22830673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22830674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22830675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22830676, 'pht': 3726}}" where mtr_portfolio_id = 22830600 and dashboard_run_id = 1799485 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`=22830600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445714, 0.07664179499989596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22830600_09-05-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22830665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22830666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22830667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22830668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22830669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22830670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22830671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22830672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22830673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22830674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22830675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22830676, '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 = 22831086 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': 2812809, 'mtr_portfolio_id': 22831086, 'created_at': datetime.datetime(2025, 5, 9, 16, 2, 59), 'result': '0.059981122940922345', 'result_long': None, 'result_double': None}] Qualite : 0.059981122940922345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22831086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831086_09-05-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22831086 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_P22831086_09-05-2025_16_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831127, 'pht': 3726}}" where mtr_portfolio_id = 22831086 and dashboard_run_id = 1799485 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`=22831086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445715, 0.059981122940922345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831086_09-05-2025_16_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831127, '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 = 22831604 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': 2812873, 'mtr_portfolio_id': 22831604, 'created_at': datetime.datetime(2025, 5, 9, 16, 14, 59), 'result': '0.058536979270878975', 'result_long': None, 'result_double': None}] Qualite : 0.058536979270878975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22831604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22831604 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_P22831604_09-05-2025_16_15_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831648, 'pht': 3726}}" where mtr_portfolio_id = 22831604 and dashboard_run_id = 1799485 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`=22831604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10445716, 0.058536979270878975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_15_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831648, '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 (22808280,22808548,22808912,22809471,22809829,22810325,22810785,22811272,22811687,22812382,22812747,22813158,22813765,22814401,22814870,22815465,22829434,22830600,22831086,22831604) result : ((1357120566,), (1357120592,), (1357120613,), (1357120618,), (1357120620,), (1357120623,), (1357120642,), (1357120645,), (1357120716,), (1357120718,), (1357120992,), (1357121397,), (1357121425,), (1357121503,), (1357121506,), (1357121513,), (1357121547,), (1357121574,), (1357121576,), (1357121648,), (1357121645,), (1357121646,), (1357121647,), (1357121670,), (1357121672,), (1357121673,), (1357121698,), (1357121699,), (1357121700,), (1357121701,), (1357121725,), (1357121726,), (1357121728,), (1357121730,), (1357121731,), (1357121759,), (1357121762,), (1357121764,), (1357121767,), (1357121772,), (1357121812,), (1357121815,), (1357121817,), (1357121821,), (1357121823,), (1357121842,), (1357121843,), (1357121845,), (1357121847,), (1357121874,), (1357121877,), (1357122056,), (1357122058,), (1357122059,), (1357122060,), (1357122062,), (1357122086,), (1357122089,), (1357122091,), (1357122093,), (1357122096,), (1357122113,), (1357122114,), (1357122116,), (1357122118,), (1357122141,), (1357122143,), (1357122145,), (1357122147,), (1357122150,), (1357122176,), (1357122179,), (1357122181,), (1357122182,), (1357122184,), (1357122214,), (1357122216,), (1357122219,), (1357122256,), (1357122250,), (1357122252,), (1357122254,), (1357122281,), (1357122283,), (1357122285,), (1357122288,), (1357122290,), (1357122315,), (1357122316,), (1357122317,), (1357122318,), (1357122353,), (1357122355,), (1357122357,), (1357122387,), (1357122389,), (1357122391,), (1357122393,), (1357122394,), (1357122429,), (1357122431,), (1357122433,), (1357122435,), (1357122463,), (1357122465,), (1357122468,), (1357122470,), (1357122496,), (1357122498,), (1357122500,), (1357122502,), (1357122525,), (1357122527,), (1357122529,), (1357122532,), (1357122534,), (1357122555,), (1357122595,), (1357122600,), (1357122603,), (1357122607,), (1357122611,), (1357122642,), (1357122645,), (1357122648,), (1357122651,), (1357122685,), (1357122687,), (1357122689,), (1357122691,), (1357122694,), (1357122727,), (1357122728,), (1357122729,), (1357122730,), (1357122732,), (1357122733,), (1357122765,), (1357122766,), (1357122767,), (1357122814,), (1357122801,), (1357122804,), (1357122806,), (1357122809,), (1357122811,), (1357122839,), (1357122841,), (1357122844,), (1357122846,), (1357122849,), (1357122876,), (1357122878,), (1357122880,), (1357122882,), (1357122883,), (1357122912,), (1357122914,), (1357122917,), (1357122919,), (1357122923,), (1357122926,), (1357122952,), (1357122955,), (1357122957,), (1357122959,), (1357122995,), (1357122998,), (1357123001,), (1357123004,), (1357123007,), (1357123011,), (1357123050,), (1357123053,), (1357123055,), (1357123058,), (1357123061,), (1357123082,), (1357123084,), (1357123085,), (1357123114,), (1357123116,), (1357123118,), (1357123120,), (1357123123,), (1357123124,), (1357123149,), (1357123152,), (1357123154,), (1357123156,), (1357123158,), (1357123249,), (1357123252,), (1357123255,), (1357123290,), (1357123292,), (1357123295,), (1357123312,), (1357123343,), (1357123519,), (1357123530,), (1357123549,), (1357123561,), (1357123564,), (1357123615,), (1357123618,), (1357123623,), (1357123627,), (1357123671,), (1357123668,), (1357123704,), (1357123707,), (1357123709,), (1357123711,), (1357123713,), (1357123753,), (1357123755,), (1357123758,), (1357123760,), (1357123762,), (1357123793,), (1357123795,), (1357123797,), (1357123799,), (1357123801,), (1357123826,), (1357123828,), (1357123874,), (1357123876,), (1357123878,), (1357123880,), (1357123883,), (1357123884,), (1357123913,), (1357123915,), (1357123963,), (1357123965,), (1357123967,), (1357123970,), (1357123971,), (1357124002,), (1357124018,), (1357124035,), (1357124064,), (1357124067,), (1357124069,), (1357124073,), (1357124076,), (1357124077,), (1357124101,), (1357124103,), (1357124105,), (1357124107,), (1357124110,), (1357124128,), (1357124131,), (1357124133,), (1357124136,), (1357124138,), (1357124175,), (1357124178,), (1357124180,), (1357124211,), (1357124213,), (1357124217,), (1357124219,), (1357124221,), (1357124269,), (1357124258,), (1357124261,), (1357124263,), (1357124265,), (1357124267,), (1357124298,), (1357124299,), (1357124300,), (1357124342,), (1357124344,), (1357124346,), (1357124349,), (1357124380,), (1357124382,), (1357124384,), (1357124386,), (1357124423,), (1357124425,), (1357124427,), (1357124429,), (1357124473,), (1357124476,), (1357124479,), (1357124480,), (1357124482,), (1357124483,), (1357124526,), (1357124527,), (1357124530,), (1357124533,), (1357124538,), (1357124541,), (1357124572,), (1357124576,), (1357124578,), (1357124580,), (1357124581,), (1357124624,), (1357124649,), (1357124650,), (1357124651,), (1357124652,), (1357124695,), (1357124696,), (1357124697,), (1357124698,), (1357124723,), (1357124724,), (1357124725,), (1357124758,), (1357124760,), (1357124762,), (1357124800,), (1357124802,), (1357124804,), (1357124806,), (1357124809,), (1357124811,), (1357124840,), (1357124842,), (1357124844,), (1357124846,), (1357124851,), (1357124854,), (1357124898,), (1357124888,), (1357124891,), (1357124893,), (1357124926,), (1357124928,), (1357124930,), (1357124932,), (1357124934,), (1357124939,), (1357124968,), (1357124971,), (1357124974,), (1357124977,), (1357124981,), (1357124985,), (1357125023,), (1357125026,), (1357125028,), (1357125030,), (1357125032,), (1357125064,), (1357125066,), (1357125069,), (1357125072,), (1357125075,), (1357125076,), (1357125122,), (1357125127,), (1357125129,), (1357125132,), (1357125135,), (1357125170,), (1357125172,), (1357125174,), (1357125209,), (1357125212,), (1357125214,), (1357125216,), (1357125218,), (1357125222,), (1357125261,), (1357125263,), (1357125266,), (1357125269,), (1357125271,), (1357125276,), (1357125300,), (1357125304,), (1357125308,), (1357125347,), (1357125350,), (1357125353,), (1357125356,), (1357125359,), (1357125402,), (1357125404,), (1357125405,), (1357125406,), (1357125442,), (1357125444,), (1357125446,), (1357125495,), (1357125497,), (1357125498,), (1357125499,), (1357125502,), (1357125533,), (1357125535,), (1357125537,), (1357125539,), (1357125582,), (1357125576,), (1357125578,), (1357125580,), (1357125611,), (1357125613,), (1357125615,), (1357125616,), (1357125643,), (1357125645,), (1357125646,), (1357125647,), (1357125688,), (1357125690,), (1357125691,), (1357125692,), (1357125693,), (1357125696,), (1357125731,), (1357125847,), (1357125901,), (1357125904,), (1357125907,), (1357125935,), (1357125937,), (1357125939,), (1357125941,), (1357125943,), (1357125947,), (1357125972,), (1357125999,), (1357126035,), (1357126086,), (1357126145,), (1357126423,), (1357126438,), (1357126441,), (1357126443,), (1357126526,), (1357126534,), (1357126539,), (1357126545,), (1357126552,), (1357126557,), (1357126563,), (1357126564,), (1357126574,), (1357126580,), (1357126584,), (1357126611,), (1357126596,), (1357126601,), (1357126605,), (1357126607,), (1357126635,), (1357126644,), (1357126649,), (1357126687,), (1357126691,), (1357126694,), (1357126697,), (1357126743,), (1357126748,), (1357126753,), (1357126758,), (1357126762,), (1357126766,), (1357126808,), (1357126810,), (1357126812,), (1357126815,), (1357126819,), (1357126824,), (1357126858,), (1357126862,), (1357126867,), (1357126872,), (1357126913,), (1357126917,), (1357126921,), (1357126923,), (1357126927,), (1357126974,), (1357126979,), (1357126985,), (1357127012,), (1357127042,), (1357127164,), (1357127168,), (1357127173,), (1357127176,), (1357127179,), (1357127228,), (1357127232,), (1357127235,), (1357127239,), (1357127245,), (1357127251,), (1357127347,), (1357127352,), (1357127359,), (1357127474,), (1357127478,), (1357127483,), (1357127488,), (1357127491,), (1357127534,), (1357127539,), (1357127542,), (1357127545,), (1357127549,), (1357127573,), (1357127576,), (1357127580,), (1357127627,), (1357127632,), (1357127637,), (1357127641,), (1357127645,), (1357127648,), (1357127702,), (1357127691,), (1357127694,), (1357127696,), (1357127698,), (1357127741,), (1357127745,), (1357127748,), (1357127756,), (1357127830,), (1357127835,), (1357127885,), (1357127889,), (1357127891,), (1357127896,), (1357127935,), (1357127938,), (1357127942,), (1357127946,), (1357127983,), (1357127989,), (1357127993,), (1357127996,), (1357128034,), (1357128038,), (1357128043,), (1357128098,), (1357128101,), (1357128104,), (1357128108,), (1357128163,), (1357128168,), (1357128173,), (1357128178,), (1357128230,), (1357128234,), (1357128237,), (1357128241,), (1357128285,), (1357128296,), (1357128304,), (1357128348,), (1357128351,), (1357128355,), (1357128359,), (1357128364,), (1357128372,), (1357128533,), (1357128538,), (1357128542,), (1357128598,), (1357128602,), (1357128607,), (1357128659,), (1357128653,), (1357128656,), (1357128709,), (1357128714,), (1357128718,), (1357128722,), (1357128727,), (1357128732,), (1357128766,), (1357128772,), (1357128776,), (1357128783,), (1357128787,), (1357128819,), (1357128826,), (1357128830,), (1357128844,), (1357128902,), (1357128908,), (1357128913,), (1357128917,), (1357128921,), (1357128961,), (1357128966,), (1357128971,), (1357128976,), (1357129019,), (1357129027,), (1357129032,), (1357129034,), (1357129039,), (1357129075,), (1357129149,), (1357129205,), (1357129209,), (1357129212,), (1357129215,), (1357129219,), (1357129260,), (1357129265,), (1357129270,), (1357129315,), (1357129319,), (1357129330,), (1357129334,), (1357129350,), (1357129395,), (1357129399,), (1357129405,), (1357129411,), (1357129415,), (1357129463,), (1357129466,), (1357129470,), (1357129473,), (1357129543,), (1357129547,), (1357129551,), (1357129554,), (1357129591,), (1357129597,), (1357129703,), (1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,), (1357131639,), (1357131722,), (1357131784,), (1357131846,), (1357131900,), (1357131950,), (1357132198,), (1357132277,), (1357132361,), (1357132437,), (1357132822,), (1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,), (1357136279,), (1357136282,), (1357136284,), (1357136286,), (1357136290,), (1357136292,), (1357136342,), (1357136348,), (1357136352,), (1357136357,), (1357136363,), (1357136415,), (1357136406,), (1357136409,), (1357136413,), (1357136455,), (1357136459,), (1357136462,), (1357136466,), (1357136469,), (1357136471,), (1357136512,), (1357136515,), (1357136517,), (1357136524,), (1357136532,), (1357136540,), (1357136609,), (1357136613,), (1357136733,), (1357136737,), (1357136742,), (1357136746,), (1357136798,), (1357136811,), (1357136814,), (1357136816,), (1357136819,), (1357136862,), (1357136864,), (1357136867,), (1357136870,), (1357136873,), (1357136912,), (1357136913,), (1357136916,), (1357136919,), (1357136922,), (1357136965,), (1357136970,), (1357136972,), (1357136976,), (1357136979,), (1357136983,), (1357137032,), (1357137034,), (1357137036,), (1357137096,), (1357137130,), (1357137136,), (1357137138,), (1357137142,), (1357137170,), (1357137201,), (1357137203,), (1357137205,), (1357137207,), (1357137246,), (1357137250,), (1357137253,), (1357137255,), (1357137306,), (1357137319,), (1357137322,), (1357137325,), (1357137327,), (1357137333,), (1357137403,), (1357137376,), (1357137386,), (1357137391,), (1357137398,), (1357137433,), (1357137478,), (1357137482,), (1357137529,), (1357137532,), (1357137536,), (1357137543,), (1357137547,), (1357137551,), (1357137587,), (1357137592,), (1357137597,), (1357137601,), (1357137636,), (1357137639,), (1357137643,), (1357137647,), (1357137679,), (1357137683,), (1357137688,), (1357137693,), (1357137698,), (1357137739,), (1357137741,), (1357137743,), (1357137745,), (1357137746,), (1357137790,), (1357137793,), (1357137797,), (1357137800,), (1357137845,), (1357137847,), (1357137848,), (1357137850,), (1357137853,), (1357137857,), (1357137915,), (1357137924,), (1357137940,), (1357138012,), (1357138016,), (1357138018,), (1357138019,), (1357138067,), (1357138070,), (1357138074,), (1357138076,), (1357138080,), (1357138138,), (1357138141,), (1357138144,), (1357138148,), (1357138357,), (1357138471,), (1357138474,), (1357138479,), (1357138490,), (1357138494,), (1357138558,), (1357138546,), (1357138548,), (1357138551,), (1357138554,), (1357138601,), (1357138604,), (1357138607,), (1357138649,), (1357138657,), (1357138660,), (1357138672,), (1357138684,), (1357138775,), (1357138780,), (1357138784,), (1357138787,), (1357138790,), (1357138793,), (1357138852,), (1357138885,), (1357138902,), (1357138904,), (1357139094,), (1357139097,), (1357139099,), (1357139102,), (1357139105,), (1357139116,), (1357139183,), (1357139189,), (1357139206,), (1357139208,), (1357139277,), (1357139278,), (1357139280,), (1357139282,), (1357139284,), (1357139295,), (1357139471,), (1357139475,), (1357139478,), (1357139502,), (1357139631,), (1357139634,), (1357139638,), (1357139641,), (1357139645,), (1357139649,), (1357139774,), (1357139810,), (1357139845,), (1357139863,), (1357139877,), (1357140153,), (1357140163,), (1357140170,), (1357140176,), (1357140182,), (1357140189,), (1357140336,), (1357140373,), (1357140383,), (1357140390,), (1357140410,), (1357141591,), (1357141617,), (1357141646,), (1357141657,), (1357141689,), (1357141708,), (1357141731,), (1357141762,), (1357141810,), (1357141871,), (1357141899,), (1357147124,), (1357206894,), (1357206899,), (1357206940,), (1357207152,), (1357207189,), (1357207252,), (1357207306,), (1357207360,), (1357207658,), (1357207693,), (1357207711,), (1357207723,), (1357207739,), (1357207767,), (1357207887,), (1357207890,), (1357207893,), (1357207983,), (1357207986,), (1357207989,), (1357207991,), (1357207995,), (1357207999,), (1357208040,), (1357208044,), (1357208048,), (1357208099,), (1357208281,), (1357208454,), (1357208781,), (1357208785,), (1357208789,), (1357208793,), (1357208938,), (1357208966,), (1357208993,), (1357209019,), (1357209047,), (1357209052,), (1357209617,), (1357209675,), (1357209813,), (1357209863,), (1357210330,), (1357210384,), (1357210431,), (1357210823,), (1357211186,), (1357211215,), (1357211222,), (1357211224,), (1357211227,), (1357211260,), (1357211263,), (1357211268,), (1357211272,), (1357211523,), (1357211539,), (1357211542,), (1357211544,), (1357211549,), (1357211593,), (1357211599,), (1357211603,), (1357211607,), (1357213542,), (1357213528,), (1357213533,), (1357213539,), (1357213602,), (1357213701,), (1357213713,), (1357214071,), (1357214074,), (1357214328,), (1357214406,), (1357214434,), (1357214763,), (1357214799,), (1357215009,), (1357215013,), (1357215017,), (1357215024,), (1357215036,), (1357215324,), (1357215344,), (1357215347,), (1357215350,), (1357215544,), (1357215596,), (1357215646,), (1357215701,), (1357216036,), (1357216062,), (1357216088,), (1357216425,), (1357216414,), (1357216422,), (1357216877,), (1357216989,), (1357217018,), (1357217049,), (1357217075,), (1357217268,), (1357217273,), (1357217277,), (1357217280,), (1357217284,), (1357217291,), (1357217385,), (1357217388,), (1357217391,), (1357217393,), (1357217395,), (1357217444,), (1357217447,), (1357217450,), (1357217452,), (1357217495,), (1357217499,), (1357217505,), (1357217509,), (1357217512,), (1357217517,), (1357217544,), (1357217549,), (1357217554,), (1357217557,), (1357217564,), (1357217732,), (1357217747,), (1357217754,), (1357217758,), (1357217762,), (1357217767,), (1357217794,), (1357217799,), (1357217803,), (1357217806,), (1357217860,), (1357217892,), (1357217921,), (1357217948,), (1357217978,), (1357218008,), (1357218307,), (1357218310,), (1357218333,), (1357219047,), (1357219065,), (1357219099,), (1357219133,), (1357219157,), (1357219163,), (1357219207,), (1357219221,), (1357219235,), (1357219238,), (1357219241,), (1357219320,), (1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09052025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22831604]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] map_info['map_portfolio_photo'] : {22831604: [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756, 1357220649, 1357220620, 1357220602, 1357220593, 1357220564, 1357220549, 1357220417, 1357220389, 1357220368, 1357220340, 1357220308, 1357220278, 1357219997, 1357219994, 1357219989, 1357219968, 1357219870, 1357219863, 1357219836, 1357219830, 1357219827, 1357219823, 1357219759, 1357219755, 1357219733, 1357219719, 1357219681, 1357219677, 1357219673, 1357219671, 1357219668, 1357219664, 1357219635, 1357219627, 1357219597, 1357219592, 1357219587, 1357219535, 1357219531, 1357219527, 1357219483, 1357219479, 1357219463, 1357219459, 1357219405, 1357219401, 1357219397, 1357219394, 1357219383, 1357219376, 1357219313, 1357219307, 1357219301]} final : True mtd_id 4302 list_pids : [1357221057, 1357221055, 1357221051, 1357220984, 1357220979, 1357220975, 1357220971, 1357220966, 1357220770, 1357220766, 1357220763, 1357220760, 1357220756] Looping around the photos to save general results len do output : 1 /22831604Didn'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, '2812873') ('4302', '22831604', '1357221057', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221055', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357221051', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220984', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220979', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220975', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220971', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220966', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220770', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220766', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220763', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220760', None, None, None, None, None, '2812873') ('4302', None, None, None, None, None, None, None, '2812873') ('4302', '22831604', '1357220756', None, None, None, None, None, '2812873') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22831604', 'None', None, None, None, None, '2812873'), ('4302', '22831604', '1357221057', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357221055', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357221051', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220984', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220979', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220975', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220971', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220966', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220770', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220766', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220763', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220760', None, None, None, None, None, '2812873'), ('4302', '22831604', '1357220756', None, None, None, None, None, '2812873')] time used for this insertion : 0.01677417755126953 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3962180614471436 time spend to save output : 0.017047405242919922 total time spend for step 5 : 1.4132654666900635 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 (2812873) 2.40user 2.44system 0:10.97elapsed 44%CPU (0avgtext+0avgdata 160224maxresident)k 4168inputs+16096outputs (77major+76647minor)pagefaults 0swaps