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 : 1584960 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 (2798330) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2798330) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721235 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2798330'] with mtr_portfolio_ids : ['22721235'] and first list_photo_ids : [] new path : /proc/1584960/ Name: python3 Umask: 0002 State: R (running) Tgid: 1584960 Ngid: 0 Pid: 1584960 PPid: 1584959 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1584960 NSpid: 1584960 NSpgid: 1571134 NSsid: 1571134 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100528 kB VmRSS: 100528 kB RssAnon: 60192 kB RssFile: 40336 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 50 nonvoluntary_ctxt_switches: 70 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1584960', 'Ngid': '0', 'Pid': '1584960', 'PPid': '1584959', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1584960', 'NSpid': '1584960', 'NSpgid': '1571134', 'NSsid': '1571134', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100528 kB', 'VmRSS': '100528 kB', 'RssAnon': '60192 kB', 'RssFile': '40336 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '50', 'nonvoluntary_ctxt_switches': '70'} ('datou_batch_current', '1584960', '1107228', '0', '1107228', '865976', '100528', b'', 'marlene', '2798330') 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 (22721235) 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 (2798330 ) ) 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 (22721235) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356384555, 'portfolio_id': 22721235}, {'photo_id': 1356384524, 'portfolio_id': 22721235}, {'photo_id': 1356384483, 'portfolio_id': 22721235}, {'photo_id': 1356384452, 'portfolio_id': 22721235}, {'photo_id': 1356384052, 'portfolio_id': 22721235}, {'photo_id': 1356384011, 'portfolio_id': 22721235}, {'photo_id': 1356383982, 'portfolio_id': 22721235}, {'photo_id': 1356383849, 'portfolio_id': 22721235}, {'photo_id': 1356383819, 'portfolio_id': 22721235}, {'photo_id': 1356383790, 'portfolio_id': 22721235}, {'photo_id': 1356383614, 'portfolio_id': 22721235}, {'photo_id': 1356383595, 'portfolio_id': 22721235}, {'photo_id': 1356383590, 'portfolio_id': 22721235}, {'photo_id': 1356383575, 'portfolio_id': 22721235}, {'photo_id': 1356383570, 'portfolio_id': 22721235}, {'photo_id': 1356383565, 'portfolio_id': 22721235}, {'photo_id': 1356383561, 'portfolio_id': 22721235}, {'photo_id': 1356383557, 'portfolio_id': 22721235}, {'photo_id': 1356383546, 'portfolio_id': 22721235}, {'photo_id': 1356383234, 'portfolio_id': 22721235}, {'photo_id': 1356383212, 'portfolio_id': 22721235}, {'photo_id': 1356383207, 'portfolio_id': 22721235}, {'photo_id': 1356383202, 'portfolio_id': 22721235}, {'photo_id': 1356383131, 'portfolio_id': 22721235}, {'photo_id': 1356383129, 'portfolio_id': 22721235}, {'photo_id': 1356383125, 'portfolio_id': 22721235}, {'photo_id': 1356383122, 'portfolio_id': 22721235}, {'photo_id': 1356383118, 'portfolio_id': 22721235}, {'photo_id': 1356383115, 'portfolio_id': 22721235}, {'photo_id': 1356383086, 'portfolio_id': 22721235}, {'photo_id': 1356383078, 'portfolio_id': 22721235}, {'photo_id': 1356383075, 'portfolio_id': 22721235}, {'photo_id': 1356383071, 'portfolio_id': 22721235}, {'photo_id': 1356383023, 'portfolio_id': 22721235}, {'photo_id': 1356383006, 'portfolio_id': 22721235}, {'photo_id': 1356382993, 'portfolio_id': 22721235}, {'photo_id': 1356382983, 'portfolio_id': 22721235}, {'photo_id': 1356382959, 'portfolio_id': 22721235}, {'photo_id': 1356382954, 'portfolio_id': 22721235}, {'photo_id': 1356382939, 'portfolio_id': 22721235}, {'photo_id': 1356382914, 'portfolio_id': 22721235}, {'photo_id': 1356382857, 'portfolio_id': 22721235}, {'photo_id': 1356382852, 'portfolio_id': 22721235}, {'photo_id': 1356382754, 'portfolio_id': 22721235}, {'photo_id': 1356382742, 'portfolio_id': 22721235}, {'photo_id': 1356382736, 'portfolio_id': 22721235}, {'photo_id': 1356382727, 'portfolio_id': 22721235}, {'photo_id': 1356382725, 'portfolio_id': 22721235}, {'photo_id': 1356382596, 'portfolio_id': 22721235}, {'photo_id': 1356382593, 'portfolio_id': 22721235}, {'photo_id': 1356382591, 'portfolio_id': 22721235}, {'photo_id': 1356382588, 'portfolio_id': 22721235}, {'photo_id': 1356382581, 'portfolio_id': 22721235}, {'photo_id': 1356382543, 'portfolio_id': 22721235}, {'photo_id': 1356382537, 'portfolio_id': 22721235}, {'photo_id': 1356382530, 'portfolio_id': 22721235}, {'photo_id': 1356382526, 'portfolio_id': 22721235}, {'photo_id': 1356382341, 'portfolio_id': 22721235}, {'photo_id': 1356382331, 'portfolio_id': 22721235}, {'photo_id': 1356382326, 'portfolio_id': 22721235}, {'photo_id': 1356382323, 'portfolio_id': 22721235}, {'photo_id': 1356382320, 'portfolio_id': 22721235}, {'photo_id': 1356382308, 'portfolio_id': 22721235}, {'photo_id': 1356382126, 'portfolio_id': 22721235}, {'photo_id': 1356382124, 'portfolio_id': 22721235}, {'photo_id': 1356382122, 'portfolio_id': 22721235}, {'photo_id': 1356382090, 'portfolio_id': 22721235}, {'photo_id': 1356382060, 'portfolio_id': 22721235}] map_portfolio_id_photo_id: {22721235: [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790, 1356383614, 1356383595, 1356383590, 1356383575, 1356383570, 1356383565, 1356383561, 1356383557, 1356383546, 1356383234, 1356383212, 1356383207, 1356383202, 1356383131, 1356383129, 1356383125, 1356383122, 1356383118, 1356383115, 1356383086, 1356383078, 1356383075, 1356383071, 1356383023, 1356383006, 1356382993, 1356382983, 1356382959, 1356382954, 1356382939, 1356382914, 1356382857, 1356382852, 1356382754, 1356382742, 1356382736, 1356382727, 1356382725, 1356382596, 1356382593, 1356382591, 1356382588, 1356382581, 1356382543, 1356382537, 1356382530, 1356382526, 1356382341, 1356382331, 1356382326, 1356382323, 1356382320, 1356382308, 1356382126, 1356382124, 1356382122, 1356382090, 1356382060]} ##### 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.01635265350341797 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue May 6 19:00: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 (22721235) 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 : 22721235 get user id for portfolio 22721235 get sub ptf for main ptf 22721235, type 3726 and hashtags ['mal_croppe', 'environnement', 'Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'autre_refus', 'flou', 'plastique', 'papier', 'metal', '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`=22721235 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','flou','plastique','papier','metal','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`=22721235 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','flou','plastique','papier','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22721235, 'sub_port_id': 22721266, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136756, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22721235, 'sub_port_id': 22721267, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136757, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'mal_croppe': {'main_port_id': 22721235, 'sub_port_id': 22721268, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136758, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'flou': {'main_port_id': 22721235, 'sub_port_id': 22721269, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136759, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'cartonnette': {'main_port_id': 22721235, 'sub_port_id': 22721270, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136760, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'Carton_gris': {'main_port_id': 22721235, 'sub_port_id': 22721271, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136761, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'environnement': {'main_port_id': 22721235, 'sub_port_id': 22721272, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136762, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'plastique': {'main_port_id': 22721235, 'sub_port_id': 22721273, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136763, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'kraft': {'main_port_id': 22721235, 'sub_port_id': 22721274, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136764, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'papier': {'main_port_id': 22721235, 'sub_port_id': 22721275, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136765, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'Carton_brun': {'main_port_id': 22721235, 'sub_port_id': 22721276, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136766, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}, 'autre_refus': {'main_port_id': 22721235, 'sub_port_id': 22721277, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136767, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22721266 , 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=22721235 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 (22721266) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721267 , 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=22721235 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 (22721267) result : ((1356382674,), (1356382676,), (1356382791,), (1356382907,), (1356383027,), (1356383082,), (1356383089,), (1356383090,), (1356383091,), (1356383092,), (1356383270,), (1356383724,), (1356384251,), (1356384284,), (1356384285,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721268 , 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=22721235 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 (22721268) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721269 , 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=22721235 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 (22721269) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721270 , 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=22721235 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 (22721270) result : ((1356382796,), (1356382797,), (1356383033,), (1356383034,), (1356383097,), (1356383098,), (1356383736,), (1356383737,), (1356384259,), (1356384331,), (1356384332,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721271 , 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=22721235 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 (22721271) result : ((1356382694,), (1356382695,), (1356382697,), (1356382698,), (1356382699,), (1356382700,), (1356382902,), (1356382904,), (1356382922,), (1356383083,), (1356383281,), (1356383731,), (1356383732,), (1356383734,), (1356383735,), (1356384308,), (1356384309,), (1356384310,), (1356384311,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721272 , 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=22721235 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 (22721272) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721273 , 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=22721235 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 (22721273) result : ((1356382798,), (1356382799,), (1356382929,), (1356383036,), (1356383037,), (1356383038,), (1356383308,), (1356384278,), (1356384377,), (1356384379,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721274 , 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=22721235 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 (22721274) result : ((1356382709,), (1356383100,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721275 , 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=22721235 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 (22721275) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721276 , 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=22721235 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 (22721276) result : ((1356382703,), (1356382704,), (1356382705,), (1356382706,), (1356382707,), (1356382708,), (1356382919,), (1356382921,), (1356382935,), (1356382936,), (1356382937,), (1356383084,), (1356383099,), (1356383286,), (1356383739,), (1356384275,), (1356384276,), (1356384360,), (1356384363,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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 22721277 , 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=22721235 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 (22721277) result : ((1356382684,), (1356382686,), (1356382793,), (1356382794,), (1356382892,), (1356382913,), (1356383029,), (1356383030,), (1356383095,), (1356383276,), (1356383726,), (1356383727,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22721235) result : ((1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) 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`=22721235 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','flou','plastique','papier','metal','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`=22721235 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','flou','plastique','papier','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22721235, 'sub_port_id': 22721278, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136768, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22721235, 'sub_port_id': 22721279, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136769, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'mal_croppe': {'main_port_id': 22721235, 'sub_port_id': 22721280, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136770, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'flou': {'main_port_id': 22721235, 'sub_port_id': 22721281, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136771, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'cartonnette': {'main_port_id': 22721235, 'sub_port_id': 22721282, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136772, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'Carton_gris': {'main_port_id': 22721235, 'sub_port_id': 22721283, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136773, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'environnement': {'main_port_id': 22721235, 'sub_port_id': 22721284, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136774, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'plastique': {'main_port_id': 22721235, 'sub_port_id': 22721285, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136775, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'kraft': {'main_port_id': 22721235, 'sub_port_id': 22721286, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136776, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'papier': {'main_port_id': 22721235, 'sub_port_id': 22721287, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136777, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'Carton_brun': {'main_port_id': 22721235, 'sub_port_id': 22721288, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136778, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}, 'autre_refus': {'main_port_id': 22721235, 'sub_port_id': 22721289, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15136779, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721278,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721266 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22721289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22721277 lien utilise dans velours : https://www.fotonower.com/velours/22721278,22721279,22721280,22721281,22721282,22721283,22721284,22721285,22721286,22721287,22721288,22721289?tags=metal,Teint_Dans_La_Masse,mal_croppe,flou,cartonnette,Carton_gris,environnement,plastique,kraft,papier,Carton_brun,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22721235]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] map_info['map_portfolio_photo'] : {22721235: [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790, 1356383614, 1356383595, 1356383590, 1356383575, 1356383570, 1356383565, 1356383561, 1356383557, 1356383546, 1356383234, 1356383212, 1356383207, 1356383202, 1356383131, 1356383129, 1356383125, 1356383122, 1356383118, 1356383115, 1356383086, 1356383078, 1356383075, 1356383071, 1356383023, 1356383006, 1356382993, 1356382983, 1356382959, 1356382954, 1356382939, 1356382914, 1356382857, 1356382852, 1356382754, 1356382742, 1356382736, 1356382727, 1356382725, 1356382596, 1356382593, 1356382591, 1356382588, 1356382581, 1356382543, 1356382537, 1356382530, 1356382526, 1356382341, 1356382331, 1356382326, 1356382323, 1356382320, 1356382308, 1356382126, 1356382124, 1356382122, 1356382090, 1356382060]} final : False mtd_id 4302 list_pids : [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] Looping around the photos to save general results len do output : 1 /22721235. 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, '2798330') ('4302', '22721235', '1356384555', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384524', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384483', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384452', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384052', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384011', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383982', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383849', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383819', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383790', None, None, None, None, None, '2798330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22721235', "{'metal': 22721266, 'Teint_Dans_La_Masse': 22721267, 'mal_croppe': 22721268, 'flou': 22721269, 'cartonnette': 22721270, 'Carton_gris': 22721271, 'environnement': 22721272, 'plastique': 22721273, 'kraft': 22721274, 'papier': 22721275, 'Carton_brun': 22721276, 'autre_refus': 22721277}", None, None, None, None, '2798330'), ('4302', '22721235', '1356384555', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384524', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384483', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384452', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384052', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384011', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383982', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383849', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383819', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383790', None, None, None, None, None, '2798330')] time used for this insertion : 0.014912128448486328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4669036865234375 time spend to save output : 0.015264034271240234 total time spend for step 1 : 1.4821677207946777 step2:final Tue May 6 19:01: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 ! 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 (22721235) 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 22721235 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356382126,1356382124,1356382122,1356382090,1356382060,1356382341,1356382331,1356382326,1356382323,1356382320,1356382308,1356382543,1356382537,1356382530,1356382526,1356382596,1356382593,1356382591,1356382588,1356382581,1356382754,1356382742,1356382736,1356382727,1356382725,1356382939,1356382914,1356382857,1356382852,1356383023,1356383006,1356382993,1356382983,1356382959,1356382954,1356383086,1356383078,1356383075,1356383071,1356383131,1356383129,1356383125,1356383122,1356383118,1356383115,1356383234,1356383212,1356383207,1356383202,1356383575,1356383570,1356383565,1356383561,1356383557,1356383546,1356383614,1356383595,1356383590,1356384052,1356384011,1356383982,1356383849,1356383819,1356383790,1356384555,1356384524,1356384483,1356384452); 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([22721235]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} new output for save of step final : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] map_info['map_portfolio_photo'] : {22721235: [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790, 1356383614, 1356383595, 1356383590, 1356383575, 1356383570, 1356383565, 1356383561, 1356383557, 1356383546, 1356383234, 1356383212, 1356383207, 1356383202, 1356383131, 1356383129, 1356383125, 1356383122, 1356383118, 1356383115, 1356383086, 1356383078, 1356383075, 1356383071, 1356383023, 1356383006, 1356382993, 1356382983, 1356382959, 1356382954, 1356382939, 1356382914, 1356382857, 1356382852, 1356382754, 1356382742, 1356382736, 1356382727, 1356382725, 1356382596, 1356382593, 1356382591, 1356382588, 1356382581, 1356382543, 1356382537, 1356382530, 1356382526, 1356382341, 1356382331, 1356382326, 1356382323, 1356382320, 1356382308, 1356382126, 1356382124, 1356382122, 1356382090, 1356382060]} final : False mtd_id 4302 list_pids : [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] Looping around the photos to save general results len do output : 10 /1356384555.Didn't retrieve data . /1356384524.Didn't retrieve data . /1356384483.Didn't retrieve data . /1356384452.Didn't retrieve data . /1356384052.Didn't retrieve data . /1356384011.Didn't retrieve data . /1356383982.Didn't retrieve data . /1356383849.Didn't retrieve data . /1356383819.Didn't retrieve data . /1356383790.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, '2798330') ('4302', '22721235', '1356384555', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384524', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384483', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384452', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384052', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384011', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383982', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383849', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383819', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383790', None, None, None, None, None, '2798330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22721235', '1356384555', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356384524', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356384483', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356384452', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356384052', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356384011', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356383982', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356383849', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356383819', '0.03811303494110393', None, None, None, None, '2798330'), ('4302', '22721235', '1356383790', '0.03811303494110393', None, None, None, None, '2798330')] time used for this insertion : 0.013936996459960938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07468986511230469 time spend to save output : 0.014240741729736328 total time spend for step 2 : 0.08893060684204102 step3:velours_tree Tue May 6 19:01: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 complete output_args for input 0 : {22721235: [{'metal': 22721266, 'Teint_Dans_La_Masse': 22721267, 'mal_croppe': 22721268, 'flou': 22721269, 'cartonnette': 22721270, 'Carton_gris': 22721271, 'environnement': 22721272, 'plastique': 22721273, 'kraft': 22721274, 'papier': 22721275, 'Carton_brun': 22721276, 'autre_refus': 22721277}]} input_args_next_step : {22721235: ()} output_args : {22721235: [{'metal': 22721266, 'Teint_Dans_La_Masse': 22721267, 'mal_croppe': 22721268, 'flou': 22721269, 'cartonnette': 22721270, 'Carton_gris': 22721271, 'environnement': 22721272, 'plastique': 22721273, 'kraft': 22721274, 'papier': 22721275, 'Carton_brun': 22721276, 'autre_refus': 22721277}]} args : 22721235 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 : ({'metal': 22721266, 'Teint_Dans_La_Masse': 22721267, 'mal_croppe': 22721268, 'flou': 22721269, 'cartonnette': 22721270, 'Carton_gris': 22721271, 'environnement': 22721272, 'plastique': 22721273, 'kraft': 22721274, 'papier': 22721275, 'Carton_brun': 22721276, 'autre_refus': 22721277},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22721235) 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([22721235]) 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.32177066802978516 time spend to save output : 4.696846008300781e-05 total time spend for step 3 : 0.32181763648986816 step4:send_mail_cod Tue May 6 19:01: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 : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} input_args_next_step : {1356384555: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356384555 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356384524 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356384483 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356384452 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356384052 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356384011 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356383982 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356383849 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356383819 depend.output_id : 0 input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ()} output_args : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',)} args : 1356383790 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 : {22721235: [{'metal': 22721266, 'Teint_Dans_La_Masse': 22721267, 'mal_croppe': 22721268, 'flou': 22721269, 'cartonnette': 22721270, 'Carton_gris': 22721271, 'environnement': 22721272, 'plastique': 22721273, 'kraft': 22721274, 'papier': 22721275, 'Carton_brun': 22721276, 'autre_refus': 22721277}]} input_args_next_step : {1356384555: ('0.03811303494110393',), 1356384524: ('0.03811303494110393',), 1356384483: ('0.03811303494110393',), 1356384452: ('0.03811303494110393',), 1356384052: ('0.03811303494110393',), 1356384011: ('0.03811303494110393',), 1356383982: ('0.03811303494110393',), 1356383849: ('0.03811303494110393',), 1356383819: ('0.03811303494110393',), 1356383790: ('0.03811303494110393',), 22721235: ()} output_args : {22721235: [{'metal': 22721266, 'Teint_Dans_La_Masse': 22721267, 'mal_croppe': 22721268, 'flou': 22721269, 'cartonnette': 22721270, 'Carton_gris': 22721271, 'environnement': 22721272, 'plastique': 22721273, 'kraft': 22721274, 'papier': 22721275, 'Carton_brun': 22721276, 'autre_refus': 22721277}]} args : 22721235 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 :11, first value : ('0.03811303494110393',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22721235) 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 (1356384555,1356384524,1356384483,1356384452,1356384052,1356384011,1356383982,1356383849,1356383819,1356383790) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356383790 begin to download photo : 1356383982 begin to download photo : 1356384452 begin to download photo : 1356384555 download finish for photo 1356384555 download finish for photo 1356384452 begin to download photo : 1356384483 download finish for photo 1356383790 begin to download photo : 1356383819 download finish for photo 1356383982 begin to download photo : 1356384011 download finish for photo 1356383819 begin to download photo : 1356383849 download finish for photo 1356384483 begin to download photo : 1356384524 download finish for photo 1356384011 begin to download photo : 1356384052 download finish for photo 1356383849 download finish for photo 1356384524 download finish for photo 1356384052 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette227212661746550860/ imagette227212681746550860/ imagette227212691746550860/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22721235_06-05-2025_19_01_00.pdf 22721266 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=22721266 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227212661746550860 22721268 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=22721268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227212681746550860 22721269 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=22721269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227212691746550860 22721270 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=22721270 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356382796: '1746550211_1690551_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786636335_0.png', 1356382797: '1746550211_1690551_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636350_0.png', 1356383033: '1746550333_1692060_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786636335_0.png', 1356383034: '1746550333_1692060_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636350_0.png', 1356383097: '1746550405_3359721_1356382939_32d970b261cfb51d9e030d0cacc2b156_rle_crop_3786637657_0.png', 1356383098: '1746550405_3359721_1356382727_bb86fd2bf0a533d1dc04c2c982a29297_rle_crop_3786637709_0.png', 1356383736: '1746550647_3363790_1356383234_2e6f2381f1db990650a492429bf079ef_rle_crop_3786648979_0.png', 1356383737: '1746550647_3363790_1356383129_2d0ccff7e6de8fc02c0576a66d989bb4_rle_crop_3786648988_0.png', 1356384259: '1746550766_3366507_1356383590_69f765d8567349febf1137e601987b14_rle_crop_3786649464_0.png', 1356384331: '1746550752_1696141_1356383614_72adb9c51c84a63cf70805fd1cb3e2b1_rle_crop_3786649478_0.png', 1356384332: '1746550752_1696141_1356383561_f3a9de78df0019a4b1aef84e6fc16a34_rle_crop_3786649522_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/49aeb91e49f38610c614f8fc368d4e41_93061344.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/14207091fcebf4c9f1743010936f3389_42371023.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/49aeb91e49f38610c614f8fc368d4e41_96303962.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/14207091fcebf4c9f1743010936f3389_56711320.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/b3d61c9288a6a9a07d1ea2bb2cdabddc_91655636.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/0002758779454ddd704f5599ea5d21c7_3521046.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/5d4b9fa7b25d4be11c5f85af28435df2_51945600.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/9e4e10f6a6d300d3e07e104d79b45a53_8257300.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/f46aba8a343ef25c6ed5062c04a73722_98557759.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ebdce2cdb6a4a1fabde62e3117d596e1_57319299.png change filename to text .imagette227212701746550860/ imagette227212701746550860/1746550405_3359721_1356382727_bb86fd2bf0a533d1dc04c2c982a29297_rle_crop_3786637709_0.png.png imagette227212701746550860/1746550333_1692060_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786636335_0.png.png imagette227212701746550860/1746550333_1692060_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636350_0.png.png imagette227212701746550860/1746550752_1696141_1356383614_72adb9c51c84a63cf70805fd1cb3e2b1_rle_crop_3786649478_0.png.png imagette227212701746550860/1746550211_1690551_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636350_0.png.png imagette227212701746550860/1746550647_3363790_1356383129_2d0ccff7e6de8fc02c0576a66d989bb4_rle_crop_3786648988_0.png.png imagette227212701746550860/1746550766_3366507_1356383590_69f765d8567349febf1137e601987b14_rle_crop_3786649464_0.png.png imagette227212701746550860/1746550405_3359721_1356382939_32d970b261cfb51d9e030d0cacc2b156_rle_crop_3786637657_0.png.png imagette227212701746550860/1746550211_1690551_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786636335_0.png.png imagette227212701746550860/1746550647_3363790_1356383234_2e6f2381f1db990650a492429bf079ef_rle_crop_3786648979_0.png.png imagette227212701746550860/1746550752_1696141_1356383561_f3a9de78df0019a4b1aef84e6fc16a34_rle_crop_3786649522_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/385c9f5581a476732da46417e7f4c8af_75359206.png imagette227212701746550860 22721273 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=22721273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356382798: '1746550211_1690551_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786636332_0.png', 1356382799: '1746550211_1690551_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636349_0.png', 1356382929: '1746550286_3355775_1356382596_9106de651be023d6a7fc95f0e67d7cf0_rle_crop_3786636687_0.png', 1356383036: '1746550333_1692060_1356382331_38f205134809ff64d90e7c702f6f5536_bib_crop_3786636332_0.jpg', 1356383037: '1746550333_1692060_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786637180_0.png', 1356383038: '1746550333_1692060_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636349_0.png', 1356383308: '1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640809_0.png', 1356384278: '1746550766_3366507_1356383595_4c72bb1941de9037604513f0854b1b4f_rle_crop_3786649450_0.png', 1356384377: '1746550752_1696141_1356383570_1c803a9e668f70aab3d09961abf9df43_rle_crop_3786649496_0.png', 1356384379: '1746550752_1696141_1356383570_1c803a9e668f70aab3d09961abf9df43_rle_crop_3786649495_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/04146fef032619bbcda7f5a4c4ab4bd3_72250565.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/1afc0bc293449b7bf3a6875172d57044_52062633.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/6a1ab091b0d9b0b74cd3e9b080e32382_78114914.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/098152aeeff4fc011a324e21eec125ec_15404475.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4718814525f267d115a136f1c4ff0fbd_75262436.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/1afc0bc293449b7bf3a6875172d57044_74063308.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/3f69b03bb6744414ebd0a5ba9cf28c7d_5041213.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7bf2d35019f0e3fcc3853ccf79618f23_29093244.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/10d278befe64c01b2a318232e23f8cb2_97841619.png change filename to text .imagette227212731746550861/ imagette227212731746550861/1746550333_1692060_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786637180_0.png.png imagette227212731746550861/1746550211_1690551_1356382331_38f205134809ff64d90e7c702f6f5536_rle_crop_3786636332_0.png.png imagette227212731746550861/1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640809_0.png.png imagette227212731746550861/1746550286_3355775_1356382596_9106de651be023d6a7fc95f0e67d7cf0_rle_crop_3786636687_0.png.png imagette227212731746550861/1746550752_1696141_1356383570_1c803a9e668f70aab3d09961abf9df43_rle_crop_3786649496_0.png.png imagette227212731746550861/1746550333_1692060_1356382331_38f205134809ff64d90e7c702f6f5536_bib_crop_3786636332_0.jpg.jpg imagette227212731746550861/1746550211_1690551_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636349_0.png.png imagette227212731746550861/1746550752_1696141_1356383570_1c803a9e668f70aab3d09961abf9df43_rle_crop_3786649495_0.png.png imagette227212731746550861/1746550333_1692060_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636349_0.png.png imagette227212731746550861/1746550766_3366507_1356383595_4c72bb1941de9037604513f0854b1b4f_rle_crop_3786649450_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/de2dbe0de7e9636ae2631f6e1532298c_44626694.png imagette227212731746550861 22721274 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=22721274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356382709: '1746550167_3352792_1356382126_46344818d7e6cd0db9849e02b78eb281_rle_crop_3786635754_0.png', 1356383100: '1746550405_3359721_1356382939_32d970b261cfb51d9e030d0cacc2b156_rle_crop_3786637651_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/2ed4e1071ba265960207bf7fa9b09add_31520681.png change filename to text .imagette227212741746550862/ imagette227212741746550862/1746550167_3352792_1356382126_46344818d7e6cd0db9849e02b78eb281_rle_crop_3786635754_0.png.png imagette227212741746550862/1746550405_3359721_1356382939_32d970b261cfb51d9e030d0cacc2b156_rle_crop_3786637651_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7698479840f06ec203a2e10801a48a46_65566310.png imagette227212741746550862 22721277 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=22721277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356382684: '1746550167_3352792_1356382341_dfc1daf9db3baed77b906aac4ef86d94_rle_crop_3786635731_0.png', 1356382686: '1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635927_0.png', 1356382793: '1746550211_1690551_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636348_0.png', 1356382794: '1746550211_1690551_1356382308_3d03e8cb64e29bb0e1343f6c01d9e111_rle_crop_3786636386_0.png', 1356382892: '1746550286_3355775_1356382526_bc72bfe9ac5bddb0515919204974199a_rle_crop_3786636721_0.png', 1356382913: '1746550272_1691352_1356382591_1d00aeb6e8d26dbc3a68b4edb32f9185_rle_crop_3786636731_0.png', 1356383029: '1746550333_1692060_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636348_0.png', 1356383030: '1746550333_1692060_1356382308_3d03e8cb64e29bb0e1343f6c01d9e111_rle_crop_3786636386_0.png', 1356383095: '1746550405_3359721_1356382736_bf663b6d43186468a6387524eaa93cb7_rle_crop_3786637701_0.png', 1356383276: '1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640812_0.png', 1356383726: '1746550647_3363790_1356383125_3b06f8d2e31b496fd388663abcbb33bc_rle_crop_3786648999_0.png', 1356383727: '1746550647_3363790_1356383115_61e5ccc9f486be56244d03fa33f5b630_rle_crop_3786649036_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/62fb2761ade075a02ca7d125ba854ff4_15724012.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/152e98e6e1fb3c58ce692c4616b21e7f_50776874.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/fc3ab75d052ed6647fa4beb8773a579e_75339372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7850d0e04d1c2b9df458520eda66748a_5342611.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/71ab07f20410006732587ec4b016f101_30151026.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/99258c14d27dd01047740c62d2cbe06e_9140271.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/fc3ab75d052ed6647fa4beb8773a579e_3116809.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7850d0e04d1c2b9df458520eda66748a_32772316.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/c8688b0d81d58a2b2cdd68ee50562982_30500088.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/64dd2d04378517d44d920318ab9c4a7d_77753283.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/8443f20d8f21efb4db0fcff6e3f61e3e_42625865.png change filename to text .imagette227212771746550862/ imagette227212771746550862/1746550272_1691352_1356382591_1d00aeb6e8d26dbc3a68b4edb32f9185_rle_crop_3786636731_0.png.png imagette227212771746550862/1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635927_0.png.png imagette227212771746550862/1746550333_1692060_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636348_0.png.png imagette227212771746550862/1746550333_1692060_1356382308_3d03e8cb64e29bb0e1343f6c01d9e111_rle_crop_3786636386_0.png.png imagette227212771746550862/1746550211_1690551_1356382308_3d03e8cb64e29bb0e1343f6c01d9e111_rle_crop_3786636386_0.png.png imagette227212771746550862/1746550405_3359721_1356382736_bf663b6d43186468a6387524eaa93cb7_rle_crop_3786637701_0.png.png imagette227212771746550862/1746550167_3352792_1356382341_dfc1daf9db3baed77b906aac4ef86d94_rle_crop_3786635731_0.png.png imagette227212771746550862/1746550286_3355775_1356382526_bc72bfe9ac5bddb0515919204974199a_rle_crop_3786636721_0.png.png imagette227212771746550862/1746550211_1690551_1356382326_7fc95a9091aba7e231d12a595c910a5b_rle_crop_3786636348_0.png.png imagette227212771746550862/1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640812_0.png.png imagette227212771746550862/1746550647_3363790_1356383115_61e5ccc9f486be56244d03fa33f5b630_rle_crop_3786649036_0.png.png imagette227212771746550862/1746550647_3363790_1356383125_3b06f8d2e31b496fd388663abcbb33bc_rle_crop_3786648999_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/94f6196a268a67e7818d79d3c6971b96_91707624.png imagette227212771746550862 22721267 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=22721267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356382674: '1746550167_3352792_1356382341_dfc1daf9db3baed77b906aac4ef86d94_rle_crop_3786635729_0.png', 1356382676: '1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635931_0.png', 1356382791: '1746550211_1690551_1356382323_295c7795816698c81ca7dd87e0373537_rle_crop_3786636357_0.png', 1356382907: '1746550272_1691352_1356382581_7c8531debb61d9f398dfdd01abd1d6c1_rle_crop_3786636890_0.png', 1356383027: '1746550333_1692060_1356382323_295c7795816698c81ca7dd87e0373537_rle_crop_3786636357_0.png', 1356383082: '1746550391_1692532_1356382857_2126ba9d264dacf3af9ae1fc4a75d432_rle_crop_3786637676_0.png', 1356383089: '1746550405_3359721_1356382736_bf663b6d43186468a6387524eaa93cb7_rle_crop_3786637700_0.png', 1356383090: '1746550405_3359721_1356382736_bf663b6d43186468a6387524eaa93cb7_rle_crop_3786637694_0.png', 1356383091: '1746550405_3359721_1356382727_bb86fd2bf0a533d1dc04c2c982a29297_rle_crop_3786637712_0.png', 1356383092: '1746550405_3359721_1356382725_2807661b422141ae6e924484b9becc9c_rle_crop_3786637760_0.png', 1356383270: '1746550513_1693766_1356383075_7f18f2837e397a0f71c48a4416a70ee3_rle_crop_3786640824_0.png', 1356383724: '1746550647_3363790_1356383129_2d0ccff7e6de8fc02c0576a66d989bb4_rle_crop_3786648993_0.png', 1356384251: '1746550766_3366507_1356383590_69f765d8567349febf1137e601987b14_rle_crop_3786649466_0.png', 1356384284: '1746550752_1696141_1356383614_72adb9c51c84a63cf70805fd1cb3e2b1_rle_crop_3786649485_0.png', 1356384285: '1746550752_1696141_1356383565_780c0b9ce029fddf84b69e7c387d989f_rle_crop_3786649505_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/c8fbc5403276d3c41c8e445e3876d99f_74614258.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/f406322a8f7b5f7953aece07b4167105_80636597.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/9be8f4368cfb90eaeaf606ddfd416e92_97380223.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/65a0170bba1c82f23d33a0db3b48585d_27104516.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/9be8f4368cfb90eaeaf606ddfd416e92_57025358.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/d4e77d3ac4afeface01b37c977ddaddf_61041202.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a57d7b6b59073fb12641cb93559f367f_77697138.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/674ade4420bf7def0630ac23679d85a6_9157839.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/3fe49d49d8161029b6236ddfef1b93b4_86684678.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/1441ca1adfb40b0eefa5432b9f9173c3_42287439.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/06e399b4d13337eda99aec901bfb81a7_5651777.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/310b2de795a8e3f9c953ac613f215c78_1242773.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/41508498b8e9c1071d7c77218fafe80e_35308630.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a2d97d79c4219a55ef9a77bf89af6485_86104044.png change filename to text .imagette227212671746550862/ imagette227212671746550862/1746550405_3359721_1356382736_bf663b6d43186468a6387524eaa93cb7_rle_crop_3786637694_0.png.png imagette227212671746550862/1746550405_3359721_1356382725_2807661b422141ae6e924484b9becc9c_rle_crop_3786637760_0.png.png imagette227212671746550862/1746550405_3359721_1356382727_bb86fd2bf0a533d1dc04c2c982a29297_rle_crop_3786637712_0.png.png imagette227212671746550862/1746550513_1693766_1356383075_7f18f2837e397a0f71c48a4416a70ee3_rle_crop_3786640824_0.png.png imagette227212671746550862/1746550647_3363790_1356383129_2d0ccff7e6de8fc02c0576a66d989bb4_rle_crop_3786648993_0.png.png imagette227212671746550862/1746550272_1691352_1356382581_7c8531debb61d9f398dfdd01abd1d6c1_rle_crop_3786636890_0.png.png imagette227212671746550862/1746550405_3359721_1356382736_bf663b6d43186468a6387524eaa93cb7_rle_crop_3786637700_0.png.png imagette227212671746550862/1746550167_3352792_1356382341_dfc1daf9db3baed77b906aac4ef86d94_rle_crop_3786635729_0.png.png imagette227212671746550862/1746550333_1692060_1356382323_295c7795816698c81ca7dd87e0373537_rle_crop_3786636357_0.png.png imagette227212671746550862/1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635931_0.png.png imagette227212671746550862/1746550766_3366507_1356383590_69f765d8567349febf1137e601987b14_rle_crop_3786649466_0.png.png imagette227212671746550862/1746550391_1692532_1356382857_2126ba9d264dacf3af9ae1fc4a75d432_rle_crop_3786637676_0.png.png imagette227212671746550862/1746550211_1690551_1356382323_295c7795816698c81ca7dd87e0373537_rle_crop_3786636357_0.png.png imagette227212671746550862/1746550752_1696141_1356383614_72adb9c51c84a63cf70805fd1cb3e2b1_rle_crop_3786649485_0.png.png imagette227212671746550862/1746550752_1696141_1356383565_780c0b9ce029fddf84b69e7c387d989f_rle_crop_3786649505_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/60c70ecc1df72c5c6b15f989f49bb127_41823611.png imagette227212671746550862 22721271 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=22721271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356383083: '1746550391_1692532_1356382914_2473dfd01303f950b427746718471f1e_rle_crop_3786637638_0.png', 1356384311: '1746550752_1696141_1356383546_670f365e5dc5f041e1e45d7b567693bd_rle_crop_3786649538_0.png', 1356384310: '1746550752_1696141_1356383557_2a05ad17a766d9882813b385ae2e2f36_rle_crop_3786649535_0.png', 1356384309: '1746550752_1696141_1356383561_f3a9de78df0019a4b1aef84e6fc16a34_rle_crop_3786649517_0.png', 1356384308: '1746550752_1696141_1356383565_780c0b9ce029fddf84b69e7c387d989f_rle_crop_3786649502_0.png', 1356383735: '1746550647_3363790_1356383115_61e5ccc9f486be56244d03fa33f5b630_rle_crop_3786649041_0.png', 1356383734: '1746550647_3363790_1356383122_b3c9ff96fd01b2aec2fe769d8192b6c0_rle_crop_3786649012_0.png', 1356383732: '1746550647_3363790_1356383122_b3c9ff96fd01b2aec2fe769d8192b6c0_rle_crop_3786649013_0.png', 1356383731: '1746550647_3363790_1356383234_2e6f2381f1db990650a492429bf079ef_rle_crop_3786648980_0.png', 1356383281: '1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640810_0.png', 1356382694: '1746550167_3352792_1356382126_46344818d7e6cd0db9849e02b78eb281_rle_crop_3786635753_0.png', 1356382922: '1746550272_1691352_1356382581_7c8531debb61d9f398dfdd01abd1d6c1_rle_crop_3786636897_0.png', 1356382904: '1746550286_3355775_1356382526_bc72bfe9ac5bddb0515919204974199a_rle_crop_3786636723_0.png', 1356382902: '1746550286_3355775_1356382530_2a97aac8fda6158699949ccdc90a378f_rle_crop_3786636706_0.png', 1356382700: '1746550167_3352792_1356382090_219639d1828904df7ebf272c82d8770e_rle_crop_3786635885_0.png', 1356382699: '1746550167_3352792_1356382122_432cb3d019e396c0092d1fb6dd639544_rle_crop_3786635853_0.png', 1356382698: '1746550167_3352792_1356382122_432cb3d019e396c0092d1fb6dd639544_rle_crop_3786635860_0.png', 1356382697: '1746550167_3352792_1356382122_432cb3d019e396c0092d1fb6dd639544_rle_crop_3786635857_0.png', 1356382695: '1746550167_3352792_1356382124_9bab909e21c8bf74fbff94bbf91de05d_rle_crop_3786635773_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/50d031e4050171beffc9c41ddddada64_36032359.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/46d4659ddfa3fd17e72db8ac04b6bbf8_82252803.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/d28a19d719430e41f155a62e9e1d818e_26825340.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/eaecda662017c343aafa085cc212365c_29443144.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/77dff20d992b8f0945a13b2dafc00a41_79357783.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/635952d87a3c285fc0b0c4f9dbd27f78_68004743.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/c8af879ac1805f5cf6f7d77d6e1c4249_79694106.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/6b88e383b8f82bdc11f5a3a27c382a19_13432967.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/f7f71215a824df1ba1d356ea9e3903b7_80393336.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/fd8fbc0de0bfd130741590d8993554a4_47042494.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/2d2cb1f8330bc35fbf1f904b5ddf8bac_1172103.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a0ecb6dd567c2f4bb75268570c779227_3467595.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ebbbc1f122dcdbf944ace86622994113_20702877.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4f82cf62f2e032d644a517d0d911f700_28108932.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/0b6676e7381f7399ef3edad065c235ec_47093988.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/84f7b6375895ae00a471f5aff84d6456_88040703.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/6847f30758a06f0be05d019dd437ec83_11726795.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/412e1e641af26e05efa018fe8c5f22bc_52511808.png change filename to text .imagette227212711746550863/ imagette227212711746550863/1746550752_1696141_1356383561_f3a9de78df0019a4b1aef84e6fc16a34_rle_crop_3786649517_0.png.png imagette227212711746550863/1746550167_3352792_1356382122_432cb3d019e396c0092d1fb6dd639544_rle_crop_3786635853_0.png.png imagette227212711746550863/1746550391_1692532_1356382914_2473dfd01303f950b427746718471f1e_rle_crop_3786637638_0.png.png imagette227212711746550863/1746550167_3352792_1356382090_219639d1828904df7ebf272c82d8770e_rle_crop_3786635885_0.png.png imagette227212711746550863/1746550167_3352792_1356382124_9bab909e21c8bf74fbff94bbf91de05d_rle_crop_3786635773_0.png.png imagette227212711746550863/1746550167_3352792_1356382126_46344818d7e6cd0db9849e02b78eb281_rle_crop_3786635753_0.png.png imagette227212711746550863/1746550647_3363790_1356383122_b3c9ff96fd01b2aec2fe769d8192b6c0_rle_crop_3786649012_0.png.png imagette227212711746550863/1746550647_3363790_1356383115_61e5ccc9f486be56244d03fa33f5b630_rle_crop_3786649041_0.png.png imagette227212711746550863/1746550286_3355775_1356382526_bc72bfe9ac5bddb0515919204974199a_rle_crop_3786636723_0.png.png imagette227212711746550863/1746550647_3363790_1356383234_2e6f2381f1db990650a492429bf079ef_rle_crop_3786648980_0.png.png imagette227212711746550863/1746550647_3363790_1356383122_b3c9ff96fd01b2aec2fe769d8192b6c0_rle_crop_3786649013_0.png.png imagette227212711746550863/1746550286_3355775_1356382530_2a97aac8fda6158699949ccdc90a378f_rle_crop_3786636706_0.png.png imagette227212711746550863/1746550752_1696141_1356383557_2a05ad17a766d9882813b385ae2e2f36_rle_crop_3786649535_0.png.png imagette227212711746550863/1746550272_1691352_1356382581_7c8531debb61d9f398dfdd01abd1d6c1_rle_crop_3786636897_0.png.png imagette227212711746550863/1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640810_0.png.png imagette227212711746550863/1746550752_1696141_1356383565_780c0b9ce029fddf84b69e7c387d989f_rle_crop_3786649502_0.png.png imagette227212711746550863/1746550167_3352792_1356382122_432cb3d019e396c0092d1fb6dd639544_rle_crop_3786635857_0.png.png imagette227212711746550863/1746550752_1696141_1356383546_670f365e5dc5f041e1e45d7b567693bd_rle_crop_3786649538_0.png.png imagette227212711746550863/1746550167_3352792_1356382122_432cb3d019e396c0092d1fb6dd639544_rle_crop_3786635860_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/f4e33641aa781cb82ff80bbaf62f858c_66944942.png imagette227212711746550863 22721276 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=22721276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356382936: '1746550272_1691352_1356382591_1d00aeb6e8d26dbc3a68b4edb32f9185_rle_crop_3786636734_0.png', 1356384363: '1746550752_1696141_1356383565_780c0b9ce029fddf84b69e7c387d989f_rle_crop_3786649503_0.png', 1356384360: '1746550752_1696141_1356383614_72adb9c51c84a63cf70805fd1cb3e2b1_rle_crop_3786649479_0.png', 1356384276: '1746550766_3366507_1356383590_69f765d8567349febf1137e601987b14_rle_crop_3786649465_0.png', 1356384275: '1746550766_3366507_1356383595_4c72bb1941de9037604513f0854b1b4f_rle_crop_3786649451_0.png', 1356383739: '1746550647_3363790_1356383118_3283ff514cd5cceaf2450f75dc00a967_rle_crop_3786649029_0.png', 1356383286: '1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640815_0.png', 1356383099: '1746550405_3359721_1356382725_2807661b422141ae6e924484b9becc9c_rle_crop_3786637757_0.png', 1356383084: '1746550391_1692532_1356382914_2473dfd01303f950b427746718471f1e_rle_crop_3786637639_0.png', 1356382937: '1746550272_1691352_1356382591_1d00aeb6e8d26dbc3a68b4edb32f9185_rle_crop_3786636736_0.png', 1356382703: '1746550167_3352792_1356382126_46344818d7e6cd0db9849e02b78eb281_rle_crop_3786635759_0.png', 1356382935: '1746550272_1691352_1356382593_1ac32f5d1081e6648d95a6ad7e00de33_rle_crop_3786636693_0.png', 1356382921: '1746550286_3355775_1356382537_97cc9c277c0d7683ca10b5f70ec927b0_rle_crop_3786636700_0.png', 1356382919: '1746550286_3355775_1356382596_9106de651be023d6a7fc95f0e67d7cf0_rle_crop_3786636682_0.png', 1356382708: '1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635933_0.png', 1356382707: '1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635935_0.png', 1356382706: '1746550167_3352792_1356382090_219639d1828904df7ebf272c82d8770e_rle_crop_3786635892_0.png', 1356382705: '1746550167_3352792_1356382090_219639d1828904df7ebf272c82d8770e_rle_crop_3786635890_0.png', 1356382704: '1746550167_3352792_1356382124_9bab909e21c8bf74fbff94bbf91de05d_rle_crop_3786635768_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/54b2353c03d80af0369e0ba2080b6bff_55649371.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7c6b1aa049b56e30187c8a4e5f188fb1_4037964.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/e7ab1219314a8d833f7bd10d91ce0186_51691550.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/f0e3aa0bb2a1b05e21e973fe09196696_96565383.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/1f39e90ea8ca6df52b2590165b8f642b_15613251.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4b1e65d614241553c8f8dda353bc38bb_71815245.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ef52573b0a8b82903d83d504181e9107_81921339.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/b5a19f67950d78121c13047c6a3847e6_46566107.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/20fc76dc7627228fcd3384ddc4d1eb75_70293070.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ca3e8bb8a986a133ec70b2a92ba995e2_34619415.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/d50d4a172babaef83969ccb7771aca94_33601611.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7fd7df8f4942dd9d116846beff944f64_16195937.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/86683950c4d76a2609021c6876c06a06_57419487.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/9622f95a653e836b92f6455387a9c50d_30456765.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/fc54c2bd58fc0f58de5c4b52d4e5184d_84134434.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a938a4c7e0a185aca81eafaa84457c55_39654783.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4bfd25c217fbd9d3e2f760b75b91ade1_85987210.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4652d9a1232fd4ae53b8adecaf24f93f_58176831.png change filename to text .imagette227212761746550864/ imagette227212761746550864/1746550752_1696141_1356383565_780c0b9ce029fddf84b69e7c387d989f_rle_crop_3786649503_0.png.png imagette227212761746550864/1746550272_1691352_1356382591_1d00aeb6e8d26dbc3a68b4edb32f9185_rle_crop_3786636736_0.png.png imagette227212761746550864/1746550167_3352792_1356382090_219639d1828904df7ebf272c82d8770e_rle_crop_3786635892_0.png.png imagette227212761746550864/1746550513_1693766_1356383078_862858100875072711f12704de8391bf_rle_crop_3786640815_0.png.png imagette227212761746550864/1746550167_3352792_1356382124_9bab909e21c8bf74fbff94bbf91de05d_rle_crop_3786635768_0.png.png imagette227212761746550864/1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635935_0.png.png imagette227212761746550864/1746550647_3363790_1356383118_3283ff514cd5cceaf2450f75dc00a967_rle_crop_3786649029_0.png.png imagette227212761746550864/1746550286_3355775_1356382596_9106de651be023d6a7fc95f0e67d7cf0_rle_crop_3786636682_0.png.png imagette227212761746550864/1746550272_1691352_1356382593_1ac32f5d1081e6648d95a6ad7e00de33_rle_crop_3786636693_0.png.png imagette227212761746550864/1746550272_1691352_1356382591_1d00aeb6e8d26dbc3a68b4edb32f9185_rle_crop_3786636734_0.png.png imagette227212761746550864/1746550167_3352792_1356382090_219639d1828904df7ebf272c82d8770e_rle_crop_3786635890_0.png.png imagette227212761746550864/1746550766_3366507_1356383590_69f765d8567349febf1137e601987b14_rle_crop_3786649465_0.png.png imagette227212761746550864/1746550405_3359721_1356382725_2807661b422141ae6e924484b9becc9c_rle_crop_3786637757_0.png.png imagette227212761746550864/1746550286_3355775_1356382537_97cc9c277c0d7683ca10b5f70ec927b0_rle_crop_3786636700_0.png.png imagette227212761746550864/1746550167_3352792_1356382060_d6e7faee1bea4a85ed8006e57bc4c75a_rle_crop_3786635933_0.png.png imagette227212761746550864/1746550766_3366507_1356383595_4c72bb1941de9037604513f0854b1b4f_rle_crop_3786649451_0.png.png imagette227212761746550864/1746550167_3352792_1356382126_46344818d7e6cd0db9849e02b78eb281_rle_crop_3786635759_0.png.png imagette227212761746550864/1746550752_1696141_1356383614_72adb9c51c84a63cf70805fd1cb3e2b1_rle_crop_3786649479_0.png.png imagette227212761746550864/1746550391_1692532_1356382914_2473dfd01303f950b427746718471f1e_rle_crop_3786637639_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/3fc50a0f20d294842a22ac056a8c3aec_81641401.png imagette227212761746550864 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22721235 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22721278,22721279,22721280,22721281,22721282,22721283,22721284,22721285,22721286,22721287,22721288,22721289?tags=metal,Teint_Dans_La_Masse,mal_croppe,flou,cartonnette,Carton_gris,environnement,plastique,kraft,papier,Carton_brun,autre_refus your option no_mail is active, we will not send the real mail to your client args[1356384555] : ('0.03811303494110393',) no score found for photo 1356384555 We are sending mail with results at report@fotonower.com args[1356384524] : ('0.03811303494110393',) no score found for photo 1356384524 We are sending mail with results at report@fotonower.com args[1356384483] : ('0.03811303494110393',) no score found for photo 1356384483 We are sending mail with results at report@fotonower.com args[1356384452] : ('0.03811303494110393',) no score found for photo 1356384452 We are sending mail with results at report@fotonower.com args[1356384052] : ('0.03811303494110393',) no score found for photo 1356384052 We are sending mail with results at report@fotonower.com args[1356384011] : ('0.03811303494110393',) no score found for photo 1356384011 We are sending mail with results at report@fotonower.com args[1356383982] : ('0.03811303494110393',) no score found for photo 1356383982 We are sending mail with results at report@fotonower.com args[1356383849] : ('0.03811303494110393',) no score found for photo 1356383849 We are sending mail with results at report@fotonower.com args[1356383819] : ('0.03811303494110393',) no score found for photo 1356383819 We are sending mail with results at report@fotonower.com args[1356383790] : ('0.03811303494110393',) no score found for photo 1356383790 We are sending mail with results at report@fotonower.com refus_total : 0.03811303494110393 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=22721235 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_P22721235_06-05-2025_19_01_00.pdf results_Auto_P22721235_06-05-2025_19_01_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_01_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','22721235','results_Auto_P22721235_06-05-2025_19_01_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_01_00.pdf','pdf','','0.3','0.03811303494110393') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22721235]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] map_info['map_portfolio_photo'] : {22721235: [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790, 1356383614, 1356383595, 1356383590, 1356383575, 1356383570, 1356383565, 1356383561, 1356383557, 1356383546, 1356383234, 1356383212, 1356383207, 1356383202, 1356383131, 1356383129, 1356383125, 1356383122, 1356383118, 1356383115, 1356383086, 1356383078, 1356383075, 1356383071, 1356383023, 1356383006, 1356382993, 1356382983, 1356382959, 1356382954, 1356382939, 1356382914, 1356382857, 1356382852, 1356382754, 1356382742, 1356382736, 1356382727, 1356382725, 1356382596, 1356382593, 1356382591, 1356382588, 1356382581, 1356382543, 1356382537, 1356382530, 1356382526, 1356382341, 1356382331, 1356382326, 1356382323, 1356382320, 1356382308, 1356382126, 1356382124, 1356382122, 1356382090, 1356382060]} final : False mtd_id 4302 list_pids : [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] 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, '2798330') ('4302', '22721235', '1356384555', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384524', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384483', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384452', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384052', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384011', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383982', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383849', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383819', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383790', None, None, None, None, None, '2798330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22721235', '1356384555', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384524', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384483', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384452', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384052', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384011', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383982', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383849', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383819', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383790', None, None, None, None, None, '2798330')] time used for this insertion : 0.013602733612060547 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.251897811889648 time spend to save output : 0.013897180557250977 total time spend for step 4 : 7.265794992446899 step5:split_time_score Tue May 6 19:01:07 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 : ['22721235'] 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 : [('22721235',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22721235) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356384555: {'path': 'temp/1746550860_1584960_1356384555_2fce149910d08cb67a188eef19b96154.jpg', 'extension': 'jpg'}, 1356383790: {'path': 'temp/1746550860_1584960_1356383790_7761258705c2958c4d64f61a78c37cc1.jpg', 'extension': 'jpg'}, 1356383819: {'path': 'temp/1746550860_1584960_1356383819_0110ecc933b055a20c22d302837044fb.jpg', 'extension': 'jpg'}, 1356383849: {'path': 'temp/1746550860_1584960_1356383849_358b69762ad25eb3fc0c9baeca5d86b8.jpg', 'extension': 'jpg'}, 1356384452: {'path': 'temp/1746550860_1584960_1356384452_53072564313989e37ea78af0df169e54.jpg', 'extension': 'jpg'}, 1356384483: {'path': 'temp/1746550860_1584960_1356384483_bdc254d9d47948bfe92b9640ec4ab290.jpg', 'extension': 'jpg'}, 1356384524: {'path': 'temp/1746550860_1584960_1356384524_5e7ec4799d43f24c03108578b84d52f7.jpg', 'extension': 'jpg'}, 1356383982: {'path': 'temp/1746550860_1584960_1356383982_d1e4fc99278e2ad4c73b00c4758a0c29.jpg', 'extension': 'jpg'}, 1356384011: {'path': 'temp/1746550860_1584960_1356384011_f90de3eb6d53f972a1634536caab4062.jpg', 'extension': 'jpg'}, 1356384052: {'path': 'temp/1746550860_1584960_1356384052_73e0639e97358b12bdd2f40d8866c7be.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 = 22721235; (('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 = 22721235 group by h (('18', 68),) 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=22721235 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 (22721235) 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 (22721235) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06052025 22721235 Nombre de photos uploadées : 68 / 23040 (0%) 06052025 22721235 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 06052025 22721235 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1356382126, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/46344818d7e6cd0db9849e02b78eb281.jpg', 'username': None, 'uploaded_at': 1746549972, 'text': 'image_06052025_18_45_04_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356382124, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/9bab909e21c8bf74fbff94bbf91de05d.jpg', 'username': None, 'uploaded_at': 1746549972, 'text': 'image_06052025_18_45_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356382122, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/432cb3d019e396c0092d1fb6dd639544.jpg', 'username': None, 'uploaded_at': 1746549972, 'text': 'image_06052025_18_45_24_010131m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356382090, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/219639d1828904df7ebf272c82d8770e.jpg', 'username': None, 'uploaded_at': 1746549972, 'text': 'image_06052025_18_45_33_009297m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003095388412475586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22721235, '2025-05-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1777292,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023761510848999023 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= 1777292 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22701347, 'dashboard_result_id': 10340564, '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_P22701347_06-05-2025_00_50_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22702995, 'dashboard_result_id': 10340565, '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_P22702995_06-05-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22703230, 'dashboard_result_id': 10340566, '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_P22703230_06-05-2025_05_40_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22703472, 'dashboard_result_id': 10340567, '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_P22703472_06-05-2025_05_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22704016, 'dashboard_result_id': 10340568, '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_P22704016_06-05-2025_06_03_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22704427, 'dashboard_result_id': 10340569, '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_P22704427_06-05-2025_06_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22704969, 'dashboard_result_id': 10340570, '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_P22704969_06-05-2025_06_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22705529, 'dashboard_result_id': 10340571, '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_P22705529_06-05-2025_06_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22705714, 'dashboard_result_id': 10340572, '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_P22705714_06-05-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22706282, 'dashboard_result_id': 10340573, '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_P22706282_06-05-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22707050, 'dashboard_result_id': 10340574, '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_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22707600, 'dashboard_result_id': 10340575, '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_P22707600_06-05-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22708159, 'dashboard_result_id': 10340576, '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_P22708159_06-05-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22708833, 'dashboard_result_id': 10340577, '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_P22708833_06-05-2025_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22709529, 'dashboard_result_id': 10340578, '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_P22709529_06-05-2025_08_33_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22710140, 'dashboard_result_id': 10340579, '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_P22710140_06-05-2025_08_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22710502, 'dashboard_result_id': 10340580, '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_P22710502_06-05-2025_09_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22711348, 'dashboard_result_id': 10340581, '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_P22711348_06-05-2025_11_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22716068, 'dashboard_result_id': 10340582, '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_P22716068_06-05-2025_13_46_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22719615, 'dashboard_result_id': 10340583, '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_P22719615_06-05-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22720089, 'dashboard_result_id': 10340584, '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_P22720089_06-05-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720145, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22720474, 'dashboard_result_id': 10340585, '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_P22720474_06-05-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720568, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787182, 'mtr_portfolio_id': 22721235, 'dashboard_result_id': 10340586, '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_P22721235_06-05-2025_18_58_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22721266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721277, '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 = 22701347 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': 2795298, 'mtr_portfolio_id': 22701347, 'created_at': datetime.datetime(2025, 5, 6, 0, 50, 31), 'result': '0.061271229522416266', 'result_long': None, 'result_double': None}] Qualite : 0.061271229522416266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22701347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_06-05-2025_00_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22701347 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_P22701347_06-05-2025_00_50_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, 'pht': 3726}}" where mtr_portfolio_id = 22701347 and dashboard_run_id = 1787182 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`=22701347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340564, 0.061271229522416266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_06-05-2025_00_50_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, '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 = 22702995 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': 2795802, 'mtr_portfolio_id': 22702995, 'created_at': datetime.datetime(2025, 5, 6, 5, 18, 59), 'result': '0.0684839965169909', 'result_long': None, 'result_double': None}] Qualite : 0.0684839965169909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22702995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_06-05-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22702995 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_P22702995_06-05-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, 'pht': 3726}}" where mtr_portfolio_id = 22702995 and dashboard_run_id = 1787182 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`=22702995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340565, 0.0684839965169909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_06-05-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, '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 = 22703230 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': 2795926, 'mtr_portfolio_id': 22703230, 'created_at': datetime.datetime(2025, 5, 6, 5, 40, 38), 'result': '0.03097189694725738', 'result_long': None, 'result_double': None}] Qualite : 0.03097189694725738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22703230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_06-05-2025_05_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22703230 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_P22703230_06-05-2025_05_40_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, 'pht': 3726}}" where mtr_portfolio_id = 22703230 and dashboard_run_id = 1787182 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`=22703230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340566, 0.03097189694725738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_06-05-2025_05_40_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, '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 = 22703472 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': 2795861, 'mtr_portfolio_id': 22703472, 'created_at': datetime.datetime(2025, 5, 6, 5, 49), 'result': '0.042620227607790634', 'result_long': None, 'result_double': None}] Qualite : 0.042620227607790634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22703472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_06-05-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22703472 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_P22703472_06-05-2025_05_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, 'pht': 3726}}" where mtr_portfolio_id = 22703472 and dashboard_run_id = 1787182 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`=22703472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340567, 0.042620227607790634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_06-05-2025_05_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, '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 = 22704016 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': 2795979, 'mtr_portfolio_id': 22704016, 'created_at': datetime.datetime(2025, 5, 6, 6, 3, 30), 'result': '0.04419198382997931', 'result_long': None, 'result_double': None}] Qualite : 0.04419198382997931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_06-05-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704016 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_P22704016_06-05-2025_06_03_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, 'pht': 3726}}" where mtr_portfolio_id = 22704016 and dashboard_run_id = 1787182 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`=22704016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340568, 0.04419198382997931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_06-05-2025_06_03_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, '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 = 22704427 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': 2796030, 'mtr_portfolio_id': 22704427, 'created_at': datetime.datetime(2025, 5, 6, 6, 18, 56), 'result': '0.03451485623587217', 'result_long': None, 'result_double': None}] Qualite : 0.03451485623587217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_06-05-2025_06_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704427 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_P22704427_06-05-2025_06_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, 'pht': 3726}}" where mtr_portfolio_id = 22704427 and dashboard_run_id = 1787182 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`=22704427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340569, 0.03451485623587217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_06-05-2025_06_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, '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 = 22704969 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': 2796072, 'mtr_portfolio_id': 22704969, 'created_at': datetime.datetime(2025, 5, 6, 6, 34, 58), 'result': '0.04822745631611439', 'result_long': None, 'result_double': None}] Qualite : 0.04822745631611439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_06-05-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704969 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_P22704969_06-05-2025_06_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, 'pht': 3726}}" where mtr_portfolio_id = 22704969 and dashboard_run_id = 1787182 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`=22704969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340570, 0.04822745631611439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_06-05-2025_06_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, '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 = 22705529 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': 2796119, 'mtr_portfolio_id': 22705529, 'created_at': datetime.datetime(2025, 5, 6, 6, 46, 59), 'result': '0.020981443968970746', 'result_long': None, 'result_double': None}] Qualite : 0.020981443968970746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22705529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_06-05-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22705529 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_P22705529_06-05-2025_06_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, 'pht': 3726}}" where mtr_portfolio_id = 22705529 and dashboard_run_id = 1787182 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`=22705529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340571, 0.020981443968970746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_06-05-2025_06_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, '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 = 22705714 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': 2796165, 'mtr_portfolio_id': 22705714, 'created_at': datetime.datetime(2025, 5, 6, 7, 2, 59), 'result': '0.06151307291766843', 'result_long': None, 'result_double': None}] Qualite : 0.06151307291766843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22705714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_06-05-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22705714 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_P22705714_06-05-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, 'pht': 3726}}" where mtr_portfolio_id = 22705714 and dashboard_run_id = 1787182 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`=22705714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340572, 0.06151307291766843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_06-05-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, '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 = 22706282 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': 2796253, 'mtr_portfolio_id': 22706282, 'created_at': datetime.datetime(2025, 5, 6, 7, 18, 58), 'result': '0.06884771410429064', 'result_long': None, 'result_double': None}] Qualite : 0.06884771410429064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22706282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_06-05-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22706282 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_P22706282_06-05-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, 'pht': 3726}}" where mtr_portfolio_id = 22706282 and dashboard_run_id = 1787182 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`=22706282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340573, 0.06884771410429064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_06-05-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, '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 = 22707050 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': 2796322, 'mtr_portfolio_id': 22707050, 'created_at': datetime.datetime(2025, 5, 6, 7, 35), 'result': '0.05215601012812166', 'result_long': None, 'result_double': None}] Qualite : 0.05215601012812166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22707050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22707050 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_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, 'pht': 3726}}" where mtr_portfolio_id = 22707050 and dashboard_run_id = 1787182 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`=22707050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340574, 0.05215601012812166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, '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 = 22707600 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': 2796392, 'mtr_portfolio_id': 22707600, 'created_at': datetime.datetime(2025, 5, 6, 7, 49), 'result': '0.058143903126625436', 'result_long': None, 'result_double': None}] Qualite : 0.058143903126625436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22707600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_06-05-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22707600 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_P22707600_06-05-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, 'pht': 3726}}" where mtr_portfolio_id = 22707600 and dashboard_run_id = 1787182 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`=22707600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340575, 0.058143903126625436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_06-05-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, '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 = 22708159 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': 2796449, 'mtr_portfolio_id': 22708159, 'created_at': datetime.datetime(2025, 5, 6, 8, 3), 'result': '0.040786254764013825', 'result_long': None, 'result_double': None}] Qualite : 0.040786254764013825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22708159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_06-05-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22708159 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_P22708159_06-05-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, 'pht': 3726}}" where mtr_portfolio_id = 22708159 and dashboard_run_id = 1787182 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`=22708159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340576, 0.040786254764013825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_06-05-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, '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 = 22708833 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': 2796528, 'mtr_portfolio_id': 22708833, 'created_at': datetime.datetime(2025, 5, 6, 8, 19, 1), 'result': '0.03949586309169898', 'result_long': None, 'result_double': None}] Qualite : 0.03949586309169898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22708833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_06-05-2025_08_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22708833 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_P22708833_06-05-2025_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, 'pht': 3726}}" where mtr_portfolio_id = 22708833 and dashboard_run_id = 1787182 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`=22708833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340577, 0.03949586309169898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_06-05-2025_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, '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 = 22709529 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': 2796619, 'mtr_portfolio_id': 22709529, 'created_at': datetime.datetime(2025, 5, 6, 8, 33, 30), 'result': '0.03926093730258733', 'result_long': None, 'result_double': None}] Qualite : 0.03926093730258733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22709529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_06-05-2025_08_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22709529 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_P22709529_06-05-2025_08_33_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, 'pht': 3726}}" where mtr_portfolio_id = 22709529 and dashboard_run_id = 1787182 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`=22709529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340578, 0.03926093730258733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_06-05-2025_08_33_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, '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 = 22710140 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': 2796672, 'mtr_portfolio_id': 22710140, 'created_at': datetime.datetime(2025, 5, 6, 8, 47), 'result': '0.04276854917567416', 'result_long': None, 'result_double': None}] Qualite : 0.04276854917567416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22710140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_06-05-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22710140 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_P22710140_06-05-2025_08_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, 'pht': 3726}}" where mtr_portfolio_id = 22710140 and dashboard_run_id = 1787182 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`=22710140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340579, 0.04276854917567416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_06-05-2025_08_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, '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 = 22710502 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': 2796735, 'mtr_portfolio_id': 22710502, 'created_at': datetime.datetime(2025, 5, 6, 9, 2, 59), 'result': '0.05758271041044393', 'result_long': None, 'result_double': None}] Qualite : 0.05758271041044393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22710502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_06-05-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22710502 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_P22710502_06-05-2025_09_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, 'pht': 3726}}" where mtr_portfolio_id = 22710502 and dashboard_run_id = 1787182 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`=22710502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340580, 0.05758271041044393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_06-05-2025_09_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, '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 = 22711348 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': 2796809, 'mtr_portfolio_id': 22711348, 'created_at': datetime.datetime(2025, 5, 6, 11, 11), 'result': '0.029305356586870474', 'result_long': None, 'result_double': None}] Qualite : 0.029305356586870474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22711348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_06-05-2025_11_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22711348 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_P22711348_06-05-2025_11_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, 'pht': 3726}}" where mtr_portfolio_id = 22711348 and dashboard_run_id = 1787182 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`=22711348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340581, 0.029305356586870474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_06-05-2025_11_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, '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 = 22716068 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': 2797722, 'mtr_portfolio_id': 22716068, 'created_at': datetime.datetime(2025, 5, 6, 13, 49), 'result': '0.03906976949786384', 'result_long': None, 'result_double': None}] Qualite : 0.03906976949786384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22716068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22716068 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_P22716068_06-05-2025_13_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, 'pht': 3726}}" where mtr_portfolio_id = 22716068 and dashboard_run_id = 1787182 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`=22716068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340582, 0.03906976949786384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, '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 = 22719615 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': 2798142, 'mtr_portfolio_id': 22719615, 'created_at': datetime.datetime(2025, 5, 6, 18, 19), 'result': '0.047298723919855575', 'result_long': None, 'result_double': None}] Qualite : 0.047298723919855575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22719615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22719615 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_P22719615_06-05-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}" where mtr_portfolio_id = 22719615 and dashboard_run_id = 1787182 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`=22719615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340583, 0.047298723919855575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, '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 = 22720089 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': 2798186, 'mtr_portfolio_id': 22720089, 'created_at': datetime.datetime(2025, 5, 6, 18, 32, 58), 'result': '0.03310221559834245', 'result_long': None, 'result_double': None}] Qualite : 0.03310221559834245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22720089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720089_06-05-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22720089 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_P22720089_06-05-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720145, 'pht': 3726}}" where mtr_portfolio_id = 22720089 and dashboard_run_id = 1787182 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`=22720089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340584, 0.03310221559834245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720089_06-05-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720145, '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 = 22720474 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': 2798245, 'mtr_portfolio_id': 22720474, 'created_at': datetime.datetime(2025, 5, 6, 18, 49), 'result': '0.04287539462312746', 'result_long': None, 'result_double': None}] Qualite : 0.04287539462312746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22720474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720474_06-05-2025_18_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22720474 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_P22720474_06-05-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720568, 'pht': 3726}}" where mtr_portfolio_id = 22720474 and dashboard_run_id = 1787182 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`=22720474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340585, 0.04287539462312746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720474_06-05-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720568, '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 = 22721235 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': 2798330, 'mtr_portfolio_id': 22721235, 'created_at': datetime.datetime(2025, 5, 6, 19, 1), 'result': '0.03811303494110393', 'result_long': None, 'result_double': None}] Qualite : 0.03811303494110393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22721235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22721235 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_P22721235_06-05-2025_19_01_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22721266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721277, 'pht': 3726}}" where mtr_portfolio_id = 22721235 and dashboard_run_id = 1787182 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`=22721235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10340586, 0.03811303494110393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_01_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22721266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721277, '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 (22701347,22702995,22703230,22703472,22704016,22704427,22704969,22705529,22705714,22706282,22707050,22707600,22708159,22708833,22709529,22710140,22710502,22711348,22716068,22719615,22720089,22720474,22721235) result : ((1356270985,), (1356271232,), (1356271255,), (1356271277,), (1356271367,), (1356271370,), (1356271443,), (1356271528,), (1356287898,), (1356288002,), (1356288054,), (1356288056,), (1356288057,), (1356288081,), (1356288082,), (1356288083,), (1356288084,), (1356288115,), (1356288116,), (1356288117,), (1356288118,), (1356288144,), (1356288149,), (1356288153,), (1356288156,), (1356288182,), (1356288183,), (1356288184,), (1356288185,), (1356288239,), (1356288240,), (1356288241,), (1356288280,), (1356288281,), (1356288282,), (1356288307,), (1356288337,), (1356288365,), (1356288442,), (1356288447,), (1356288450,), (1356288470,), (1356288471,), (1356288474,), (1356288476,), (1356288516,), (1356288518,), (1356288521,), (1356288526,), (1356288531,), (1356288565,), (1356288568,), (1356288571,), (1356288576,), (1356288579,), (1356288583,), (1356288608,), (1356288613,), (1356288618,), (1356288677,), (1356288681,), (1356288684,), (1356288689,), (1356288695,), (1356288700,), (1356288714,), (1356288716,), (1356288719,), (1356288721,), (1356288764,), (1356288766,), (1356288767,), (1356288769,), (1356288773,), (1356288776,), (1356288798,), (1356288799,), (1356288801,), (1356288827,), (1356288856,), (1356288863,), (1356288866,), (1356288869,), (1356288873,), (1356288877,), (1356288908,), (1356288909,), (1356288911,), (1356288913,), (1356288917,), (1356288944,), (1356288947,), (1356288950,), (1356288952,), (1356288954,), (1356288995,), (1356288988,), (1356288990,), (1356288991,), (1356288992,), (1356289017,), (1356289019,), (1356289020,), (1356289021,), (1356289022,), (1356289025,), (1356289048,), (1356289049,), (1356289050,), (1356289051,), (1356289087,), (1356289089,), (1356289091,), (1356289092,), (1356289094,), (1356289096,), (1356289124,), (1356289126,), (1356289127,), (1356289130,), (1356289133,), (1356289158,), (1356289160,), (1356289161,), (1356289164,), (1356289167,), (1356289169,), (1356289202,), (1356289204,), (1356289205,), (1356289206,), (1356289239,), (1356289241,), (1356289242,), (1356289243,), (1356289245,), (1356289246,), (1356289288,), (1356289290,), (1356289292,), (1356289294,), (1356289336,), (1356289338,), (1356289340,), (1356289342,), (1356289346,), (1356289350,), (1356289364,), (1356289366,), (1356289367,), (1356289368,), (1356289370,), (1356289414,), (1356289416,), (1356289417,), (1356289419,), (1356289449,), (1356289451,), (1356289453,), (1356289455,), (1356289459,), (1356289461,), (1356289492,), (1356289494,), (1356289496,), (1356289526,), (1356289530,), (1356289533,), (1356289536,), (1356289541,), (1356289546,), (1356289580,), (1356289573,), (1356289576,), (1356289578,), (1356289609,), (1356289611,), (1356289613,), (1356289615,), (1356289619,), (1356289640,), (1356289643,), (1356289645,), (1356289647,), (1356289651,), (1356289655,), (1356289683,), (1356289685,), (1356289687,), (1356289689,), (1356289729,), (1356289732,), (1356289733,), (1356289734,), (1356289737,), (1356289740,), (1356289764,), (1356289766,), (1356289769,), (1356289774,), (1356289805,), (1356289809,), (1356289811,), (1356289837,), (1356289838,), (1356289839,), (1356289840,), (1356289842,), (1356289844,), (1356289876,), (1356289878,), (1356289879,), (1356289880,), (1356289915,), (1356289917,), (1356289918,), (1356289919,), (1356289922,), (1356289925,), (1356289958,), (1356289959,), (1356289960,), (1356289961,), (1356289988,), (1356289989,), (1356289990,), (1356289991,), (1356289998,), (1356290031,), (1356290292,), (1356290320,), (1356290346,), (1356290372,), (1356290398,), (1356290861,), (1356290889,), (1356290921,), (1356290966,), (1356291061,), (1356291107,), (1356291135,), (1356291168,), (1356291195,), (1356291417,), (1356291336,), (1356291363,), (1356291392,), (1356291461,), (1356291463,), (1356291465,), (1356291472,), (1356291674,), (1356291677,), (1356291681,), (1356291684,), (1356291717,), (1356291720,), (1356291723,), (1356291726,), (1356291729,), (1356291732,), (1356291758,), (1356291761,), (1356291763,), (1356291765,), (1356291792,), (1356291795,), (1356291797,), (1356291799,), (1356291802,), (1356291830,), (1356291833,), (1356291836,), (1356291841,), (1356291845,), (1356291850,), (1356291869,), (1356291871,), (1356291873,), (1356291875,), (1356291879,), (1356291897,), (1356291899,), (1356291900,), (1356291901,), (1356291905,), (1356291953,), (1356291955,), (1356291957,), (1356291959,), (1356291963,), (1356291965,), (1356291987,), (1356291990,), (1356291992,), (1356291994,), (1356292014,), (1356292017,), (1356292019,), (1356292021,), (1356292026,), (1356292029,), (1356292046,), (1356292048,), (1356292052,), (1356292081,), (1356292083,), (1356292084,), (1356292086,), (1356292088,), (1356292092,), (1356292116,), (1356292118,), (1356292119,), (1356292120,), (1356292122,), (1356292161,), (1356292157,), (1356292159,), (1356292160,), (1356292193,), (1356292196,), (1356292198,), (1356292222,), (1356292224,), (1356292226,), (1356292256,), (1356292258,), (1356292299,), (1356292327,), (1356292328,), (1356292359,), (1356292361,), (1356292362,), (1356292363,), (1356292387,), (1356292388,), (1356292389,), (1356292390,), (1356292420,), (1356292422,), (1356292423,), (1356292424,), (1356292426,), (1356292459,), (1356292461,), (1356292462,), (1356292464,), (1356292467,), (1356292495,), (1356292501,), (1356292504,), (1356292506,), (1356292531,), (1356292534,), (1356292536,), (1356292538,), (1356292542,), (1356292544,), (1356292571,), (1356292574,), (1356292575,), (1356292577,), (1356292602,), (1356292604,), (1356292606,), (1356292608,), (1356292611,), (1356292641,), (1356292645,), (1356292647,), (1356292650,), (1356292701,), (1356292698,), (1356292699,), (1356292700,), (1356292740,), (1356292742,), (1356292743,), (1356292744,), (1356292746,), (1356292750,), (1356292777,), (1356292778,), (1356292779,), (1356292780,), (1356292785,), (1356292788,), (1356292811,), (1356292812,), (1356292813,), (1356292845,), (1356292848,), (1356292850,), (1356292851,), (1356292854,), (1356292857,), (1356292886,), (1356292889,), (1356292892,), (1356292897,), (1356292901,), (1356292907,), (1356292929,), (1356292931,), (1356292932,), (1356292933,), (1356292935,), (1356292973,), (1356292975,), (1356292979,), (1356292981,), (1356292989,), (1356293017,), (1356293018,), (1356293019,), (1356293020,), (1356293024,), (1356293028,), (1356293061,), (1356293063,), (1356293065,), (1356293067,), (1356293070,), (1356293149,), (1356293150,), (1356293151,), (1356293152,), (1356293155,), (1356293159,), (1356293193,), (1356293195,), (1356293197,), (1356293198,), (1356293200,), (1356293204,), (1356293244,), (1356293246,), (1356293247,), (1356293248,), (1356293249,), (1356293251,), (1356293283,), (1356293285,), (1356293286,), (1356293331,), (1356293334,), (1356293335,), (1356293337,), (1356293341,), (1356293344,), (1356293398,), (1356293396,), (1356293397,), (1356293434,), (1356293436,), (1356293439,), (1356293480,), (1356293482,), (1356293483,), (1356293484,), (1356293529,), (1356293532,), (1356293534,), (1356293536,), (1356293539,), (1356293543,), (1356293582,), (1356293585,), (1356293587,), (1356293589,), (1356293592,), (1356293596,), (1356293679,), (1356293681,), (1356293682,), (1356293683,), (1356293729,), (1356293733,), (1356293735,), (1356293737,), (1356293741,), (1356293770,), (1356293772,), (1356293773,), (1356293774,), (1356293775,), (1356293778,), (1356293808,), (1356293813,), (1356293817,), (1356293851,), (1356293853,), (1356293854,), (1356293855,), (1356293857,), (1356293861,), (1356293897,), (1356293900,), (1356293902,), (1356293904,), (1356293940,), (1356293942,), (1356293943,), (1356293944,), (1356293948,), (1356293952,), (1356294176,), (1356294204,), (1356294231,), (1356294257,), (1356295790,), (1356295846,), (1356295906,), (1356295987,), (1356296061,), (1356296144,), (1356296515,), (1356296589,), (1356296665,), (1356296787,), (1356297445,), (1356297178,), (1356297233,), (1356297286,), (1356297338,), (1356297884,), (1356297939,), (1356297967,), (1356297996,), (1356298405,), (1356298460,), (1356298514,), (1356298545,), (1356298580,), (1356298636,), (1356298743,), (1356298756,), (1356298760,), (1356298768,), (1356298826,), (1356298830,), (1356298835,), (1356298838,), (1356298842,), (1356298885,), (1356298889,), (1356298892,), (1356298896,), (1356298929,), (1356298934,), (1356298939,), (1356298942,), (1356298948,), (1356298960,), (1356299004,), (1356299009,), (1356299012,), (1356299015,), (1356299079,), (1356299083,), (1356299088,), (1356299092,), (1356299096,), (1356299100,), (1356299149,), (1356299152,), (1356299168,), (1356299197,), (1356299234,), (1356299502,), (1356299515,), (1356299543,), (1356299569,), (1356299578,), (1356299668,), (1356299674,), (1356299677,), (1356299679,), (1356299684,), (1356299687,), (1356299782,), (1356299785,), (1356299789,), (1356299796,), (1356299921,), (1356299951,), (1356299964,), (1356299967,), (1356299972,), (1356299978,), (1356300011,), (1356300016,), (1356300020,), (1356300023,), (1356300087,), (1356300071,), (1356300074,), (1356300077,), (1356300080,), (1356300083,), (1356300129,), (1356300140,), (1356300147,), (1356300155,), (1356300165,), (1356300177,), (1356300211,), (1356300220,), (1356300226,), (1356300230,), (1356300235,), (1356300265,), (1356300272,), (1356300276,), (1356300280,), (1356300284,), (1356300288,), (1356300332,), (1356300341,), (1356300348,), (1356300350,), (1356300354,), (1356300418,), (1356300422,), (1356300426,), (1356300430,), (1356300435,), (1356300441,), (1356300475,), (1356300488,), (1356300498,), (1356300501,), (1356300506,), (1356300545,), (1356300550,), (1356300554,), (1356300598,), (1356300606,), (1356300611,), (1356300615,), (1356300618,), (1356300623,), (1356300650,), (1356300655,), (1356300658,), (1356300669,), (1356300698,), (1356300703,), (1356300708,), (1356300710,), (1356300715,), (1356300718,), (1356300753,), (1356300758,), (1356300763,), (1356300768,), (1356300770,), (1356300805,), (1356300813,), (1356300818,), (1356300823,), (1356300829,), (1356300832,), (1356300865,), (1356300868,), (1356300872,), (1356300875,), (1356300924,), (1356300931,), (1356300937,), (1356300943,), (1356300947,), (1356300954,), (1356301011,), (1356300999,), (1356301004,), (1356301008,), (1356301072,), (1356301075,), (1356301079,), (1356301083,), (1356301088,), (1356301122,), (1356301126,), (1356301131,), (1356301136,), (1356301141,), (1356301145,), (1356301193,), (1356301194,), (1356301196,), (1356301198,), (1356301233,), (1356301238,), (1356301244,), (1356301249,), (1356301254,), (1356301258,), (1356301285,), (1356301418,), (1356301421,), (1356301427,), (1356301432,), (1356301474,), (1356301485,), (1356301494,), (1356301515,), (1356301524,), (1356301531,), (1356301566,), (1356301568,), (1356301570,), (1356301572,), (1356301612,), (1356301721,), (1356301724,), (1356301727,), (1356301730,), (1356301734,), (1356301739,), (1356301781,), (1356301786,), (1356301789,), (1356301793,), (1356301798,), (1356301872,), (1356301879,), (1356301884,), (1356301886,), (1356301893,), (1356301976,), (1356301979,), (1356301983,), (1356301985,), (1356302027,), (1356302031,), (1356302085,), (1356302093,), (1356302105,), (1356302115,), (1356302118,), (1356302157,), (1356302160,), (1356302162,), (1356302165,), (1356302168,), (1356302198,), (1356302207,), (1356302209,), (1356302214,), (1356302265,), (1356302246,), (1356302253,), (1356302257,), (1356302260,), (1356302299,), (1356302303,), (1356302307,), (1356302310,), (1356302313,), (1356302319,), (1356302360,), (1356302366,), (1356302370,), (1356302372,), (1356302450,), (1356302453,), (1356302457,), (1356302466,), (1356302473,), (1356302478,), (1356302529,), (1356302533,), (1356302535,), (1356302538,), (1356302541,), (1356302645,), (1356302658,), (1356302663,), (1356302679,), (1356302687,), (1356302705,), (1356302736,), (1356302745,), (1356302749,), (1356302752,), (1356302789,), (1356302791,), (1356302793,), (1356302795,), (1356302799,), (1356302803,), (1356302865,), (1356302873,), (1356302887,), (1356302889,), (1356302984,), (1356302987,), (1356303027,), (1356303035,), (1356303045,), (1356303050,), (1356303128,), (1356303132,), (1356303134,), (1356303451,), (1356303481,), (1356303512,), (1356303539,), (1356303565,), (1356303596,), (1356303849,), (1356303904,), (1356303932,), (1356303968,), (1356304014,), (1356304783,), (1356304819,), (1356304850,), (1356304912,), (1356304921,), (1356304927,), (1356305185,), (1356305067,), (1356305073,), (1356305095,), (1356305178,), (1356305284,), (1356305294,), (1356305299,), (1356305303,), (1356305308,), (1356305381,), (1356305390,), (1356305393,), (1356305398,), (1356305403,), (1356305432,), (1356305434,), (1356305446,), (1356305457,), (1356305462,), (1356305578,), (1356305604,), (1356305616,), (1356305621,), (1356305625,), (1356305630,), (1356305664,), (1356305670,), (1356305673,), (1356305675,), (1356305804,), (1356305805,), (1356305807,), (1356305809,), (1356305813,), (1356305815,), (1356305852,), (1356305857,), (1356305859,), (1356305862,), (1356305927,), (1356305934,), (1356305938,), (1356305950,), (1356305955,), (1356305957,), (1356306048,), (1356306060,), (1356306074,), (1356306079,), (1356306225,), (1356306243,), (1356306327,), (1356306399,), (1356306407,), (1356306412,), (1356306483,), (1356306485,), (1356306490,), (1356306493,), (1356306495,), (1356306595,), (1356306609,), (1356306611,), (1356306615,), (1356306619,), (1356306655,), (1356306765,), (1356306811,), (1356306816,), (1356306820,), (1356306822,), (1356306915,), (1356306931,), (1356306940,), (1356306979,), (1356307158,), (1356307161,), (1356307194,), (1356307195,), (1356307198,), (1356307204,), (1356307242,), (1356307248,), (1356307252,), (1356307257,), (1356307263,), (1356307321,), (1356307324,), (1356307335,), (1356307340,), (1356307344,), (1356307386,), (1356307394,), (1356307398,), (1356307402,), (1356307407,), (1356307451,), (1356307454,), (1356307458,), (1356307460,), (1356307465,), (1356307502,), (1356307505,), (1356307509,), (1356307513,), (1356307519,), (1356307551,), (1356307559,), (1356307565,), (1356307569,), (1356307579,), (1356307674,), (1356307677,), (1356307679,), (1356307688,), (1356307713,), (1356307799,), (1356307802,), (1356307805,), (1356307806,), (1356307811,), (1356307888,), (1356307890,), (1356307892,), (1356307894,), (1356307896,), (1356307899,), (1356308012,), (1356308016,), (1356308020,), (1356308024,), (1356308113,), (1356308115,), (1356308117,), (1356308119,), (1356308123,), (1356308127,), (1356308221,), (1356308201,), (1356308209,), (1356308212,), (1356308216,), (1356308252,), (1356308261,), (1356308267,), (1356308270,), (1356308271,), (1356308275,), (1356308327,), (1356308331,), (1356308333,), (1356308403,), (1356308405,), (1356308407,), (1356308409,), (1356308412,), (1356308415,), (1356308453,), (1356308454,), (1356308456,), (1356308458,), (1356308497,), (1356308501,), (1356308504,), (1356308507,), (1356308512,), (1356308516,), (1356308543,), (1356308545,), (1356308546,), (1356308548,), (1356308553,), (1356308557,), (1356308584,), (1356308585,), (1356308587,), (1356308589,), (1356308591,), (1356308595,), (1356308625,), (1356308627,), (1356308629,), (1356308632,), (1356308670,), (1356308671,), (1356308673,), (1356308675,), (1356308678,), (1356308682,), (1356308748,), (1356308750,), (1356308751,), (1356308754,), (1356308756,), (1356308922,), (1356308928,), (1356308934,), (1356308936,), (1356308970,), (1356308972,), (1356308974,), (1356308976,), (1356308978,), (1356308982,), (1356309008,), (1356309012,), (1356309014,), (1356309027,), (1356309031,), (1356309082,), (1356309083,), (1356309085,), (1356309087,), (1356309089,), (1356309094,), (1356309138,), (1356309129,), (1356309132,), (1356309135,), (1356309212,), (1356309214,), (1356309216,), (1356309218,), (1356309219,), (1356309223,), (1356309249,), (1356309258,), (1356309264,), (1356309266,), (1356309270,), (1356309311,), (1356309315,), (1356309319,), (1356309322,), (1356309326,), (1356309330,), (1356309379,), (1356309387,), (1356309391,), (1356309398,), (1356309406,), (1356309532,), (1356309534,), (1356309540,), (1356309545,), (1356309562,), (1356309628,), (1356309659,), (1356309694,), (1356309742,), (1356309762,), (1356309838,), (1356309843,), (1356309847,), (1356309854,), (1356309861,), (1356309866,), (1356309962,), (1356309967,), (1356309971,), (1356309973,), (1356309979,), (1356310008,), (1356310010,), (1356310020,), (1356310023,), (1356310045,), (1356310053,), (1356310134,), (1356310138,), (1356310157,), (1356310166,), (1356310279,), (1356310286,), (1356310289,), (1356310292,), (1356310297,), (1356310301,), (1356310460,), (1356310483,), (1356310511,), (1356311113,), (1356311167,), (1356311218,), (1356311268,), (1356311300,), (1356311333,), (1356311462,), (1356311494,), (1356311521,), (1356311567,), (1356311767,), (1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,), (1356355384,), (1356355416,), (1356355446,), (1356355891,), (1356355893,), (1356355915,), (1356355951,), (1356356337,), (1356356345,), (1356356348,), (1356356351,), (1356356371,), (1356356768,), (1356356796,), (1356356826,), (1356357435,), (1356357489,), (1356357834,), (1356357836,), (1356357838,), (1356357890,), (1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,), (1356378318,), (1356378321,), (1356378325,), (1356378329,), (1356378334,), (1356378356,), (1356378503,), (1356378510,), (1356378514,), (1356378517,), (1356378522,), (1356378635,), (1356378588,), (1356378592,), (1356378613,), (1356378618,), (1356378697,), (1356378705,), (1356378711,), (1356378731,), (1356378746,), (1356378782,), (1356378788,), (1356378792,), (1356378797,), (1356378800,), (1356378807,), (1356378969,), (1356378971,), (1356378975,), (1356378980,), (1356378984,), (1356379050,), (1356379054,), (1356379063,), (1356379077,), (1356379080,), (1356379085,), (1356379109,), (1356379116,), (1356379121,), (1356379126,), (1356379185,), (1356379188,), (1356379192,), (1356379196,), (1356379212,), (1356379223,), (1356379247,), (1356379250,), (1356379253,), (1356379318,), (1356379324,), (1356379352,), (1356379379,), (1356379416,), (1356379599,), (1356379600,), (1356379610,), (1356379613,), (1356379616,), (1356379617,), (1356379664,), (1356379668,), (1356379681,), (1356379694,), (1356379699,), (1356379831,), (1356379809,), (1356379820,), (1356379825,), (1356379913,), (1356379914,), (1356379917,), (1356379919,), (1356379976,), (1356379980,), (1356379983,), (1356379987,), (1356379990,), (1356379993,), (1356380046,), (1356380060,), (1356380094,), (1356380183,), (1356380184,), (1356380190,), (1356380194,), (1356380196,), (1356380202,), (1356380203,), (1356380206,), (1356380208,), (1356380213,), (1356380378,), (1356380382,), (1356380387,), (1356380491,), (1356380508,), (1356380514,), (1356380527,), (1356380557,), (1356380573,), (1356380655,), (1356380663,), (1356380699,), (1356380703,), (1356380707,), (1356380768,), (1356380771,), (1356380839,), (1356380841,), (1356380844,), (1356380849,), (1356380874,), (1356380931,), (1356380933,), (1356380942,), (1356380973,), (1356381033,), (1356381137,), (1356381170,), (1356381189,), (1356381207,), (1356381213,), (1356381445,), (1356381460,), (1356381484,), (1356381515,), (1356381543,), (1356381574,), (1356381717,), (1356381741,), (1356381803,), (1356382145,), (1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06052025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22721235]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] map_info['map_portfolio_photo'] : {22721235: [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790, 1356383614, 1356383595, 1356383590, 1356383575, 1356383570, 1356383565, 1356383561, 1356383557, 1356383546, 1356383234, 1356383212, 1356383207, 1356383202, 1356383131, 1356383129, 1356383125, 1356383122, 1356383118, 1356383115, 1356383086, 1356383078, 1356383075, 1356383071, 1356383023, 1356383006, 1356382993, 1356382983, 1356382959, 1356382954, 1356382939, 1356382914, 1356382857, 1356382852, 1356382754, 1356382742, 1356382736, 1356382727, 1356382725, 1356382596, 1356382593, 1356382591, 1356382588, 1356382581, 1356382543, 1356382537, 1356382530, 1356382526, 1356382341, 1356382331, 1356382326, 1356382323, 1356382320, 1356382308, 1356382126, 1356382124, 1356382122, 1356382090, 1356382060]} final : True mtd_id 4302 list_pids : [1356384555, 1356384524, 1356384483, 1356384452, 1356384052, 1356384011, 1356383982, 1356383849, 1356383819, 1356383790] Looping around the photos to save general results len do output : 1 /22721235Didn'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, '2798330') ('4302', '22721235', '1356384555', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384524', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384483', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384452', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384052', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356384011', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383982', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383849', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383819', None, None, None, None, None, '2798330') ('4302', None, None, None, None, None, None, None, '2798330') ('4302', '22721235', '1356383790', None, None, None, None, None, '2798330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22721235', 'None', None, None, None, None, '2798330'), ('4302', '22721235', '1356384555', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384524', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384483', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384452', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384052', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356384011', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383982', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383849', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383819', None, None, None, None, None, '2798330'), ('4302', '22721235', '1356383790', None, None, None, None, None, '2798330')] time used for this insertion : 0.013918399810791016 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5079469680786133 time spend to save output : 0.014194965362548828 total time spend for step 5 : 1.522141933441162 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 (2798330) 2.42user 2.41system 0:14.00elapsed 34%CPU (0avgtext+0avgdata 162912maxresident)k 200inputs+16112outputs (7major+90016minor)pagefaults 0swaps