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 : 2924580 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 (2769943) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2769943) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509404 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2769943'] with mtr_portfolio_ids : ['22509404'] and first list_photo_ids : [] new path : /proc/2924580/ Name: python3 Umask: 0002 State: R (running) Tgid: 2924580 Ngid: 0 Pid: 2924580 PPid: 2924579 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2924580 NSpid: 2924580 NSpgid: 2922416 NSsid: 2922416 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99536 kB VmRSS: 99536 kB RssAnon: 60176 kB RssFile: 39360 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 60 nonvoluntary_ctxt_switches: 119 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2924580', 'Ngid': '0', 'Pid': '2924580', 'PPid': '2924579', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2924580', 'NSpid': '2924580', 'NSpgid': '2922416', 'NSsid': '2922416', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99536 kB', 'VmRSS': '99536 kB', 'RssAnon': '60176 kB', 'RssFile': '39360 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '60', 'nonvoluntary_ctxt_switches': '119'} ('datou_batch_current', '2924580', '1107228', '0', '1107228', '865976', '99536', b'', 'marlene', '2769943') 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 (22509404) 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 (2769943 ) ) 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 (22509404) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1354338717, 'portfolio_id': 22509404}, {'photo_id': 1354338710, 'portfolio_id': 22509404}, {'photo_id': 1354338701, 'portfolio_id': 22509404}, {'photo_id': 1354338697, 'portfolio_id': 22509404}, {'photo_id': 1354338688, 'portfolio_id': 22509404}, {'photo_id': 1354338137, 'portfolio_id': 22509404}, {'photo_id': 1354338078, 'portfolio_id': 22509404}, {'photo_id': 1354338016, 'portfolio_id': 22509404}, {'photo_id': 1354337967, 'portfolio_id': 22509404}, {'photo_id': 1354337916, 'portfolio_id': 22509404}, {'photo_id': 1354337420, 'portfolio_id': 22509404}, {'photo_id': 1354337416, 'portfolio_id': 22509404}, {'photo_id': 1354337409, 'portfolio_id': 22509404}, {'photo_id': 1354337401, 'portfolio_id': 22509404}, {'photo_id': 1354337360, 'portfolio_id': 22509404}, {'photo_id': 1354337352, 'portfolio_id': 22509404}, {'photo_id': 1354337328, 'portfolio_id': 22509404}, {'photo_id': 1354337324, 'portfolio_id': 22509404}, {'photo_id': 1354337321, 'portfolio_id': 22509404}, {'photo_id': 1354337315, 'portfolio_id': 22509404}, {'photo_id': 1354337248, 'portfolio_id': 22509404}, {'photo_id': 1354337227, 'portfolio_id': 22509404}, {'photo_id': 1354337222, 'portfolio_id': 22509404}, {'photo_id': 1354337215, 'portfolio_id': 22509404}, {'photo_id': 1354337009, 'portfolio_id': 22509404}, {'photo_id': 1354336980, 'portfolio_id': 22509404}, {'photo_id': 1354336951, 'portfolio_id': 22509404}, {'photo_id': 1354336921, 'portfolio_id': 22509404}, {'photo_id': 1354336894, 'portfolio_id': 22509404}, {'photo_id': 1354336888, 'portfolio_id': 22509404}, {'photo_id': 1354336832, 'portfolio_id': 22509404}, {'photo_id': 1354336803, 'portfolio_id': 22509404}, {'photo_id': 1354336794, 'portfolio_id': 22509404}, {'photo_id': 1354336791, 'portfolio_id': 22509404}, {'photo_id': 1354336544, 'portfolio_id': 22509404}, {'photo_id': 1354336498, 'portfolio_id': 22509404}, {'photo_id': 1354336427, 'portfolio_id': 22509404}, {'photo_id': 1354336342, 'portfolio_id': 22509404}, {'photo_id': 1354336142, 'portfolio_id': 22509404}, {'photo_id': 1354335794, 'portfolio_id': 22509404}, {'photo_id': 1354335739, 'portfolio_id': 22509404}, {'photo_id': 1354335679, 'portfolio_id': 22509404}, {'photo_id': 1354335622, 'portfolio_id': 22509404}, {'photo_id': 1354335539, 'portfolio_id': 22509404}, {'photo_id': 1354335455, 'portfolio_id': 22509404}, {'photo_id': 1354334914, 'portfolio_id': 22509404}, {'photo_id': 1354334912, 'portfolio_id': 22509404}, {'photo_id': 1354334906, 'portfolio_id': 22509404}, {'photo_id': 1354334876, 'portfolio_id': 22509404}, {'photo_id': 1354334303, 'portfolio_id': 22509404}, {'photo_id': 1354334167, 'portfolio_id': 22509404}, {'photo_id': 1354334050, 'portfolio_id': 22509404}, {'photo_id': 1354333929, 'portfolio_id': 22509404}, {'photo_id': 1354333845, 'portfolio_id': 22509404}, {'photo_id': 1354333762, 'portfolio_id': 22509404}, {'photo_id': 1354332854, 'portfolio_id': 22509404}, {'photo_id': 1354332780, 'portfolio_id': 22509404}, {'photo_id': 1354332717, 'portfolio_id': 22509404}, {'photo_id': 1354331829, 'portfolio_id': 22509404}, {'photo_id': 1354331757, 'portfolio_id': 22509404}, {'photo_id': 1354331649, 'portfolio_id': 22509404}, {'photo_id': 1354331567, 'portfolio_id': 22509404}, {'photo_id': 1354331480, 'portfolio_id': 22509404}, {'photo_id': 1354331387, 'portfolio_id': 22509404}, {'photo_id': 1354330426, 'portfolio_id': 22509404}, {'photo_id': 1354330305, 'portfolio_id': 22509404}] map_portfolio_id_photo_id: {22509404: [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215, 1354337009, 1354336980, 1354336951, 1354336921, 1354336894, 1354336888, 1354336832, 1354336803, 1354336794, 1354336791, 1354336544, 1354336498, 1354336427, 1354336342, 1354336142, 1354335794, 1354335739, 1354335679, 1354335622, 1354335539, 1354335455, 1354334914, 1354334912, 1354334906, 1354334876, 1354334303, 1354334167, 1354334050, 1354333929, 1354333845, 1354333762, 1354332854, 1354332780, 1354332717, 1354331829, 1354331757, 1354331649, 1354331567, 1354331480, 1354331387, 1354330426, 1354330305]} ##### 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.017058849334716797 #### 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 Apr 29 17:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22509404) 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 : 22509404 get user id for portfolio 22509404 get sub ptf for main ptf 22509404, type 3726 and hashtags ['kraft', 'Carton_gris', 'papier', 'flou', 'plastique', 'mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse', 'autre_refus', 'metal', 'cartonnette', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22509404 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','papier','flou','plastique','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','metal','cartonnette','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22509404 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','papier','flou','plastique','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','metal','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22509404, 'sub_port_id': 22509490, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947973, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'Carton_brun': {'main_port_id': 22509404, 'sub_port_id': 22509491, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947974, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'Carton_gris': {'main_port_id': 22509404, 'sub_port_id': 22509492, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947975, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'papier': {'main_port_id': 22509404, 'sub_port_id': 22509493, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947976, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'autre_refus': {'main_port_id': 22509404, 'sub_port_id': 22509494, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947977, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'kraft': {'main_port_id': 22509404, 'sub_port_id': 22509495, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947978, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'plastique': {'main_port_id': 22509404, 'sub_port_id': 22509496, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947979, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'mal_croppe': {'main_port_id': 22509404, 'sub_port_id': 22509497, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947980, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'environnement': {'main_port_id': 22509404, 'sub_port_id': 22509498, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947981, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22509404, 'sub_port_id': 22509499, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947982, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'metal': {'main_port_id': 22509404, 'sub_port_id': 22509500, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947983, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}, 'cartonnette': {'main_port_id': 22509404, 'sub_port_id': 22509501, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947984, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22509490 , 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=22509404 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 (22509490) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509491 , 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=22509404 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 (22509491) result : ((1354335287,), (1354336771,), (1354336772,), (1354336773,), (1354336775,), (1354336776,), (1354336777,), (1354336801,), (1354336802,), (1354338580,), (1354338713,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509492 , 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=22509404 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 (22509492) result : ((1354336099,), (1354336100,), (1354336101,), (1354336747,), (1354336748,), (1354336749,), (1354336751,), (1354336752,), (1354336753,), (1354337207,), (1354337208,), (1354337386,), (1354337407,), (1354337408,), (1354338553,), (1354338555,), (1354338709,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509493 , 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=22509404 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 (22509493) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509494 , 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=22509404 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 (22509494) result : ((1354336731,), (1354338535,), (1354338536,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509495 , 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=22509404 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 (22509495) result : ((1354335306,), (1354338609,), (1354338611,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509496 , 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=22509404 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 (22509496) result : ((1354336113,), (1354336115,), (1354337214,), (1354337392,), (1354337393,), (1354337412,), (1354338595,), (1354338714,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509497 , 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=22509404 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 (22509497) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509498 , 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=22509404 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 (22509498) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509499 , 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=22509404 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 (22509499) result : ((1354336089,), (1354336722,), (1354336724,), (1354336725,), (1354336726,), (1354336797,), (1354336799,), (1354337205,), (1354337206,), (1354337379,), (1354337380,), (1354337381,), (1354337403,), (1354337404,), (1354338520,), (1354338704,), (1354338705,), (1354338706,), (1354338838,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509500 , 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=22509404 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 (22509500) result : ((1354336805,), (1354336806,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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 22509501 , 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=22509404 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 (22509501) result : ((1354336759,), (1354337389,), (1354337390,), (1354337391,), (1354337410,), (1354337411,), (1354338567,), (1354338569,), (1354338711,), (1354338839,), (1354338840,), (1354338841,), (1354338842,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22509404) result : ((1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) 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`=22509404 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','papier','flou','plastique','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','metal','cartonnette','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22509404 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','papier','flou','plastique','mal_croppe','Carton_brun','Teint_Dans_La_Masse','autre_refus','metal','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22509404, 'sub_port_id': 22509502, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947985, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'Carton_brun': {'main_port_id': 22509404, 'sub_port_id': 22509503, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947986, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'Carton_gris': {'main_port_id': 22509404, 'sub_port_id': 22509504, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947987, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'papier': {'main_port_id': 22509404, 'sub_port_id': 22509505, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947988, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'autre_refus': {'main_port_id': 22509404, 'sub_port_id': 22509506, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947989, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'kraft': {'main_port_id': 22509404, 'sub_port_id': 22509507, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947990, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'plastique': {'main_port_id': 22509404, 'sub_port_id': 22509508, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947991, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'mal_croppe': {'main_port_id': 22509404, 'sub_port_id': 22509509, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947992, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'environnement': {'main_port_id': 22509404, 'sub_port_id': 22509510, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947993, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22509404, 'sub_port_id': 22509511, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947994, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'metal': {'main_port_id': 22509404, 'sub_port_id': 22509512, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947995, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}, 'cartonnette': {'main_port_id': 22509404, 'sub_port_id': 22509513, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14947996, 'last_updated_at': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 17, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509490 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509503,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509491 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509504,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509492 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509505,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509493 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509506,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509494 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509507,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509495 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509508,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509496 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509509,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509497 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509498 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509499 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509512,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509500 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22509513,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22509501 lien utilise dans velours : https://www.fotonower.com/velours/22509502,22509503,22509504,22509505,22509506,22509507,22509508,22509509,22509510,22509511,22509512,22509513?tags=flou,Carton_brun,Carton_gris,papier,autre_refus,kraft,plastique,mal_croppe,environnement,Teint_Dans_La_Masse,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22509404]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] map_info['map_portfolio_photo'] : {22509404: [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215, 1354337009, 1354336980, 1354336951, 1354336921, 1354336894, 1354336888, 1354336832, 1354336803, 1354336794, 1354336791, 1354336544, 1354336498, 1354336427, 1354336342, 1354336142, 1354335794, 1354335739, 1354335679, 1354335622, 1354335539, 1354335455, 1354334914, 1354334912, 1354334906, 1354334876, 1354334303, 1354334167, 1354334050, 1354333929, 1354333845, 1354333762, 1354332854, 1354332780, 1354332717, 1354331829, 1354331757, 1354331649, 1354331567, 1354331480, 1354331387, 1354330426, 1354330305]} final : False mtd_id 4302 list_pids : [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] Looping around the photos to save general results len do output : 1 /22509404. 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, '2769943') ('4302', '22509404', '1354338717', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338710', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338701', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338697', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338688', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338137', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338078', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338016', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337967', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337916', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337420', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337416', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337409', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337401', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337360', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337352', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337328', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337324', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337321', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337315', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337248', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337227', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337222', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337215', None, None, None, None, None, '2769943') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '22509404', "{'flou': 22509490, 'Carton_brun': 22509491, 'Carton_gris': 22509492, 'papier': 22509493, 'autre_refus': 22509494, 'kraft': 22509495, 'plastique': 22509496, 'mal_croppe': 22509497, 'environnement': 22509498, 'Teint_Dans_La_Masse': 22509499, 'metal': 22509500, 'cartonnette': 22509501}", None, None, None, None, '2769943'), ('4302', '22509404', '1354338717', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338710', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338701', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338697', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338688', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338137', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338078', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338016', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337967', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337916', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337420', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337416', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337409', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337401', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337360', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337352', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337328', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337324', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337321', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337315', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337248', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337227', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337222', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337215', None, None, None, None, None, '2769943')] time used for this insertion : 0.015344858169555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4471993446350098 time spend to save output : 0.015750885009765625 total time spend for step 1 : 1.4629502296447754 step2:final Tue Apr 29 17:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22509404) 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 22509404 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1354330426,1354330305,1354331829,1354331757,1354331649,1354331567,1354331480,1354331387,1354332854,1354332780,1354332717,1354334303,1354334167,1354334050,1354333929,1354333845,1354333762,1354334914,1354334912,1354334906,1354334876,1354335794,1354335739,1354335679,1354335622,1354335539,1354335455,1354336544,1354336498,1354336427,1354336342,1354336142,1354336832,1354336803,1354336794,1354336791,1354337009,1354336980,1354336951,1354336921,1354336894,1354336888,1354337248,1354337227,1354337222,1354337215,1354337360,1354337352,1354337328,1354337324,1354337321,1354337315,1354337420,1354337416,1354337409,1354337401,1354338137,1354338078,1354338016,1354337967,1354337916,1354338717,1354338710,1354338701,1354338697,1354338688); 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([22509404]) Inside saveOutput : final : False verbose : True original output for save of step final : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} new output for save of step final : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] map_info['map_portfolio_photo'] : {22509404: [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215, 1354337009, 1354336980, 1354336951, 1354336921, 1354336894, 1354336888, 1354336832, 1354336803, 1354336794, 1354336791, 1354336544, 1354336498, 1354336427, 1354336342, 1354336142, 1354335794, 1354335739, 1354335679, 1354335622, 1354335539, 1354335455, 1354334914, 1354334912, 1354334906, 1354334876, 1354334303, 1354334167, 1354334050, 1354333929, 1354333845, 1354333762, 1354332854, 1354332780, 1354332717, 1354331829, 1354331757, 1354331649, 1354331567, 1354331480, 1354331387, 1354330426, 1354330305]} final : False mtd_id 4302 list_pids : [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] Looping around the photos to save general results len do output : 24 /1354338717.Didn't retrieve data . /1354338710.Didn't retrieve data . /1354338701.Didn't retrieve data . /1354338697.Didn't retrieve data . /1354338688.Didn't retrieve data . /1354338137.Didn't retrieve data . /1354338078.Didn't retrieve data . /1354338016.Didn't retrieve data . /1354337967.Didn't retrieve data . /1354337916.Didn't retrieve data . /1354337420.Didn't retrieve data . /1354337416.Didn't retrieve data . /1354337409.Didn't retrieve data . /1354337401.Didn't retrieve data . /1354337360.Didn't retrieve data . /1354337352.Didn't retrieve data . /1354337328.Didn't retrieve data . /1354337324.Didn't retrieve data . /1354337321.Didn't retrieve data . /1354337315.Didn't retrieve data . /1354337248.Didn't retrieve data . /1354337227.Didn't retrieve data . /1354337222.Didn't retrieve data . /1354337215.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, '2769943') ('4302', '22509404', '1354338717', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338710', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338701', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338697', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338688', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338137', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338078', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338016', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337967', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337916', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337420', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337416', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337409', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337401', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337360', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337352', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337328', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337324', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337321', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337315', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337248', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337227', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337222', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337215', None, None, None, None, None, '2769943') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 72 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', '22509404', '1354338717', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354338710', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354338701', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354338697', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354338688', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354338137', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354338078', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354338016', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337967', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337916', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337420', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337416', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337409', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337401', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337360', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337352', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337328', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337324', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337321', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337315', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337248', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337227', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337222', '0.06054599884414311', None, None, None, None, '2769943'), ('4302', '22509404', '1354337215', '0.06054599884414311', None, None, None, None, '2769943')] time used for this insertion : 0.016317367553710938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07114362716674805 time spend to save output : 0.017413854598999023 total time spend for step 2 : 0.08855748176574707 step3:velours_tree Tue Apr 29 17:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22509404: [{'flou': 22509490, 'Carton_brun': 22509491, 'Carton_gris': 22509492, 'papier': 22509493, 'autre_refus': 22509494, 'kraft': 22509495, 'plastique': 22509496, 'mal_croppe': 22509497, 'environnement': 22509498, 'Teint_Dans_La_Masse': 22509499, 'metal': 22509500, 'cartonnette': 22509501}]} input_args_next_step : {22509404: ()} output_args : {22509404: [{'flou': 22509490, 'Carton_brun': 22509491, 'Carton_gris': 22509492, 'papier': 22509493, 'autre_refus': 22509494, 'kraft': 22509495, 'plastique': 22509496, 'mal_croppe': 22509497, 'environnement': 22509498, 'Teint_Dans_La_Masse': 22509499, 'metal': 22509500, 'cartonnette': 22509501}]} args : 22509404 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 : ({'flou': 22509490, 'Carton_brun': 22509491, 'Carton_gris': 22509492, 'papier': 22509493, 'autre_refus': 22509494, 'kraft': 22509495, 'plastique': 22509496, 'mal_croppe': 22509497, 'environnement': 22509498, 'Teint_Dans_La_Masse': 22509499, 'metal': 22509500, 'cartonnette': 22509501},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22509404) 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([22509404]) 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.8336935043334961 time spend to save output : 0.00010418891906738281 total time spend for step 3 : 0.8337976932525635 step4:send_mail_cod Tue Apr 29 17:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} input_args_next_step : {1354338717: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338717 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338710 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338701 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338697 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338688 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338137 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338078 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354338016 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337967 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337916 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337420 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337416 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337409 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337401 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337360 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337352 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337328 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337324 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337321 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337315 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337248 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337227 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337222 depend.output_id : 0 input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ()} output_args : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',)} args : 1354337215 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 : {22509404: [{'flou': 22509490, 'Carton_brun': 22509491, 'Carton_gris': 22509492, 'papier': 22509493, 'autre_refus': 22509494, 'kraft': 22509495, 'plastique': 22509496, 'mal_croppe': 22509497, 'environnement': 22509498, 'Teint_Dans_La_Masse': 22509499, 'metal': 22509500, 'cartonnette': 22509501}]} input_args_next_step : {1354338717: ('0.06054599884414311',), 1354338710: ('0.06054599884414311',), 1354338701: ('0.06054599884414311',), 1354338697: ('0.06054599884414311',), 1354338688: ('0.06054599884414311',), 1354338137: ('0.06054599884414311',), 1354338078: ('0.06054599884414311',), 1354338016: ('0.06054599884414311',), 1354337967: ('0.06054599884414311',), 1354337916: ('0.06054599884414311',), 1354337420: ('0.06054599884414311',), 1354337416: ('0.06054599884414311',), 1354337409: ('0.06054599884414311',), 1354337401: ('0.06054599884414311',), 1354337360: ('0.06054599884414311',), 1354337352: ('0.06054599884414311',), 1354337328: ('0.06054599884414311',), 1354337324: ('0.06054599884414311',), 1354337321: ('0.06054599884414311',), 1354337315: ('0.06054599884414311',), 1354337248: ('0.06054599884414311',), 1354337227: ('0.06054599884414311',), 1354337222: ('0.06054599884414311',), 1354337215: ('0.06054599884414311',), 22509404: ()} output_args : {22509404: [{'flou': 22509490, 'Carton_brun': 22509491, 'Carton_gris': 22509492, 'papier': 22509493, 'autre_refus': 22509494, 'kraft': 22509495, 'plastique': 22509496, 'mal_croppe': 22509497, 'environnement': 22509498, 'Teint_Dans_La_Masse': 22509499, 'metal': 22509500, 'cartonnette': 22509501}]} args : 22509404 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 :25, first value : ('0.06054599884414311',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22509404) 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 (1354338717,1354338710,1354338701,1354338697,1354338688,1354338137,1354338078,1354338016,1354337967,1354337916,1354337420,1354337416,1354337409,1354337401,1354337360,1354337352,1354337328,1354337324,1354337321,1354337315,1354337248,1354337227,1354337222,1354337215) Found this number of photos: 24 ##### Call download_photos : nb_thread : 5 begin to download photo : 1354337215 begin to download photo : 1354337321 begin to download photo : 1354337401 begin to download photo : 1354337967 begin to download photo : 1354338697 download finish for photo 1354337401 begin to download photo : 1354337409 download finish for photo 1354338697 begin to download photo : 1354338701 download finish for photo 1354337321 begin to download photo : 1354337324 download finish for photo 1354337215 begin to download photo : 1354337222 download finish for photo 1354337967 begin to download photo : 1354338016 download finish for photo 1354337324 begin to download photo : 1354337328 download finish for photo 1354337222 begin to download photo : 1354337227 download finish for photo 1354338701 begin to download photo : 1354338710 download finish for photo 1354338016 begin to download photo : 1354338078 download finish for photo 1354337409 begin to download photo : 1354337416 download finish for photo 1354337227 begin to download photo : 1354337248 download finish for photo 1354337328 begin to download photo : 1354337352 download finish for photo 1354338710 begin to download photo : 1354338717 download finish for photo 1354337416 begin to download photo : 1354337420 download finish for photo 1354338078 begin to download photo : 1354338137 download finish for photo 1354338717 download finish for photo 1354337352 begin to download photo : 1354337360 download finish for photo 1354337248 begin to download photo : 1354337315 download finish for photo 1354337420 begin to download photo : 1354337916 download finish for photo 1354338137 begin to download photo : 1354338688 download finish for photo 1354337360 download finish for photo 1354337315 download finish for photo 1354337916 download finish for photo 1354338688 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette225094901745939699/ length of list_filenames : 24 ; length of list_pids : 24 ; length of list_args : 24 results_Auto_P22509404_29-04-2025_17_14_59.pdf 22509490 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=22509490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225094901745939699 22509494 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=22509494 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354336731: '1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431073_0.png', 1354338535: '1745939592_229683_1354335622_070a5bb9b83b21fd0ffa15082f709890_rle_crop_3773457540_0.png', 1354338536: '1745939592_229683_1354335455_49dad80888cf83fbd22a2ecd0deebae9_rle_crop_3773457572_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/68d839a1fa9d9ef21f6967d60860de71_51991925.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/39b9e0c64ec130ed20b663e99743da81_40930632.png change filename to text .imagette225094941745939699/ imagette225094941745939699/1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431073_0.png.png imagette225094941745939699/1745939592_229683_1354335622_070a5bb9b83b21fd0ffa15082f709890_rle_crop_3773457540_0.png.png imagette225094941745939699/1745939592_229683_1354335455_49dad80888cf83fbd22a2ecd0deebae9_rle_crop_3773457572_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/ea75f9b2b42ebea4ad337c092d55007a_32435500.png imagette225094941745939699 22509495 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=22509495 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354335306: '1745939140_428044_1354332780_817a593a74eae8a0e9518524d39a4e1c_rle_crop_3773427750_0.png', 1354338609: '1745939592_229683_1354335539_d443f34a1a31b0577d122894670f332e_rle_crop_3773457559_0.png', 1354338611: '1745939592_229683_1354335455_49dad80888cf83fbd22a2ecd0deebae9_rle_crop_3773457575_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/f649ced7d7e2794427e1547413b0f4af_74190378.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/17ec68f72170d331a03fc18a7f33245a_30969945.png change filename to text .imagette225094951745939699/ imagette225094951745939699/1745939592_229683_1354335455_49dad80888cf83fbd22a2ecd0deebae9_rle_crop_3773457575_0.png.png imagette225094951745939699/1745939140_428044_1354332780_817a593a74eae8a0e9518524d39a4e1c_rle_crop_3773427750_0.png.png imagette225094951745939699/1745939592_229683_1354335539_d443f34a1a31b0577d122894670f332e_rle_crop_3773457559_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/cfbb6f9a552a143586dcc00c53810fa3_74834547.png imagette225094951745939699 22509496 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=22509496 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354336113: '1745939172_224878_1354332854_6801acb62ee54116b4e219f698c3dce9_rle_crop_3773429750_0.png', 1354336115: '1745939172_224878_1354331567_e7da93c77e1556537e3f64bca81634fe_rle_crop_3773429815_0.png', 1354337214: '1745939383_434221_1354336791_12214bb5ce52b72c81a31c4a693f5268_rle_crop_3773441060_0.png', 1354337392: '1745939473_228311_1354336894_ab51c1d64b0b43e4f1b158bb54793320_rle_crop_3773452319_0.png', 1354337393: '1745939473_228311_1354336894_ab51c1d64b0b43e4f1b158bb54793320_rle_crop_3773452324_0.png', 1354337412: '1745939501_437502_1354336142_d76eca8e36a42dc65a80355f437be398_rle_crop_3773442522_0.png', 1354338595: '1745939592_229683_1354335679_6f8dabbb0ea1822572b5dfe06f133353_rle_crop_3773457486_0.png', 1354338714: '1745939629_440307_1354337401_cecfac1806c96e0f41fa1f4abfaf4b5a_rle_crop_3773458182_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/2c48f13bb4c6be57a87040ab61abeaf2_37627565.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/9fe72494171d7fc43de1e9d96f194e9b_92103225.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/5ceab923dac890b0a4461263a6367f76_51561946.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/38b9b93efe5f1ab3a94a604f68bbb710_6357201.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/1ce7fc8ab8f9b23476d55fe26ca7ed50_5699191.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d48fa8fa5511f00888c121e0a447d3dc_10915747.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/30642286547c5fae4e251a7a6340eeb3_94031888.png change filename to text .imagette225094961745939700/ imagette225094961745939700/1745939473_228311_1354336894_ab51c1d64b0b43e4f1b158bb54793320_rle_crop_3773452319_0.png.png imagette225094961745939700/1745939172_224878_1354332854_6801acb62ee54116b4e219f698c3dce9_rle_crop_3773429750_0.png.png imagette225094961745939700/1745939501_437502_1354336142_d76eca8e36a42dc65a80355f437be398_rle_crop_3773442522_0.png.png imagette225094961745939700/1745939172_224878_1354331567_e7da93c77e1556537e3f64bca81634fe_rle_crop_3773429815_0.png.png imagette225094961745939700/1745939629_440307_1354337401_cecfac1806c96e0f41fa1f4abfaf4b5a_rle_crop_3773458182_0.png.png imagette225094961745939700/1745939592_229683_1354335679_6f8dabbb0ea1822572b5dfe06f133353_rle_crop_3773457486_0.png.png imagette225094961745939700/1745939383_434221_1354336791_12214bb5ce52b72c81a31c4a693f5268_rle_crop_3773441060_0.png.png imagette225094961745939700/1745939473_228311_1354336894_ab51c1d64b0b43e4f1b158bb54793320_rle_crop_3773452324_0.png.png imagette225094971745939700/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/792e2de159facaaf4edfe3de4413b1da_53984398.png imagette225094961745939700 22509497 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=22509497 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225094971745939700 22509500 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=22509500 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354336805: '1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431343_0.png', 1354336806: '1745939268_430986_1354334906_361185daff26c5a87edfcf867d1dff76_rle_crop_3773431353_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0e1fbb87208f4895cda5297fee83d018_96496335.png change filename to text .imagette225095001745939700/ imagette225095001745939700/1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431343_0.png.png imagette225095001745939700/1745939268_430986_1354334906_361185daff26c5a87edfcf867d1dff76_rle_crop_3773431353_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c84069364ca4cc7a3710e8ac7b8e22cf_79316323.png imagette225095001745939700 22509501 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=22509501 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354336759: '1745939233_225467_1354334050_2012909e8bb82d1670eb0c76b74c0058_rle_crop_3773431098_0.png', 1354337389: '1745939473_228311_1354336921_7e063bfdf8dbd0419559f51da30910ad_rle_crop_3773452052_0.png', 1354337390: '1745939473_228311_1354336888_29a06d2462869c6851b5f6e3c0985aa7_rle_crop_3773452823_0.png', 1354337391: '1745939473_228311_1354336888_29a06d2462869c6851b5f6e3c0985aa7_rle_crop_3773452822_0.png', 1354337410: '1745939501_437502_1354336498_816389fd8ccb5feaba568a03291554fe_bib_crop_3773442233_0.jpg', 1354337411: '1745939501_437502_1354336498_816389fd8ccb5feaba568a03291554fe_rle_crop_3773454028_0.png', 1354338567: '1745939592_229683_1354336544_ba33e8e20632f12b7b7c99972cd553dc_rle_crop_3773457464_0.png', 1354338569: '1745939592_229683_1354335455_49dad80888cf83fbd22a2ecd0deebae9_rle_crop_3773457568_0.png', 1354338711: '1745939629_440307_1354337409_9c3ca248eb948766b28a8b66105a863f_rle_crop_3773458166_0.png', 1354338839: '1745939652_230271_1354337352_fe626ea0a31ba7a96ef8d2a0d6022a62_rle_crop_3773464320_0.png', 1354338840: '1745939652_230271_1354337352_fe626ea0a31ba7a96ef8d2a0d6022a62_rle_crop_3773464318_0.png', 1354338841: '1745939652_230271_1354337328_0dc5953ca29f3b3d5b444c47ca2f524c_rle_crop_3773464330_0.png', 1354338842: '1745939652_230271_1354337321_5110a01ec1aa58fcdf2b8589d0fc2926_rle_crop_3773464371_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d5749fa9903e663a7d49e8e6e48e5e2e_53593158.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b922bd2c67d69b1d8121bcbc1c85208b_57073636.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/7568e3eca5a6fa839b21b4008a664a40_88529199.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/73196e60de85b1d42a7dcdb6b4f01247_64292695.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/a6a9a15b7080e41640fb5dfe425704f8_15071460.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b63d8a5df0dbb1416468f988f4e0d650_41917709.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/624ae77599f4f9ebc9e94d442103cbb8_31206369.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e3eb514c47adab2aa66b921f5b07487b_21241897.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/9c6768b9ee14469781846fe5ef83f26c_50501237.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0754a7a64b033ca804f0a5f51a11fc19_7818710.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c48e81e6fe0bc4f51db76d89dc598c69_75631328.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/77d85a48c55c5646edf87810eb67119c_69589171.png change filename to text .imagette225095011745939700/ imagette225095011745939700/1745939652_230271_1354337352_fe626ea0a31ba7a96ef8d2a0d6022a62_rle_crop_3773464320_0.png.png imagette225095011745939700/1745939473_228311_1354336888_29a06d2462869c6851b5f6e3c0985aa7_rle_crop_3773452822_0.png.png imagette225095011745939700/1745939652_230271_1354337321_5110a01ec1aa58fcdf2b8589d0fc2926_rle_crop_3773464371_0.png.png imagette225095011745939700/1745939501_437502_1354336498_816389fd8ccb5feaba568a03291554fe_bib_crop_3773442233_0.jpg.jpg imagette225095011745939700/1745939501_437502_1354336498_816389fd8ccb5feaba568a03291554fe_rle_crop_3773454028_0.png.png imagette225095011745939700/1745939629_440307_1354337409_9c3ca248eb948766b28a8b66105a863f_rle_crop_3773458166_0.png.png imagette225095011745939700/1745939592_229683_1354335455_49dad80888cf83fbd22a2ecd0deebae9_rle_crop_3773457568_0.png.png imagette225095011745939700/1745939233_225467_1354334050_2012909e8bb82d1670eb0c76b74c0058_rle_crop_3773431098_0.png.png imagette225095011745939700/1745939592_229683_1354336544_ba33e8e20632f12b7b7c99972cd553dc_rle_crop_3773457464_0.png.png imagette225095011745939700/1745939473_228311_1354336921_7e063bfdf8dbd0419559f51da30910ad_rle_crop_3773452052_0.png.png imagette225095011745939700/1745939473_228311_1354336888_29a06d2462869c6851b5f6e3c0985aa7_rle_crop_3773452823_0.png.png imagette225095011745939700/1745939652_230271_1354337352_fe626ea0a31ba7a96ef8d2a0d6022a62_rle_crop_3773464318_0.png.png imagette225095011745939700/1745939652_230271_1354337328_0dc5953ca29f3b3d5b444c47ca2f524c_rle_crop_3773464330_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/528100a65c352caa83b27e012b474411_42563216.png imagette225095011745939700 22509491 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=22509491 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354335287: '1745939140_428044_1354332717_5fd4d576900c3b6bbd79e4d427411aed_rle_crop_3773427798_0.png', 1354336771: '1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431075_0.png', 1354336772: '1745939233_225467_1354333929_1ecfa55e4c63b6ca7157b9be4f99cc61_rle_crop_3773431119_0.png', 1354336773: '1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431132_0.png', 1354336775: '1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431131_0.png', 1354336776: '1745939233_225467_1354333762_11b2667e436b4341a35af6b48886acc7_rle_crop_3773431144_0.png', 1354336777: '1745939233_225467_1354333762_11b2667e436b4341a35af6b48886acc7_rle_crop_3773431143_0.png', 1354336801: '1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431344_0.png', 1354336802: '1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431338_0.png', 1354338580: '1745939592_229683_1354335679_6f8dabbb0ea1822572b5dfe06f133353_rle_crop_3773457485_0.png', 1354338713: '1745939629_440307_1354337401_cecfac1806c96e0f41fa1f4abfaf4b5a_rle_crop_3773458183_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/18fdbf2b1a600e94cce2fc533a747217_57350197.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e6458fea9102bafa4fbff6cb9ef19dd9_2539621.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c7395c0718ba7a780c2d10cca39b6257_35301392.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d718191c88f8b46e029e5b17ae530694_53215622.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/1c4f64e88bc0213124ed63100ff7ae1a_38065135.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e82ad0cf6ddff71093730aacb23947ff_11646441.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/343d3fede53f1c0d59d9c863dd7683b0_72617119.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/212fb470058d1950bd9ce3ec09ad9a37_59968470.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e1e5c8bd7c971d6a87e3884ec6f92347_42814549.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/4476a9d9e0e46026d49981d0f82c3222_58898928.png change filename to text .imagette225094911745939701/ imagette225094911745939701/1745939140_428044_1354332717_5fd4d576900c3b6bbd79e4d427411aed_rle_crop_3773427798_0.png.png imagette225094911745939701/1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431132_0.png.png imagette225094911745939701/1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431338_0.png.png imagette225094911745939701/1745939233_225467_1354333762_11b2667e436b4341a35af6b48886acc7_rle_crop_3773431143_0.png.png imagette225094911745939701/1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431075_0.png.png imagette225094911745939701/1745939629_440307_1354337401_cecfac1806c96e0f41fa1f4abfaf4b5a_rle_crop_3773458183_0.png.png imagette225094911745939701/1745939233_225467_1354333929_1ecfa55e4c63b6ca7157b9be4f99cc61_rle_crop_3773431119_0.png.png imagette225094911745939701/1745939592_229683_1354335679_6f8dabbb0ea1822572b5dfe06f133353_rle_crop_3773457485_0.png.png imagette225094911745939701/1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431344_0.png.png imagette225094911745939701/1745939233_225467_1354333762_11b2667e436b4341a35af6b48886acc7_rle_crop_3773431144_0.png.png imagette225094911745939701/1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431131_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/2dc0ed028f2bd1fd8d2d2093fc7a5241_21998145.png imagette225094911745939701 22509492 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=22509492 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354336753: '1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431124_0.png', 1354338709: '1745939629_440307_1354337416_0d9db35d0fa726d06efafc83af4c7942_rle_crop_3773458152_0.png', 1354338555: '1745939592_229683_1354335539_d443f34a1a31b0577d122894670f332e_rle_crop_3773457552_0.png', 1354338553: '1745939592_229683_1354335739_e4dea548ef10196910ebf3659aeda2c8_rle_crop_3773457476_0.png', 1354337408: '1745939501_437502_1354336342_2d18814767524486f6c959ef3a52e2f9_rle_crop_3773442508_0.png', 1354337407: '1745939501_437502_1354336342_2d18814767524486f6c959ef3a52e2f9_rle_crop_3773442511_0.png', 1354337386: '1745939473_228311_1354336980_4a58328431ddc1ad5ca413fa2b4153b2_rle_crop_3773452011_0.png', 1354337208: '1745939383_434221_1354336791_12214bb5ce52b72c81a31c4a693f5268_rle_crop_3773441064_0.png', 1354337207: '1745939383_434221_1354336791_12214bb5ce52b72c81a31c4a693f5268_rle_crop_3773441067_0.png', 1354336099: '1745939172_224878_1354331649_895eddb84b3517698689cd0b648e4c00_rle_crop_3773429785_0.png', 1354336752: '1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431127_0.png', 1354336751: '1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431128_0.png', 1354336749: '1745939233_225467_1354333929_1ecfa55e4c63b6ca7157b9be4f99cc61_rle_crop_3773431110_0.png', 1354336748: '1745939233_225467_1354334050_2012909e8bb82d1670eb0c76b74c0058_rle_crop_3773431102_0.png', 1354336747: '1745939233_225467_1354334167_15115a08c2ca6798c4f760a1074706cb_rle_crop_3773431092_0.png', 1354336101: '1745939172_224878_1354331480_80a2de388f53bde2dca1faf90e9e3093_rle_crop_3773429877_0.png', 1354336100: '1745939172_224878_1354331649_895eddb84b3517698689cd0b648e4c00_rle_crop_3773429784_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/ad79bbbda02e1edbd8de3edc35bb83af_14887578.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e3c54c054ebc85ac3594f5bf4d2b9ef2_4628456.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/72945124fbaa4f2fe3fbec7f59ba4e7e_39394433.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/af80d530296ee7dfb6a8f27dded4faa8_71139411.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/a57d369c9af065403d0075908330f7b9_52780440.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/5a0f30ad096579036f901b801869ff8f_8390165.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/f83ce148cc8e5cb758113d3419f398b9_15988225.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/ff7dd1c0b92ac118f289e36eebe5ba48_84182908.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/896db03e70835e807afe3a2cea4cf54d_58723142.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/a688541ea154f2d8ad02ed954a86dbf5_82058215.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b33f8513c601624ed92394f28637ed77_97943261.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/6822ddfc42bce1c20a2d3f981f4b7e00_16138102.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/6cf2628553a3bdc8408957253e7d585d_64607641.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e8c49d713a0549f4b3369b2a6eaf2a31_67098405.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/e282ca1aaf55181cc8679975266ec1db_61421151.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b1cbdea1fe5429697852cfe1ef21f1bc_85458883.png change filename to text .imagette225094921745939702/ imagette225094921745939702/1745939233_225467_1354334167_15115a08c2ca6798c4f760a1074706cb_rle_crop_3773431092_0.png.png imagette225094921745939702/1745939473_228311_1354336980_4a58328431ddc1ad5ca413fa2b4153b2_rle_crop_3773452011_0.png.png imagette225094921745939702/1745939383_434221_1354336791_12214bb5ce52b72c81a31c4a693f5268_rle_crop_3773441064_0.png.png imagette225094921745939702/1745939592_229683_1354335739_e4dea548ef10196910ebf3659aeda2c8_rle_crop_3773457476_0.png.png imagette225094921745939702/1745939172_224878_1354331649_895eddb84b3517698689cd0b648e4c00_rle_crop_3773429785_0.png.png imagette225094921745939702/1745939629_440307_1354337416_0d9db35d0fa726d06efafc83af4c7942_rle_crop_3773458152_0.png.png imagette225094921745939702/1745939592_229683_1354335539_d443f34a1a31b0577d122894670f332e_rle_crop_3773457552_0.png.png imagette225094921745939702/1745939383_434221_1354336791_12214bb5ce52b72c81a31c4a693f5268_rle_crop_3773441067_0.png.png imagette225094921745939702/1745939501_437502_1354336342_2d18814767524486f6c959ef3a52e2f9_rle_crop_3773442508_0.png.png imagette225094921745939702/1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431124_0.png.png imagette225094921745939702/1745939501_437502_1354336342_2d18814767524486f6c959ef3a52e2f9_rle_crop_3773442511_0.png.png imagette225094921745939702/1745939233_225467_1354334050_2012909e8bb82d1670eb0c76b74c0058_rle_crop_3773431102_0.png.png imagette225094921745939702/1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431128_0.png.png imagette225094921745939702/1745939172_224878_1354331480_80a2de388f53bde2dca1faf90e9e3093_rle_crop_3773429877_0.png.png imagette225094921745939702/1745939233_225467_1354333845_8621835e50d531932a56efa1ec8b6a9e_rle_crop_3773431127_0.png.png imagette225094921745939702/1745939233_225467_1354333929_1ecfa55e4c63b6ca7157b9be4f99cc61_rle_crop_3773431110_0.png.png imagette225094921745939702/1745939172_224878_1354331649_895eddb84b3517698689cd0b648e4c00_rle_crop_3773429784_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/a5c950bae2f95479e7f68f6ba528dafb_23460106.png imagette225094921745939702 22509499 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=22509499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354337379: '1745939473_228311_1354336980_4a58328431ddc1ad5ca413fa2b4153b2_rle_crop_3773452016_0.png', 1354338838: '1745939652_230271_1354337324_d2a94d9b408da833400f793b4859c608_rle_crop_3773464357_0.png', 1354338706: '1745939629_440307_1354337401_cecfac1806c96e0f41fa1f4abfaf4b5a_rle_crop_3773458186_0.png', 1354338705: '1745939629_440307_1354337409_9c3ca248eb948766b28a8b66105a863f_rle_crop_3773458171_0.png', 1354338704: '1745939629_440307_1354337409_9c3ca248eb948766b28a8b66105a863f_rle_crop_3773458167_0.png', 1354338520: '1745939592_229683_1354335539_d443f34a1a31b0577d122894670f332e_rle_crop_3773457555_0.png', 1354337404: '1745939501_437502_1354336342_2d18814767524486f6c959ef3a52e2f9_rle_crop_3773442515_0.png', 1354337403: '1745939501_437502_1354336427_50a45c1daa66a2bb7fdff002bb3900a5_rle_crop_3773442491_0.png', 1354337381: '1745939473_228311_1354336951_c12e19a46705e2cb49e686a358010983_rle_crop_3773452039_0.png', 1354337380: '1745939473_228311_1354336951_c12e19a46705e2cb49e686a358010983_rle_crop_3773452042_0.png', 1354336089: '1745939172_224878_1354331480_80a2de388f53bde2dca1faf90e9e3093_rle_crop_3773429881_0.png', 1354337206: '1745939383_434221_1354336794_1b6bb693703700dca6560871463a0d92_rle_crop_3773441048_0.png', 1354337205: '1745939383_434221_1354336803_cd25f7661d0f6740275243b68aa13701_rle_crop_3773441038_0.png', 1354336799: '1745939268_430986_1354334876_73c0fa0e41072823c4cc8f263cd1a8b3_rle_crop_3773431367_0.png', 1354336797: '1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431342_0.png', 1354336726: '1745939233_225467_1354333929_1ecfa55e4c63b6ca7157b9be4f99cc61_rle_crop_3773431117_0.png', 1354336725: '1745939233_225467_1354334050_2012909e8bb82d1670eb0c76b74c0058_rle_crop_3773431100_0.png', 1354336724: '1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431074_0.png', 1354336722: '1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431080_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/a8db62ae4967b1a2e23a385ce84c793f_56446203.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b8fed4ec374e5f95dd5f20a7bddbc42f_71368086.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/9cbe4052164af8c91ab8a20fa9e40339_59038324.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/a663b44411ecfc9ee962cf87ead57dec_15772303.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0af10b98f1d3dee84fff55acb43409a1_74989341.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/31e0b1cd2b74908b7b32ccee865237b4_77973820.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/8ded109d4c007e71195523a194cfc9f8_48680384.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/0fb0ae8b2a8bd461c6203beab7782426_55952649.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/5a339a101fea746c0302662d06748e43_84227659.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/f3b3b8975ddfa019c1075ff9f79d7dc2_13121575.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/10bf59812fea761e34d465c9912efad5_63255782.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/d6019d8be1ce477dfc01b65aead884aa_81873326.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/29fdb7c07900299273fd8b3cef79e646_34477753.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/6164e7c45320accf1602c9d2e2d83415_36139771.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/16a81c28e67cc5ad23074e07f69f03d0_72290732.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/48faf95a5e497c313a081f3cd951ade8_17525975.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/4eb42e1a27e77b4386272585492db969_35771121.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/ea45d5212ce351cf6fce1b774423b3e7_75278366.png change filename to text .imagette225094991745939703/ imagette225094991745939703/1745939592_229683_1354335539_d443f34a1a31b0577d122894670f332e_rle_crop_3773457555_0.png.png imagette225094991745939703/1745939629_440307_1354337409_9c3ca248eb948766b28a8b66105a863f_rle_crop_3773458167_0.png.png imagette225094991745939703/1745939629_440307_1354337409_9c3ca248eb948766b28a8b66105a863f_rle_crop_3773458171_0.png.png imagette225094991745939703/1745939268_430986_1354334912_c6d04e971a6a64990cdb0ee4ab370f3c_rle_crop_3773431342_0.png.png imagette225094991745939703/1745939233_225467_1354333929_1ecfa55e4c63b6ca7157b9be4f99cc61_rle_crop_3773431117_0.png.png imagette225094991745939703/1745939383_434221_1354336794_1b6bb693703700dca6560871463a0d92_rle_crop_3773441048_0.png.png imagette225094991745939703/1745939172_224878_1354331480_80a2de388f53bde2dca1faf90e9e3093_rle_crop_3773429881_0.png.png imagette225094991745939703/1745939501_437502_1354336427_50a45c1daa66a2bb7fdff002bb3900a5_rle_crop_3773442491_0.png.png imagette225094991745939703/1745939473_228311_1354336980_4a58328431ddc1ad5ca413fa2b4153b2_rle_crop_3773452016_0.png.png imagette225094991745939703/1745939473_228311_1354336951_c12e19a46705e2cb49e686a358010983_rle_crop_3773452042_0.png.png imagette225094991745939703/1745939629_440307_1354337401_cecfac1806c96e0f41fa1f4abfaf4b5a_rle_crop_3773458186_0.png.png imagette225094991745939703/1745939473_228311_1354336951_c12e19a46705e2cb49e686a358010983_rle_crop_3773452039_0.png.png imagette225094991745939703/1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431074_0.png.png imagette225094991745939703/1745939268_430986_1354334876_73c0fa0e41072823c4cc8f263cd1a8b3_rle_crop_3773431367_0.png.png imagette225094991745939703/1745939233_225467_1354334914_0ecb067129f725115d1c9e091b32b08d_rle_crop_3773431080_0.png.png imagette225094991745939703/1745939383_434221_1354336803_cd25f7661d0f6740275243b68aa13701_rle_crop_3773441038_0.png.png imagette225094991745939703/1745939233_225467_1354334050_2012909e8bb82d1670eb0c76b74c0058_rle_crop_3773431100_0.png.png imagette225094991745939703/1745939501_437502_1354336342_2d18814767524486f6c959ef3a52e2f9_rle_crop_3773442515_0.png.png imagette225094991745939703/1745939652_230271_1354337324_d2a94d9b408da833400f793b4859c608_rle_crop_3773464357_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/b16514ae8795abddc8f6d70a8f66a1a9_38011620.png imagette225094991745939703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22509404 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22509502,22509503,22509504,22509505,22509506,22509507,22509508,22509509,22509510,22509511,22509512,22509513?tags=flou,Carton_brun,Carton_gris,papier,autre_refus,kraft,plastique,mal_croppe,environnement,Teint_Dans_La_Masse,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1354338717] : ('0.06054599884414311',) no score found for photo 1354338717 We are sending mail with results at report@fotonower.com args[1354338710] : ('0.06054599884414311',) no score found for photo 1354338710 We are sending mail with results at report@fotonower.com args[1354338701] : ('0.06054599884414311',) no score found for photo 1354338701 We are sending mail with results at report@fotonower.com args[1354338697] : ('0.06054599884414311',) no score found for photo 1354338697 We are sending mail with results at report@fotonower.com args[1354338688] : ('0.06054599884414311',) no score found for photo 1354338688 We are sending mail with results at report@fotonower.com args[1354338137] : ('0.06054599884414311',) no score found for photo 1354338137 We are sending mail with results at report@fotonower.com args[1354338078] : ('0.06054599884414311',) no score found for photo 1354338078 We are sending mail with results at report@fotonower.com args[1354338016] : ('0.06054599884414311',) no score found for photo 1354338016 We are sending mail with results at report@fotonower.com args[1354337967] : ('0.06054599884414311',) no score found for photo 1354337967 We are sending mail with results at report@fotonower.com args[1354337916] : ('0.06054599884414311',) no score found for photo 1354337916 We are sending mail with results at report@fotonower.com args[1354337420] : ('0.06054599884414311',) no score found for photo 1354337420 We are sending mail with results at report@fotonower.com args[1354337416] : ('0.06054599884414311',) no score found for photo 1354337416 We are sending mail with results at report@fotonower.com args[1354337409] : ('0.06054599884414311',) no score found for photo 1354337409 We are sending mail with results at report@fotonower.com args[1354337401] : ('0.06054599884414311',) no score found for photo 1354337401 We are sending mail with results at report@fotonower.com args[1354337360] : ('0.06054599884414311',) no score found for photo 1354337360 We are sending mail with results at report@fotonower.com args[1354337352] : ('0.06054599884414311',) no score found for photo 1354337352 We are sending mail with results at report@fotonower.com args[1354337328] : ('0.06054599884414311',) no score found for photo 1354337328 We are sending mail with results at report@fotonower.com args[1354337324] : ('0.06054599884414311',) no score found for photo 1354337324 We are sending mail with results at report@fotonower.com args[1354337321] : ('0.06054599884414311',) no score found for photo 1354337321 We are sending mail with results at report@fotonower.com args[1354337315] : ('0.06054599884414311',) no score found for photo 1354337315 We are sending mail with results at report@fotonower.com args[1354337248] : ('0.06054599884414311',) no score found for photo 1354337248 We are sending mail with results at report@fotonower.com args[1354337227] : ('0.06054599884414311',) no score found for photo 1354337227 We are sending mail with results at report@fotonower.com args[1354337222] : ('0.06054599884414311',) no score found for photo 1354337222 We are sending mail with results at report@fotonower.com args[1354337215] : ('0.06054599884414311',) no score found for photo 1354337215 We are sending mail with results at report@fotonower.com refus_total : 0.06054599884414311 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=22509404 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_P22509404_29-04-2025_17_14_59.pdf results_Auto_P22509404_29-04-2025_17_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22509404_29-04-2025_17_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22509404','results_Auto_P22509404_29-04-2025_17_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22509404_29-04-2025_17_14_59.pdf','pdf','','0.39','0.06054599884414311') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22509404]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] map_info['map_portfolio_photo'] : {22509404: [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215, 1354337009, 1354336980, 1354336951, 1354336921, 1354336894, 1354336888, 1354336832, 1354336803, 1354336794, 1354336791, 1354336544, 1354336498, 1354336427, 1354336342, 1354336142, 1354335794, 1354335739, 1354335679, 1354335622, 1354335539, 1354335455, 1354334914, 1354334912, 1354334906, 1354334876, 1354334303, 1354334167, 1354334050, 1354333929, 1354333845, 1354333762, 1354332854, 1354332780, 1354332717, 1354331829, 1354331757, 1354331649, 1354331567, 1354331480, 1354331387, 1354330426, 1354330305]} final : False mtd_id 4302 list_pids : [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] 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, '2769943') ('4302', '22509404', '1354338717', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338710', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338701', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338697', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338688', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338137', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338078', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338016', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337967', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337916', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337420', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337416', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337409', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337401', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337360', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337352', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337328', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337324', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337321', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337315', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337248', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337227', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337222', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337215', None, None, None, None, None, '2769943') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '22509404', '1354338717', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338710', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338701', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338697', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338688', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338137', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338078', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338016', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337967', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337916', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337420', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337416', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337409', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337401', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337360', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337352', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337328', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337324', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337321', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337315', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337248', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337227', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337222', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337215', None, None, None, None, None, '2769943')] time used for this insertion : 0.016003131866455078 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.427170038223267 time spend to save output : 0.016345739364624023 total time spend for step 4 : 6.443515777587891 step5:split_time_score Tue Apr 29 17:15:05 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 : ['22509404'] 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 : [('22509404',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22509404) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1354338697: {'path': 'temp/1745939699_2924580_1354338697_82da65ecf2160aa6814135d495fde7c0.jpg', 'extension': 'jpg'}, 1354338701: {'path': 'temp/1745939699_2924580_1354338701_1440eaa886f98365b300b2db99ce0aaf.jpg', 'extension': 'jpg'}, 1354338710: {'path': 'temp/1745939699_2924580_1354338710_1cc8441934c65e443d1a69dace4f11f6.jpg', 'extension': 'jpg'}, 1354338717: {'path': 'temp/1745939699_2924580_1354338717_6339a53f0b57194c5cf35fa7a0fc9c2b.jpg', 'extension': 'jpg'}, 1354337321: {'path': 'temp/1745939699_2924580_1354337321_5110a01ec1aa58fcdf2b8589d0fc2926.jpg', 'extension': 'jpg'}, 1354337324: {'path': 'temp/1745939699_2924580_1354337324_d2a94d9b408da833400f793b4859c608.jpg', 'extension': 'jpg'}, 1354337328: {'path': 'temp/1745939699_2924580_1354337328_0dc5953ca29f3b3d5b444c47ca2f524c.jpg', 'extension': 'jpg'}, 1354337352: {'path': 'temp/1745939699_2924580_1354337352_fe626ea0a31ba7a96ef8d2a0d6022a62.jpg', 'extension': 'jpg'}, 1354337360: {'path': 'temp/1745939699_2924580_1354337360_d09ec56ecd371af1e12fac2f1cdc7d29.jpg', 'extension': 'jpg'}, 1354337215: {'path': 'temp/1745939699_2924580_1354337215_d379ed9020f1f3b57090be8c7fc74d8f.jpg', 'extension': 'jpg'}, 1354337222: {'path': 'temp/1745939699_2924580_1354337222_bef0269786f91f73f32ce2b61a20ce06.jpg', 'extension': 'jpg'}, 1354337227: {'path': 'temp/1745939699_2924580_1354337227_6078775b36b9d28dfc4effaeaccc8d3e.jpg', 'extension': 'jpg'}, 1354337248: {'path': 'temp/1745939699_2924580_1354337248_351a634e296f579005a3e55782c56317.jpg', 'extension': 'jpg'}, 1354337315: {'path': 'temp/1745939699_2924580_1354337315_4ce09214ea79cea23887a429a5b48248.jpg', 'extension': 'jpg'}, 1354337401: {'path': 'temp/1745939699_2924580_1354337401_cecfac1806c96e0f41fa1f4abfaf4b5a.jpg', 'extension': 'jpg'}, 1354337409: {'path': 'temp/1745939699_2924580_1354337409_9c3ca248eb948766b28a8b66105a863f.jpg', 'extension': 'jpg'}, 1354337416: {'path': 'temp/1745939699_2924580_1354337416_0d9db35d0fa726d06efafc83af4c7942.jpg', 'extension': 'jpg'}, 1354337420: {'path': 'temp/1745939699_2924580_1354337420_08db89c96ebdc441170c81b2bcfa9d94.jpg', 'extension': 'jpg'}, 1354337916: {'path': 'temp/1745939699_2924580_1354337916_a08b4e8bfddbacf8fd2d2dbc4791c565.jpg', 'extension': 'jpg'}, 1354337967: {'path': 'temp/1745939699_2924580_1354337967_142b531d201006430da148dcfd2a10b9.jpg', 'extension': 'jpg'}, 1354338016: {'path': 'temp/1745939699_2924580_1354338016_482f8437bc75f9ed31d6d09ffb6ab26c.jpg', 'extension': 'jpg'}, 1354338078: {'path': 'temp/1745939699_2924580_1354338078_ccba56b11c9484dab071aae0cc711cbc.jpg', 'extension': 'jpg'}, 1354338137: {'path': 'temp/1745939699_2924580_1354338137_b8a74d6c0a49f7515fc14a090dcd1f4b.jpg', 'extension': 'jpg'}, 1354338688: {'path': 'temp/1745939699_2924580_1354338688_10f8e92dacbee498c5538e32a259e35d.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 = 22509404; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_live',)) 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 = 22509404 group by h (('17', 66),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22509404 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 (22509404) 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 (22509404) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 29042025 22509404 Nombre de photos uploadées : 66 / 23040 (0%) 29042025 22509404 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 29042025 22509404 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1354330426, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/1e99c1d7b374ef0a496bc26052c39acb.jpg', 'username': None, 'uploaded_at': 1745938867, 'text': 'image_29042025_17_00_13_10205.jpg'}, {'photo_id': 1354330305, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/acefd3bd396ec70b4b53280b766beff9.jpg', 'username': None, 'uploaded_at': 1745938867, 'text': 'image_29042025_17_00_44_10135.jpg'}, {'photo_id': 1354331829, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/c2ee8ab14b4783981cb83c60958d9a1b.jpg', 'username': None, 'uploaded_at': 1745938927, 'text': 'image_29042025_17_00_54_10134.jpg'}, {'photo_id': 1354331757, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/29/7c4a866d24e65ac7a8d389f666414f90.jpg', 'username': None, 'uploaded_at': 1745938927, 'text': 'image_29042025_17_01_04_010153m0.jpg 1e-05 for time 1, id_amount 2 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 6.9141387939453125e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029897689819335938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22509404, '2025-04-29' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1752875,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02367424964904785 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= 1752875 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22477311, 'dashboard_result_id': 10147687, '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_P22477311_29-04-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477347, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22477922, 'dashboard_result_id': 10147688, '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_P22477922_29-04-2025_00_32_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477934, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22478782, 'dashboard_result_id': 10147689, '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_P22478782_29-04-2025_00_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22478831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22478832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22478833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22478834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22478835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22478836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22478837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22478838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22478839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22478840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22478841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22478842, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22479325, 'dashboard_result_id': 10147690, '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_P22479325_29-04-2025_01_04_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22479338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22479339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22479340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22479341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22479342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22479343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22479344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22479345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22479346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22479347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22479348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22479349, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22480120, 'dashboard_result_id': 10147691, '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_P22480120_29-04-2025_01_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22480121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22480122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22480123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22480124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22480125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22480126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22480127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22480128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22480129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22480130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22480131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22480132, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22480527, 'dashboard_result_id': 10147692, '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_P22480527_29-04-2025_02_06_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22480528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22480529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22480530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22480531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22480532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22480533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22480534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22480535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22480536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22480537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22480538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22480539, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22481033, 'dashboard_result_id': 10147693, '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_P22481033_29-04-2025_02_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22481072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22481073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22481074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22481075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22481076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22481078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22481079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22481080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22481081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22481082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22481083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22481084, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22481383, 'dashboard_result_id': 10147694, '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_P22481383_29-04-2025_02_50_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22481384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22481385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22481386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22481387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22481388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22481389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22481390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22481391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22481392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22481393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22481394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22481395, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22482050, 'dashboard_result_id': 10147695, '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_P22482050_29-04-2025_03_05_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482062, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22482526, 'dashboard_result_id': 10147696, '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_P22482526_29-04-2025_03_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482575, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22482869, 'dashboard_result_id': 10147697, '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_P22482869_29-04-2025_03_36_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482881, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22483157, 'dashboard_result_id': 10147698, '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_P22483157_29-04-2025_03_55_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22483168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22483169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22483170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22483171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22483172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22483173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22483174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22483175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22483176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22483177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22483178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22483179, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22483567, 'dashboard_result_id': 10147699, '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_P22483567_29-04-2025_04_11_54.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22483594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22483595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22483596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22483597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22483598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22483599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22483600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22483601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22483602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22483603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22483604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22483605, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22484300, 'dashboard_result_id': 10147700, '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_P22484300_29-04-2025_12_54_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22484328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484339, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22484838, 'dashboard_result_id': 10147701, '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_P22484838_29-04-2025_05_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22484873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484874, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22484935, 'dashboard_result_id': 10147702, '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_P22484935_29-04-2025_06_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22484936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484947, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22485327, 'dashboard_result_id': 10147703, '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_P22485327_29-04-2025_06_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22485328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22485329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22485330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22485331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22485332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22485333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22485334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22485335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22485336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22485337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22485338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22485339, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22485609, 'dashboard_result_id': 10147704, '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_P22485609_29-04-2025_06_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22485610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22485611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22485612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22485613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22485614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22485615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22485616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22485617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22485618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22485619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22485620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22485621, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22486100, 'dashboard_result_id': 10147705, '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_P22486100_29-04-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22486101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22486102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22486103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22486104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22486105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22486106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22486107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22486108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22486109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22486110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22486111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22486112, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22486753, 'dashboard_result_id': 10147706, '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_P22486753_29-04-2025_07_21_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22486759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22486760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22486761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22486762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22486763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22486764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22486765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22486766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22486767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22486768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22486769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22486770, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22487482, 'dashboard_result_id': 10147707, '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_P22487482_29-04-2025_07_37_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22487499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22487500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22487502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22487503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22487504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22487505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22487506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22487507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22487508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22487509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22487510, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22488782, 'dashboard_result_id': 10147708, '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_P22488782_29-04-2025_08_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22488818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22488819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22488820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22488821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22488822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22488823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22488824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22488825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22488826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22488827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22488828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22488829, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22489211, 'dashboard_result_id': 10147709, '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_P22489211_29-04-2025_09_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22489219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22489220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22489221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22489222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22489223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22489224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22489225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22489226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22489227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22489228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22489229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22489230, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22491637, 'dashboard_result_id': 10147710, '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_P22491637_29-04-2025_09_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22491655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22491656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22491657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22491658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22491659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22491660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22491661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22491662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22491663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22491664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22491665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22491666, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22492266, 'dashboard_result_id': 10147711, '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_P22492266_29-04-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22492309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22492310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22492311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22492312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22492313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22492314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22492315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22492316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22492317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22492318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22492319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22492320, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22493217, 'dashboard_result_id': 10147712, '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_P22493217_29-04-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22493222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22493223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22493224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22493225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22493226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22493227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22493228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22493229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22493230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22493231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22493232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22493233, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22493912, 'dashboard_result_id': 10147713, '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_P22493912_29-04-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22493937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22493938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22493939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22493940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22493941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22493942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22493943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22493944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22493945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22493946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22493947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22493948, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22494596, 'dashboard_result_id': 10147714, '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_P22494596_29-04-2025_14_16_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22494625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22494626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22494627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22494628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22494629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22494630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22494631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22494632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22494633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22494634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22494635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22494636, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22499161, 'dashboard_result_id': 10147715, '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_P22499161_29-04-2025_14_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22499162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22499163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22499164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22499165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22499166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22499167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22499168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22499169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22499170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22499171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22499172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22499173, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22499747, 'dashboard_result_id': 10147716, '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_P22499747_29-04-2025_14_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22499901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22499902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22499903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22499904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22499905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22499906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22499907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22499908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22499909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22499910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22499911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22499912, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22500679, 'dashboard_result_id': 10147717, '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_P22500679_29-04-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22500769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22500770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22500771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22500772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22500773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22500774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22500775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22500776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22500777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22500778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22500779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22500780, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22501536, 'dashboard_result_id': 10147718, '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_P22501536_29-04-2025_15_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22501541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22501542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22501543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22501544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22501545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22501546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22501547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22501548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22501549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22501550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22501551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22501552, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22502359, 'dashboard_result_id': 10147719, '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_P22502359_29-04-2025_15_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22502417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22502418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22502419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22502420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22502421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22502422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22502423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22502424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22502425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22502426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22502427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22502428, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22503387, 'dashboard_result_id': 10147720, '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_P22503387_29-04-2025_15_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22503392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22503393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22503394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22503395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22503396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22503397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22503398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22503399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22503400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22503401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22503402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22503403, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22503951, 'dashboard_result_id': 10147721, '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_P22503951_29-04-2025_15_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22504016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22504017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22504018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22504019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22504020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22504021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22504022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22504023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22504024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22504025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22504026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22504027, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22506728, 'dashboard_result_id': 10147722, '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_P22506728_29-04-2025_16_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22506792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22506793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22506794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22506795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22506796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22506797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22506798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22506799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22506800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22506801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22506802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22506803, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22507674, 'dashboard_result_id': 10147723, '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_P22507674_29-04-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22507686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22507687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22507688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22507689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22507690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22507691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22507692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22507693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22507694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22507695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22507696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22507697, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22508742, 'dashboard_result_id': 10147724, '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_P22508742_29-04-2025_17_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22508784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22508785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22508786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22508787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22508788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22508789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22508790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22508791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22508792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22508793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22508794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22508795, 'pht': 3726}}"}, {'dashboat_entry_day': 1752875, 'dashboard_run_id': 1763138, 'mtr_portfolio_id': 22509404, 'dashboard_result_id': 10147725, '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_P22509404_29-04-2025_17_08_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22509490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22509491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22509492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22509493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22509494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22509495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22509496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22509497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22509498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22509499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22509500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22509501, '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 = 22477311 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': 2766671, 'mtr_portfolio_id': 22477311, 'created_at': datetime.datetime(2025, 4, 29, 0, 16, 58), 'result': '0.052604718419472826', 'result_long': None, 'result_double': None}] Qualite : 0.052604718419472826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22477311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477311_29-04-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22477311 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_P22477311_29-04-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477347, 'pht': 3726}}" where mtr_portfolio_id = 22477311 and dashboard_run_id = 1763138 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`=22477311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147687, 0.052604718419472826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477311_29-04-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477347, '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 = 22477922 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': 2766731, 'mtr_portfolio_id': 22477922, 'created_at': datetime.datetime(2025, 4, 29, 0, 32, 28), 'result': '0.05282815414505502', 'result_long': None, 'result_double': None}] Qualite : 0.05282815414505502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22477922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477922_29-04-2025_00_32_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22477922 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_P22477922_29-04-2025_00_32_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477934, 'pht': 3726}}" where mtr_portfolio_id = 22477922 and dashboard_run_id = 1763138 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`=22477922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147688, 0.05282815414505502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22477922_29-04-2025_00_32_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477934, '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 = 22478782 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': 2766778, 'mtr_portfolio_id': 22478782, 'created_at': datetime.datetime(2025, 4, 29, 0, 46, 30), 'result': '0.05947686764982132', 'result_long': None, 'result_double': None}] Qualite : 0.05947686764982132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22478782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22478782_29-04-2025_00_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22478782 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_P22478782_29-04-2025_00_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22478831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22478832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22478833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22478834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22478835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22478836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22478837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22478838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22478839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22478840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22478841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22478842, 'pht': 3726}}" where mtr_portfolio_id = 22478782 and dashboard_run_id = 1763138 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`=22478782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147689, 0.05947686764982132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22478782_29-04-2025_00_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22478831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22478832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22478833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22478834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22478835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22478836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22478837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22478838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22478839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22478840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22478841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22478842, '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 = 22479325 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': 2766801, 'mtr_portfolio_id': 22479325, 'created_at': datetime.datetime(2025, 4, 29, 1, 4, 30), 'result': '0.046599245291470505', 'result_long': None, 'result_double': None}] Qualite : 0.046599245291470505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22479325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22479325_29-04-2025_01_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22479325 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_P22479325_29-04-2025_01_04_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22479338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22479339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22479340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22479341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22479342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22479343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22479344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22479345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22479346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22479347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22479348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22479349, 'pht': 3726}}" where mtr_portfolio_id = 22479325 and dashboard_run_id = 1763138 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`=22479325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147690, 0.046599245291470505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22479325_29-04-2025_01_04_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22479338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22479339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22479340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22479341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22479342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22479343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22479344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22479345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22479346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22479347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22479348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22479349, '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 = 22480120 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': 2766891, 'mtr_portfolio_id': 22480120, 'created_at': datetime.datetime(2025, 4, 29, 1, 51), 'result': '0.08933709995182879', 'result_long': None, 'result_double': None}] Qualite : 0.08933709995182879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22480120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22480120_29-04-2025_01_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22480120 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_P22480120_29-04-2025_01_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22480121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22480122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22480123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22480124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22480125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22480126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22480127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22480128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22480129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22480130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22480131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22480132, 'pht': 3726}}" where mtr_portfolio_id = 22480120 and dashboard_run_id = 1763138 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`=22480120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147691, 0.08933709995182879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22480120_29-04-2025_01_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22480121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22480122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22480123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22480124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22480125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22480126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22480127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22480128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22480129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22480130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22480131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22480132, '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 = 22480527 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': 2766923, 'mtr_portfolio_id': 22480527, 'created_at': datetime.datetime(2025, 4, 29, 2, 6, 58), 'result': '0.06127366426777154', 'result_long': None, 'result_double': None}] Qualite : 0.06127366426777154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22480527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22480527_29-04-2025_02_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22480527 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_P22480527_29-04-2025_02_06_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22480528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22480529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22480530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22480531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22480532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22480533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22480534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22480535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22480536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22480537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22480538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22480539, 'pht': 3726}}" where mtr_portfolio_id = 22480527 and dashboard_run_id = 1763138 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`=22480527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147692, 0.06127366426777154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22480527_29-04-2025_02_06_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22480528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22480529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22480530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22480531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22480532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22480533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22480534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22480535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22480536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22480537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22480538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22480539, '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 = 22481033 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': 2766970, 'mtr_portfolio_id': 22481033, 'created_at': datetime.datetime(2025, 4, 29, 2, 16, 59), 'result': '0.09461476065377317', 'result_long': None, 'result_double': None}] Qualite : 0.09461476065377317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22481033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22481033_29-04-2025_02_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22481033 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_P22481033_29-04-2025_02_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22481072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22481073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22481074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22481075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22481076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22481078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22481079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22481080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22481081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22481082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22481083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22481084, 'pht': 3726}}" where mtr_portfolio_id = 22481033 and dashboard_run_id = 1763138 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`=22481033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147693, 0.09461476065377317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22481033_29-04-2025_02_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22481072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22481073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22481074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22481075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22481076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22481078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22481079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22481080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22481081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22481082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22481083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22481084, '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 = 22481383 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': 2766999, 'mtr_portfolio_id': 22481383, 'created_at': datetime.datetime(2025, 4, 29, 2, 50, 30), 'result': '0.05392417604796296', 'result_long': None, 'result_double': None}] Qualite : 0.05392417604796296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22481383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22481383_29-04-2025_02_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22481383 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_P22481383_29-04-2025_02_50_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22481384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22481385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22481386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22481387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22481388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22481389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22481390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22481391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22481392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22481393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22481394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22481395, 'pht': 3726}}" where mtr_portfolio_id = 22481383 and dashboard_run_id = 1763138 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`=22481383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147694, 0.05392417604796296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22481383_29-04-2025_02_50_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22481384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22481385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22481386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22481387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22481388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22481389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22481390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22481391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22481392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22481393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22481394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22481395, '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 = 22482050 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': 2767064, 'mtr_portfolio_id': 22482050, 'created_at': datetime.datetime(2025, 4, 29, 3, 5, 1), 'result': '0.04603646402469932', 'result_long': None, 'result_double': None}] Qualite : 0.04603646402469932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22482050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22482050_29-04-2025_03_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22482050 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_P22482050_29-04-2025_03_05_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482062, 'pht': 3726}}" where mtr_portfolio_id = 22482050 and dashboard_run_id = 1763138 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`=22482050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147695, 0.04603646402469932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22482050_29-04-2025_03_05_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482062, '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 = 22482526 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': 2767116, 'mtr_portfolio_id': 22482526, 'created_at': datetime.datetime(2025, 4, 29, 3, 16, 58), 'result': '0.06057471469894569', 'result_long': None, 'result_double': None}] Qualite : 0.06057471469894569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22482526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22482526_29-04-2025_03_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22482526 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_P22482526_29-04-2025_03_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482575, 'pht': 3726}}" where mtr_portfolio_id = 22482526 and dashboard_run_id = 1763138 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`=22482526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147696, 0.06057471469894569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22482526_29-04-2025_03_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482575, '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 = 22482869 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': 2767137, 'mtr_portfolio_id': 22482869, 'created_at': datetime.datetime(2025, 4, 29, 3, 36, 59), 'result': '0.04293458247513326', 'result_long': None, 'result_double': None}] Qualite : 0.04293458247513326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22482869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22482869_29-04-2025_03_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22482869 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_P22482869_29-04-2025_03_36_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482881, 'pht': 3726}}" where mtr_portfolio_id = 22482869 and dashboard_run_id = 1763138 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`=22482869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147697, 0.04293458247513326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22482869_29-04-2025_03_36_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22482870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22482871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22482872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22482873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22482874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22482875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22482876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22482877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22482878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22482879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22482880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22482881, '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 = 22483157 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': 2767167, 'mtr_portfolio_id': 22483157, 'created_at': datetime.datetime(2025, 4, 29, 3, 54, 59), 'result': '0.06093204768142495', 'result_long': None, 'result_double': None}] Qualite : 0.06093204768142495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22483157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22483157_29-04-2025_03_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22483157 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_P22483157_29-04-2025_03_55_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22483168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22483169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22483170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22483171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22483172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22483173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22483174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22483175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22483176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22483177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22483178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22483179, 'pht': 3726}}" where mtr_portfolio_id = 22483157 and dashboard_run_id = 1763138 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`=22483157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147698, 0.06093204768142495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22483157_29-04-2025_03_55_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22483168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22483169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22483170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22483171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22483172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22483173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22483174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22483175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22483176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22483177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22483178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22483179, '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 = 22483567 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': 2767221, 'mtr_portfolio_id': 22483567, 'created_at': datetime.datetime(2025, 4, 29, 4, 11, 53), 'result': '0.06317662065615376', 'result_long': None, 'result_double': None}] Qualite : 0.06317662065615376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22483567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22483567_29-04-2025_04_11_54.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22483567 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_P22483567_29-04-2025_04_11_54.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22483594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22483595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22483596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22483597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22483598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22483599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22483600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22483601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22483602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22483603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22483604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22483605, 'pht': 3726}}" where mtr_portfolio_id = 22483567 and dashboard_run_id = 1763138 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`=22483567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147699, 0.06317662065615376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22483567_29-04-2025_04_11_54.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22483594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22483595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22483596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22483597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22483598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22483599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22483600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22483601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22483602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22483603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22483604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22483605, '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 = 22484300 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': 2767273, 'mtr_portfolio_id': 22484300, 'created_at': datetime.datetime(2025, 4, 29, 12, 54, 57), 'result': '0.05187296854369373', 'result_long': None, 'result_double': None}] Qualite : 0.05187296854369373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22484300 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22484300_29-04-2025_12_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22484300 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_P22484300_29-04-2025_12_54_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22484328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484339, 'pht': 3726}}" where mtr_portfolio_id = 22484300 and dashboard_run_id = 1763138 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`=22484300 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147700, 0.05187296854369373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22484300_29-04-2025_12_54_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22484328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484339, '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 = 22484838 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': 2767463, 'mtr_portfolio_id': 22484838, 'created_at': datetime.datetime(2025, 4, 29, 5, 49, 2), 'result': '0.04165336741271492', 'result_long': None, 'result_double': None}] Qualite : 0.04165336741271492 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22484838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22484838_29-04-2025_05_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22484838 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_P22484838_29-04-2025_05_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22484873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484874, 'pht': 3726}}" where mtr_portfolio_id = 22484838 and dashboard_run_id = 1763138 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`=22484838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147701, 0.04165336741271492, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22484838_29-04-2025_05_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22484873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484874, '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 = 22484935 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': 2767466, 'mtr_portfolio_id': 22484935, 'created_at': datetime.datetime(2025, 4, 29, 6, 16, 59), 'result': '0.05795232689670395', 'result_long': None, 'result_double': None}] Qualite : 0.05795232689670395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22484935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22484935_29-04-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22484935 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_P22484935_29-04-2025_06_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22484936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484947, 'pht': 3726}}" where mtr_portfolio_id = 22484935 and dashboard_run_id = 1763138 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`=22484935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147702, 0.05795232689670395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22484935_29-04-2025_06_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22484936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22484937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22484938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22484939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22484940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22484941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22484942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22484943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22484944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22484945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22484946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22484947, '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 = 22485327 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': 2767518, 'mtr_portfolio_id': 22485327, 'created_at': datetime.datetime(2025, 4, 29, 6, 32, 30), 'result': '0.07801759547991181', 'result_long': None, 'result_double': None}] Qualite : 0.07801759547991181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22485327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22485327_29-04-2025_06_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22485327 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_P22485327_29-04-2025_06_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22485328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22485329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22485330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22485331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22485332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22485333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22485334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22485335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22485336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22485337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22485338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22485339, 'pht': 3726}}" where mtr_portfolio_id = 22485327 and dashboard_run_id = 1763138 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`=22485327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147703, 0.07801759547991181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22485327_29-04-2025_06_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22485328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22485329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22485330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22485331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22485332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22485333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22485334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22485335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22485336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22485337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22485338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22485339, '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 = 22485609 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': 2767545, 'mtr_portfolio_id': 22485609, 'created_at': datetime.datetime(2025, 4, 29, 6, 46, 59), 'result': '0.0572670350235328', 'result_long': None, 'result_double': None}] Qualite : 0.0572670350235328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22485609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22485609_29-04-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22485609 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_P22485609_29-04-2025_06_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22485610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22485611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22485612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22485613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22485614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22485615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22485616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22485617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22485618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22485619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22485620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22485621, 'pht': 3726}}" where mtr_portfolio_id = 22485609 and dashboard_run_id = 1763138 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`=22485609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147704, 0.0572670350235328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22485609_29-04-2025_06_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22485610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22485611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22485612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22485613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22485614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22485615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22485616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22485617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22485618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22485619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22485620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22485621, '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 = 22486100 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': 2767610, 'mtr_portfolio_id': 22486100, 'created_at': datetime.datetime(2025, 4, 29, 7, 2, 59), 'result': '0.0441726995099537', 'result_long': None, 'result_double': None}] Qualite : 0.0441726995099537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22486100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22486100_29-04-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22486100 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_P22486100_29-04-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22486101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22486102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22486103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22486104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22486105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22486106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22486107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22486108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22486109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22486110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22486111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22486112, 'pht': 3726}}" where mtr_portfolio_id = 22486100 and dashboard_run_id = 1763138 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`=22486100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147705, 0.0441726995099537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22486100_29-04-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22486101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22486102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22486103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22486104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22486105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22486106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22486107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22486108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22486109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22486110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22486111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22486112, '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 = 22486753 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': 2767695, 'mtr_portfolio_id': 22486753, 'created_at': datetime.datetime(2025, 4, 29, 7, 20, 59), 'result': '0.059882170306725505', 'result_long': None, 'result_double': None}] Qualite : 0.059882170306725505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22486753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22486753_29-04-2025_07_21_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22486753 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_P22486753_29-04-2025_07_21_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22486759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22486760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22486761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22486762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22486763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22486764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22486765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22486766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22486767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22486768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22486769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22486770, 'pht': 3726}}" where mtr_portfolio_id = 22486753 and dashboard_run_id = 1763138 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`=22486753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147706, 0.059882170306725505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22486753_29-04-2025_07_21_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22486759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22486760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22486761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22486762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22486763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22486764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22486765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22486766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22486767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22486768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22486769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22486770, '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 = 22487482 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': 2767747, 'mtr_portfolio_id': 22487482, 'created_at': datetime.datetime(2025, 4, 29, 7, 37, 1), 'result': '0.05208906045804591', 'result_long': None, 'result_double': None}] Qualite : 0.05208906045804591 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22487482 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22487482_29-04-2025_07_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22487482 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_P22487482_29-04-2025_07_37_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22487499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22487500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22487502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22487503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22487504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22487505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22487506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22487507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22487508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22487509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22487510, 'pht': 3726}}" where mtr_portfolio_id = 22487482 and dashboard_run_id = 1763138 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`=22487482 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147707, 0.05208906045804591, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22487482_29-04-2025_07_37_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22487499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22487500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22487502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22487503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22487504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22487505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22487506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22487507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22487508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22487509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22487510, '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 = 22488782 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': 2768037, 'mtr_portfolio_id': 22488782, 'created_at': datetime.datetime(2025, 4, 29, 8, 47, 1), 'result': '0.36499858902991966', 'result_long': None, 'result_double': None}] Qualite : 0.36499858902991966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22488782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22488782_29-04-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22488782 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_P22488782_29-04-2025_08_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22488818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22488819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22488820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22488821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22488822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22488823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22488824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22488825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22488826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22488827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22488828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22488829, 'pht': 3726}}" where mtr_portfolio_id = 22488782 and dashboard_run_id = 1763138 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`=22488782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147708, 0.36499858902991966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22488782_29-04-2025_08_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22488818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22488819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22488820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22488821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22488822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22488823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22488824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22488825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22488826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22488827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22488828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22488829, '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 = 22489211 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': 2768073, 'mtr_portfolio_id': 22489211, 'created_at': datetime.datetime(2025, 4, 29, 9, 2, 57), 'result': '0.05158208756861452', 'result_long': None, 'result_double': None}] Qualite : 0.05158208756861452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22489211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22489211_29-04-2025_09_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22489211 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_P22489211_29-04-2025_09_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22489219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22489220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22489221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22489222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22489223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22489224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22489225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22489226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22489227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22489228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22489229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22489230, 'pht': 3726}}" where mtr_portfolio_id = 22489211 and dashboard_run_id = 1763138 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`=22489211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147709, 0.05158208756861452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22489211_29-04-2025_09_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22489219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22489220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22489221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22489222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22489223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22489224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22489225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22489226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22489227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22489228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22489229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22489230, '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 = 22491637 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': 2768252, 'mtr_portfolio_id': 22491637, 'created_at': datetime.datetime(2025, 4, 29, 9, 48, 59), 'result': '0.03132452891766387', 'result_long': None, 'result_double': None}] Qualite : 0.03132452891766387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22491637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22491637_29-04-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22491637 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_P22491637_29-04-2025_09_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22491655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22491656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22491657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22491658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22491659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22491660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22491661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22491662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22491663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22491664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22491665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22491666, 'pht': 3726}}" where mtr_portfolio_id = 22491637 and dashboard_run_id = 1763138 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`=22491637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147710, 0.03132452891766387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22491637_29-04-2025_09_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22491655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22491656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22491657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22491658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22491659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22491660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22491661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22491662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22491663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22491664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22491665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22491666, '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 = 22492266 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': 2768299, 'mtr_portfolio_id': 22492266, 'created_at': datetime.datetime(2025, 4, 29, 10, 3), 'result': '0.03842426094241934', 'result_long': None, 'result_double': None}] Qualite : 0.03842426094241934 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22492266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22492266_29-04-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22492266 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_P22492266_29-04-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22492309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22492310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22492311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22492312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22492313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22492314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22492315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22492316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22492317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22492318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22492319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22492320, 'pht': 3726}}" where mtr_portfolio_id = 22492266 and dashboard_run_id = 1763138 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`=22492266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147711, 0.03842426094241934, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22492266_29-04-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22492309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22492310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22492311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22492312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22492313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22492314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22492315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22492316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22492317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22492318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22492319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22492320, '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 = 22493217 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': 2768369, 'mtr_portfolio_id': 22493217, 'created_at': datetime.datetime(2025, 4, 29, 10, 16, 29), 'result': '0.056608444292085495', 'result_long': None, 'result_double': None}] Qualite : 0.056608444292085495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22493217 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22493217_29-04-2025_10_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22493217 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_P22493217_29-04-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22493222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22493223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22493224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22493225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22493226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22493227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22493228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22493229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22493230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22493231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22493232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22493233, 'pht': 3726}}" where mtr_portfolio_id = 22493217 and dashboard_run_id = 1763138 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`=22493217 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147712, 0.056608444292085495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22493217_29-04-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22493222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22493223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22493224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22493225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22493226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22493227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22493228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22493229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22493230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22493231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22493232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22493233, '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 = 22493912 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': 2768434, 'mtr_portfolio_id': 22493912, 'created_at': datetime.datetime(2025, 4, 29, 10, 32, 59), 'result': '0.05718147531682742', 'result_long': None, 'result_double': None}] Qualite : 0.05718147531682742 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22493912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22493912_29-04-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22493912 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_P22493912_29-04-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22493937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22493938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22493939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22493940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22493941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22493942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22493943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22493944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22493945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22493946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22493947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22493948, 'pht': 3726}}" where mtr_portfolio_id = 22493912 and dashboard_run_id = 1763138 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`=22493912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147713, 0.05718147531682742, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22493912_29-04-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22493937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22493938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22493939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22493940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22493941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22493942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22493943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22493944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22493945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22493946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22493947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22493948, '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 = 22494596 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': 2768498, 'mtr_portfolio_id': 22494596, 'created_at': datetime.datetime(2025, 4, 29, 14, 15, 59), 'result': '0.06913475188513647', 'result_long': None, 'result_double': None}] Qualite : 0.06913475188513647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22494596 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22494596_29-04-2025_14_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22494596 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_P22494596_29-04-2025_14_16_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22494625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22494626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22494627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22494628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22494629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22494630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22494631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22494632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22494633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22494634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22494635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22494636, 'pht': 3726}}" where mtr_portfolio_id = 22494596 and dashboard_run_id = 1763138 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`=22494596 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147714, 0.06913475188513647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22494596_29-04-2025_14_16_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22494625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22494626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22494627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22494628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22494629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22494630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22494631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22494632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22494633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22494634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22494635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22494636, '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 = 22499161 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': 2769130, 'mtr_portfolio_id': 22499161, 'created_at': datetime.datetime(2025, 4, 29, 14, 18, 59), 'result': '0.03852354905584897', 'result_long': None, 'result_double': None}] Qualite : 0.03852354905584897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22499161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22499161_29-04-2025_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22499161 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_P22499161_29-04-2025_14_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22499162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22499163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22499164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22499165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22499166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22499167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22499168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22499169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22499170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22499171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22499172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22499173, 'pht': 3726}}" where mtr_portfolio_id = 22499161 and dashboard_run_id = 1763138 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`=22499161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147715, 0.03852354905584897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22499161_29-04-2025_14_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22499162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22499163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22499164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22499165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22499166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22499167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22499168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22499169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22499170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22499171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22499172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22499173, '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 = 22499747 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': 2769170, 'mtr_portfolio_id': 22499747, 'created_at': datetime.datetime(2025, 4, 29, 14, 33), 'result': '0.04143850055844066', 'result_long': None, 'result_double': None}] Qualite : 0.04143850055844066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22499747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22499747_29-04-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22499747 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_P22499747_29-04-2025_14_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22499901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22499902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22499903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22499904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22499905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22499906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22499907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22499908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22499909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22499910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22499911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22499912, 'pht': 3726}}" where mtr_portfolio_id = 22499747 and dashboard_run_id = 1763138 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`=22499747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147716, 0.04143850055844066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22499747_29-04-2025_14_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22499901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22499902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22499903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22499904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22499905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22499906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22499907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22499908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22499909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22499910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22499911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22499912, '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 = 22500679 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': 2769237, 'mtr_portfolio_id': 22500679, 'created_at': datetime.datetime(2025, 4, 29, 14, 46, 58), 'result': '0.027997844314030504', 'result_long': None, 'result_double': None}] Qualite : 0.027997844314030504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22500679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22500679_29-04-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22500679 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_P22500679_29-04-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22500769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22500770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22500771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22500772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22500773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22500774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22500775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22500776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22500777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22500778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22500779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22500780, 'pht': 3726}}" where mtr_portfolio_id = 22500679 and dashboard_run_id = 1763138 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`=22500679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147717, 0.027997844314030504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22500679_29-04-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22500769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22500770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22500771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22500772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22500773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22500774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22500775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22500776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22500777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22500778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22500779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22500780, '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 = 22501536 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': 2769301, 'mtr_portfolio_id': 22501536, 'created_at': datetime.datetime(2025, 4, 29, 15, 2, 59), 'result': '0.0475483350231047', 'result_long': None, 'result_double': None}] Qualite : 0.0475483350231047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22501536 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22501536_29-04-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22501536 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_P22501536_29-04-2025_15_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22501541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22501542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22501543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22501544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22501545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22501546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22501547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22501548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22501549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22501550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22501551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22501552, 'pht': 3726}}" where mtr_portfolio_id = 22501536 and dashboard_run_id = 1763138 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`=22501536 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147718, 0.0475483350231047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22501536_29-04-2025_15_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22501541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22501542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22501543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22501544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22501545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22501546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22501547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22501548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22501549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22501550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22501551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22501552, '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 = 22502359 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': 2769361, 'mtr_portfolio_id': 22502359, 'created_at': datetime.datetime(2025, 4, 29, 15, 19), 'result': '0.04071772312185362', 'result_long': None, 'result_double': None}] Qualite : 0.04071772312185362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22502359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22502359_29-04-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22502359 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_P22502359_29-04-2025_15_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22502417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22502418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22502419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22502420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22502421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22502422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22502423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22502424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22502425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22502426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22502427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22502428, 'pht': 3726}}" where mtr_portfolio_id = 22502359 and dashboard_run_id = 1763138 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`=22502359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147719, 0.04071772312185362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22502359_29-04-2025_15_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22502417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22502418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22502419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22502420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22502421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22502422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22502423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22502424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22502425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22502426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22502427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22502428, '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 = 22503387 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': 2769432, 'mtr_portfolio_id': 22503387, 'created_at': datetime.datetime(2025, 4, 29, 15, 33, 1), 'result': '0.05012430156165207', 'result_long': None, 'result_double': None}] Qualite : 0.05012430156165207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22503387 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22503387_29-04-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22503387 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_P22503387_29-04-2025_15_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22503392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22503393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22503394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22503395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22503396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22503397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22503398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22503399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22503400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22503401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22503402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22503403, 'pht': 3726}}" where mtr_portfolio_id = 22503387 and dashboard_run_id = 1763138 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`=22503387 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147720, 0.05012430156165207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22503387_29-04-2025_15_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22503392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22503393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22503394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22503395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22503396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22503397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22503398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22503399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22503400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22503401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22503402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22503403, '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 = 22503951 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': 2769508, 'mtr_portfolio_id': 22503951, 'created_at': datetime.datetime(2025, 4, 29, 15, 46, 58), 'result': '0.038762736069738596', 'result_long': None, 'result_double': None}] Qualite : 0.038762736069738596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22503951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22503951_29-04-2025_15_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22503951 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_P22503951_29-04-2025_15_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22504016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22504017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22504018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22504019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22504020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22504021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22504022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22504023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22504024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22504025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22504026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22504027, 'pht': 3726}}" where mtr_portfolio_id = 22503951 and dashboard_run_id = 1763138 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`=22503951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147721, 0.038762736069738596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22503951_29-04-2025_15_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22504016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22504017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22504018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22504019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22504020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22504021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22504022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22504023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22504024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22504025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22504026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22504027, '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 = 22506728 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': 2769729, 'mtr_portfolio_id': 22506728, 'created_at': datetime.datetime(2025, 4, 29, 16, 33, 28), 'result': '0.0397274405537596', 'result_long': None, 'result_double': None}] Qualite : 0.0397274405537596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22506728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22506728_29-04-2025_16_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22506728 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_P22506728_29-04-2025_16_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22506792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22506793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22506794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22506795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22506796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22506797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22506798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22506799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22506800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22506801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22506802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22506803, 'pht': 3726}}" where mtr_portfolio_id = 22506728 and dashboard_run_id = 1763139 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`=22506728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147722, 0.0397274405537596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22506728_29-04-2025_16_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22506792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22506793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22506794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22506795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22506796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22506797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22506798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22506799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22506800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22506801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22506802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22506803, '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 = 22507674 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': 2769809, 'mtr_portfolio_id': 22507674, 'created_at': datetime.datetime(2025, 4, 29, 16, 48, 59), 'result': '0.05239676672537465', 'result_long': None, 'result_double': None}] Qualite : 0.05239676672537465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22507674 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22507674_29-04-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22507674 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_P22507674_29-04-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22507686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22507687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22507688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22507689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22507690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22507691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22507692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22507693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22507694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22507695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22507696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22507697, 'pht': 3726}}" where mtr_portfolio_id = 22507674 and dashboard_run_id = 1763139 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`=22507674 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147723, 0.05239676672537465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22507674_29-04-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22507686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22507687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22507688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22507689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22507690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22507691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22507692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22507693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22507694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22507695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22507696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22507697, '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 = 22508742 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': 2769872, 'mtr_portfolio_id': 22508742, 'created_at': datetime.datetime(2025, 4, 29, 17, 2, 58), 'result': '0.044464381210163106', 'result_long': None, 'result_double': None}] Qualite : 0.044464381210163106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22508742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22508742_29-04-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22508742 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_P22508742_29-04-2025_17_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22508784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22508785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22508786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22508787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22508788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22508789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22508790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22508791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22508792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22508793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22508794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22508795, 'pht': 3726}}" where mtr_portfolio_id = 22508742 and dashboard_run_id = 1763139 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`=22508742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147724, 0.044464381210163106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22508742_29-04-2025_17_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22508784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22508785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22508786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22508787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22508788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22508789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22508790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22508791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22508792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22508793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22508794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22508795, '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 = 22509404 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': 2769943, 'mtr_portfolio_id': 22509404, 'created_at': datetime.datetime(2025, 4, 29, 17, 14, 58), 'result': '0.06054599884414311', 'result_long': None, 'result_double': None}] Qualite : 0.06054599884414311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22509404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22509404_29-04-2025_17_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22509404 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_P22509404_29-04-2025_17_14_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22509490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22509491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22509492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22509493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22509494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22509495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22509496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22509497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22509498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22509499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22509500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22509501, 'pht': 3726}}" where mtr_portfolio_id = 22509404 and dashboard_run_id = 1763139 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`=22509404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10147725, 0.06054599884414311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22509404_29-04-2025_17_14_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22509490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22509491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22509492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22509493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22509494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22509495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22509496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22509497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22509498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22509499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22509500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22509501, '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 (22477311,22477922,22478782,22479325,22480120,22480527,22481033,22481383,22482050,22482526,22482869,22483157,22483567,22484300,22484838,22484935,22485327,22485609,22486100,22486753,22487482,22488782,22489211,22491637,22492266,22493217,22493912,22494596,22499161,22499747,22500679,22501536,22502359,22503387,22503951,22506728,22507674,22508742,22509404) result : ((1354065999,), (1354066049,), (1354066055,), (1354066060,), (1354066067,), (1354066107,), (1354066110,), (1354066113,), (1354066117,), (1354066122,), (1354066127,), (1354066145,), (1354066151,), (1354066154,), (1354066159,), (1354066192,), (1354066195,), (1354066197,), (1354066200,), (1354066232,), (1354066236,), (1354066238,), (1354066241,), (1354066244,), (1354066287,), (1354066293,), (1354066296,), (1354066299,), (1354066327,), (1354066331,), (1354066334,), (1354066335,), (1354066338,), (1354066382,), (1354066683,), (1354066696,), (1354066714,), (1354066730,), (1354066733,), (1354066735,), (1354066744,), (1354066748,), (1354066752,), (1354066815,), (1354066818,), (1354066820,), (1354066835,), (1354066857,), (1354066947,), (1354066950,), (1354066953,), (1354066956,), (1354066957,), (1354066978,), (1354067061,), (1354067064,), (1354067065,), (1354067066,), (1354067118,), (1354067091,), (1354067100,), (1354067108,), (1354067115,), (1354067146,), (1354067149,), (1354067152,), (1354067155,), (1354067159,), (1354067166,), (1354067192,), (1354067202,), (1354067223,), (1354067243,), (1354067330,), (1354067337,), (1354067351,), (1354067516,), (1354067543,), (1354067827,), (1354068930,), (1354068939,), (1354069018,), (1354069028,), (1354069031,), (1354069043,), (1354069048,), (1354069145,), (1354069153,), (1354069605,), (1354069660,), (1354069668,), (1354069671,), (1354069759,), (1354069768,), (1354069770,), (1354069904,), (1354069908,), (1354069910,), (1354069912,), (1354069913,), (1354070088,), (1354070173,), (1354070176,), (1354070177,), (1354070178,), (1354070411,), (1354070415,), (1354070417,), (1354070605,), (1354070607,), (1354070612,), (1354070620,), (1354070623,), (1354070789,), (1354070819,), (1354070852,), (1354070885,), (1354070953,), (1354071263,), (1354071272,), (1354071280,), (1354071423,), (1354071427,), (1354071431,), (1354071436,), (1354071438,), (1354071478,), (1354071494,), (1354071503,), (1354071513,), (1354071524,), (1354071892,), (1354071894,), (1354071896,), (1354071942,), (1354071947,), (1354071952,), (1354071954,), (1354072001,), (1354072015,), (1354072021,), (1354072027,), (1354072033,), (1354072080,), (1354072096,), (1354072148,), (1354072156,), (1354072164,), (1354072334,), (1354072884,), (1354072890,), (1354073348,), (1354073334,), (1354073340,), (1354073896,), (1354073961,), (1354073999,), (1354074028,), (1354074321,), (1354074353,), (1354074384,), (1354074499,), (1354074505,), (1354074510,), (1354074655,), (1354074660,), (1354074668,), (1354074679,), (1354074714,), (1354074722,), (1354074782,), (1354074788,), (1354074806,), (1354074861,), (1354074873,), (1354075004,), (1354075065,), (1354075112,), (1354075115,), (1354075179,), (1354075181,), (1354075183,), (1354075186,), (1354075189,), (1354075208,), (1354075213,), (1354075253,), (1354075259,), (1354075267,), (1354075315,), (1354075344,), (1354075376,), (1354075494,), (1354075862,), (1354075868,), (1354075871,), (1354075874,), (1354075878,), (1354075955,), (1354075961,), (1354075968,), (1354076025,), (1354076028,), (1354076032,), (1354076033,), (1354076037,), (1354076094,), (1354083921,), (1354083960,), (1354083989,), (1354083990,), (1354084008,), (1354084013,), (1354084016,), (1354084037,), (1354084040,), (1354084042,), (1354084060,), (1354084065,), (1354084069,), (1354084072,), (1354084091,), (1354084114,), (1354084117,), (1354084119,), (1354084121,), (1354084137,), (1354084138,), (1354084139,), (1354084141,), (1354084143,), (1354084171,), (1354084173,), (1354084175,), (1354084177,), (1354084215,), (1354084217,), (1354084221,), (1354084345,), (1354084397,), (1354084428,), (1354084455,), (1354084485,), (1354084701,), (1354084728,), (1354084753,), (1354084775,), (1354084796,), (1354084820,), (1354084959,), (1354084967,), (1354084971,), (1354084973,), (1354085043,), (1354085046,), (1354085048,), (1354085051,), (1354085112,), (1354085074,), (1354085083,), (1354085107,), (1354085109,), (1354085111,), (1354085133,), (1354085138,), (1354085141,), (1354085144,), (1354085245,), (1354085293,), (1354085296,), (1354085300,), (1354085318,), (1354085321,), (1354085324,), (1354085327,), (1354085355,), (1354085359,), (1354085362,), (1354085400,), (1354085405,), (1354085408,), (1354085432,), (1354085434,), (1354085437,), (1354085439,), (1354085442,), (1354085455,), (1354085463,), (1354085471,), (1354087337,), (1354087538,), (1354087657,), (1354087659,), (1354087724,), (1354087730,), (1354087738,), (1354087741,), (1354087744,), (1354087759,), (1354087761,), (1354087763,), (1354087765,), (1354087768,), (1354088287,), (1354088317,), (1354088498,), (1354088501,), (1354088504,), (1354088507,), (1354088514,), (1354088767,), (1354088774,), (1354088799,), (1354088829,), (1354088859,), (1354088890,), (1354088942,), (1354088947,), (1354088974,), (1354089045,), (1354089106,), (1354089136,), (1354089151,), (1354089186,), (1354089277,), (1354089290,), (1354089291,), (1354089292,), (1354089320,), (1354089322,), (1354089325,), (1354089327,), (1354089360,), (1354089362,), (1354089389,), (1354089391,), (1354089418,), (1354089423,), (1354089427,), (1354089432,), (1354089435,), (1354089473,), (1354089477,), (1354089482,), (1354089486,), (1354089554,), (1354089594,), (1354089610,), (1354089616,), (1354089673,), (1354089678,), (1354089683,), (1354089688,), (1354089723,), (1354089726,), (1354089729,), (1354089756,), (1354089759,), (1354089768,), (1354089805,), (1354089827,), (1354089860,), (1354089864,), (1354089868,), (1354089871,), (1354089875,), (1354089877,), (1354089913,), (1354089903,), (1354089908,), (1354089911,), (1354089953,), (1354089965,), (1354089972,), (1354089976,), (1354089980,), (1354090014,), (1354090019,), (1354090023,), (1354090025,), (1354090028,), (1354090087,), (1354090092,), (1354090094,), (1354090100,), (1354090144,), (1354090146,), (1354090150,), (1354090152,), (1354090267,), (1354090270,), (1354090272,), (1354090273,), (1354090274,), (1354090275,), (1354090300,), (1354090311,), (1354090322,), (1354090328,), (1354090331,), (1354090394,), (1354090401,), (1354090410,), (1354090411,), (1354090437,), (1354090440,), (1354090443,), (1354090447,), (1354090451,), (1354090461,), (1354090504,), (1354090507,), (1354090521,), (1354090547,), (1354090572,), (1354090601,), (1354090699,), (1354090724,), (1354090729,), (1354090913,), (1354090918,), (1354090926,), (1354091081,), (1354091108,), (1354091139,), (1354091165,), (1354091193,), (1354091218,), (1354091558,), (1354091609,), (1354091688,), (1354091761,), (1354091836,), (1354091920,), (1354092482,), (1354096118,), (1354096010,), (1354096116,), (1354096151,), (1354096157,), (1354096162,), (1354096166,), (1354096196,), (1354096199,), (1354096203,), (1354096235,), (1354096240,), (1354096877,), (1354096887,), (1354096891,), (1354096957,), (1354096974,), (1354096979,), (1354096982,), (1354096986,), (1354097002,), (1354097013,), (1354097017,), (1354097020,), (1354097024,), (1354097048,), (1354097052,), (1354097054,), (1354097056,), (1354097080,), (1354097085,), (1354097090,), (1354097661,), (1354097701,), (1354097738,), (1354097774,), (1354099224,), (1354099285,), (1354099317,), (1354099355,), (1354100069,), (1354099877,), (1354099952,), (1354100013,), (1354100260,), (1354100311,), (1354100363,), (1354100869,), (1354100873,), (1354101018,), (1354101204,), (1354101206,), (1354101207,), (1354101255,), (1354101261,), (1354101264,), (1354101269,), (1354101272,), (1354101275,), (1354101297,), (1354101300,), (1354101301,), (1354101335,), (1354101339,), (1354101342,), (1354101345,), (1354101348,), (1354101372,), (1354101373,), (1354101374,), (1354101375,), (1354101414,), (1354101477,), (1354101541,), (1354101572,), (1354101607,), (1354101613,), (1354101617,), (1354101620,), (1354101664,), (1354101646,), (1354101650,), (1354101655,), (1354101659,), (1354101701,), (1354101703,), (1354101704,), (1354101705,), (1354101707,), (1354101858,), (1354101895,), (1354101901,), (1354101912,), (1354101947,), (1354102527,), (1354103915,), (1354104876,), (1354104869,), (1354104873,), (1354105011,), (1354105017,), (1354105022,), (1354105054,), (1354105060,), (1354105066,), (1354105072,), (1354105079,), (1354105117,), (1354105142,), (1354105152,), (1354105159,), (1354105185,), (1354105191,), (1354105198,), (1354105203,), (1354105207,), (1354105211,), (1354105240,), (1354105247,), (1354105276,), (1354105647,), (1354105678,), (1354105707,), (1354105738,), (1354105767,), (1354105799,), (1354105987,), (1354105991,), (1354105995,), (1354106003,), (1354106006,), (1354106198,), (1354106203,), (1354106205,), (1354106209,), (1354106374,), (1354106380,), (1354106384,), (1354106388,), (1354106392,), (1354106395,), (1354106514,), (1354106547,), (1354106576,), (1354106606,), (1354106639,), (1354106672,), (1354106708,), (1354106692,), (1354106697,), (1354106702,), (1354106706,), (1354106735,), (1354106739,), (1354106741,), (1354106751,), (1354106776,), (1354106783,), (1354106785,), (1354106787,), (1354106789,), (1354106792,), (1354106831,), (1354106835,), (1354106838,), (1354106839,), (1354106843,), (1354106846,), (1354106883,), (1354106891,), (1354106896,), (1354106910,), (1354107086,), (1354107122,), (1354107164,), (1354107169,), (1354107174,), (1354107182,), (1354107225,), (1354107226,), (1354107228,), (1354107229,), (1354107232,), (1354107235,), (1354107269,), (1354107274,), (1354107278,), (1354107281,), (1354107285,), (1354107313,), (1354107315,), (1354107318,), (1354107321,), (1354107356,), (1354107361,), (1354107366,), (1354107368,), (1354107373,), (1354107564,), (1354107569,), (1354107614,), (1354107627,), (1354107637,), (1354107656,), (1354107743,), (1354107795,), (1354107870,), (1354107898,), (1354108216,), (1354108220,), (1354108226,), (1354108235,), (1354108246,), (1354108254,), (1354108261,), (1354108262,), (1354108324,), (1354108302,), (1354108316,), (1354108320,), (1354108364,), (1354108679,), (1354108683,), (1354108777,), (1354108783,), (1354108787,), (1354108997,), (1354109050,), (1354109054,), (1354109056,), (1354109164,), (1354109201,), (1354109204,), (1354109207,), (1354109212,), (1354109284,), (1354109287,), (1354109296,), (1354109307,), (1354109344,), (1354109347,), (1354109349,), (1354109352,), (1354109378,), (1354109382,), (1354109389,), (1354109433,), (1354109436,), (1354109439,), (1354109441,), (1354109442,), (1354109474,), (1354109484,), (1354109491,), (1354109497,), (1354109502,), (1354109578,), (1354114537,), (1354114535,), (1354114585,), (1354114624,), (1354114626,), (1354114628,), (1354114662,), (1354114665,), (1354114687,), (1354114689,), (1354114691,), (1354114693,), (1354114695,), (1354114716,), (1354114719,), (1354114722,), (1354114724,), (1354114727,), (1354114744,), (1354114749,), (1354114801,), (1354114780,), (1354114791,), (1354114795,), (1354114797,), (1354114799,), (1354114826,), (1354114827,), (1354114828,), (1354114829,), (1354114873,), (1354114874,), (1354114894,), (1354114897,), (1354114898,), (1354114901,), (1354114946,), (1354114947,), (1354114948,), (1354114949,), (1354114951,), (1354114975,), (1354114976,), (1354114978,), (1354114983,), (1354114985,), (1354115017,), (1354115018,), (1354115019,), (1354115020,), (1354115022,), (1354115044,), (1354115046,), (1354115473,), (1354116374,), (1354116428,), (1354116432,), (1354116437,), (1354116440,), (1354116444,), (1354116466,), (1354116469,), (1354116499,), (1354116502,), (1354116506,), (1354116510,), (1354116535,), (1354116539,), (1354116611,), (1354116619,), (1354116621,), (1354116622,), (1354116624,), (1354116626,), (1354116673,), (1354116683,), (1354116686,), (1354116689,), (1354116691,), (1354116694,), (1354116734,), (1354116737,), (1354116739,), (1354116769,), (1354116770,), (1354116772,), (1354116775,), (1354116805,), (1354116809,), (1354116839,), (1354116841,), (1354116845,), (1354116847,), (1354116852,), (1354116857,), (1354116875,), (1354116879,), (1354116883,), (1354116887,), (1354116890,), (1354116894,), (1354116919,), (1354116925,), (1354116930,), (1354116932,), (1354116964,), (1354116969,), (1354116973,), (1354116976,), (1354116979,), (1354117012,), (1354117017,), (1354117020,), (1354117024,), (1354117069,), (1354117053,), (1354117063,), (1354117066,), (1354117098,), (1354117103,), (1354117107,), (1354117110,), (1354117113,), (1354117135,), (1354117138,), (1354117141,), (1354117144,), (1354117175,), (1354117178,), (1354117181,), (1354117183,), (1354117218,), (1354117219,), (1354117220,), (1354117248,), (1354117251,), (1354117253,), (1354117256,), (1354117274,), (1354117278,), (1354117281,), (1354117310,), (1354117314,), (1354117315,), (1354117316,), (1354117344,), (1354117348,), (1354117384,), (1354117418,), (1354117420,), (1354117421,), (1354117424,), (1354117465,), (1354117468,), (1354117474,), (1354117487,), (1354117521,), (1354117523,), (1354117524,), (1354117525,), (1354117527,), (1354117566,), (1354117571,), (1354117574,), (1354117577,), (1354117581,), (1354117584,), (1354117610,), (1354117615,), (1354117623,), (1354117628,), (1354117688,), (1354117674,), (1354117680,), (1354117684,), (1354117719,), (1354117724,), (1354117728,), (1354117733,), (1354117739,), (1354117743,), (1354117768,), (1354117772,), (1354117781,), (1354117789,), (1354117835,), (1354117843,), (1354117847,), (1354117850,), (1354117898,), (1354117904,), (1354117907,), (1354117909,), (1354117969,), (1354117976,), (1354117979,), (1354117982,), (1354117986,), (1354117989,), (1354118029,), (1354118032,), (1354118036,), (1354118076,), (1354118079,), (1354118080,), (1354118083,), (1354118086,), (1354118122,), (1354118127,), (1354118135,), (1354118138,), (1354118140,), (1354118144,), (1354118176,), (1354118179,), (1354118182,), (1354118185,), (1354118187,), (1354118224,), (1354118229,), (1354118232,), (1354118279,), (1354118295,), (1354118325,), (1354118352,), (1354118383,), (1354118411,), (1354118655,), (1354118662,), (1354118668,), (1354118676,), (1354120099,), (1354120135,), (1354120196,), (1354120634,), (1354120518,), (1354120547,), (1354120574,), (1354120606,), (1354120775,), (1354120780,), (1354120785,), (1354120791,), (1354120794,), (1354120831,), (1354120878,), (1354120907,), (1354120912,), (1354120917,), (1354120921,), (1354120965,), (1354120968,), (1354120971,), (1354120974,), (1354120979,), (1354121008,), (1354121013,), (1354121017,), (1354121022,), (1354121052,), (1354121056,), (1354121105,), (1354121108,), (1354121112,), (1354121116,), (1354121120,), (1354121183,), (1354121187,), (1354121189,), (1354121191,), (1354121193,), (1354121197,), (1354121256,), (1354121266,), (1354121275,), (1354121379,), (1354121384,), (1354121389,), (1354121397,), (1354121401,), (1354121428,), (1354121432,), (1354121435,), (1354121437,), (1354121462,), (1354121466,), (1354121502,), (1354121506,), (1354121510,), (1354121514,), (1354121741,), (1354121744,), (1354121751,), (1354121757,), (1354121761,), (1354121793,), (1354121797,), (1354121803,), (1354121807,), (1354121813,), (1354121892,), (1354121850,), (1354121854,), (1354121863,), (1354121889,), (1354121991,), (1354121995,), (1354122100,), (1354122103,), (1354122106,), (1354122109,), (1354122133,), (1354122159,), (1354122275,), (1354122301,), (1354122324,), (1354122327,), (1354122366,), (1354122370,), (1354122375,), (1354122435,), (1354122437,), (1354122440,), (1354122443,), (1354122446,), (1354122449,), (1354122491,), (1354122493,), (1354122496,), (1354122499,), (1354122503,), (1354122636,), (1354122638,), (1354122640,), (1354122643,), (1354122645,), (1354122731,), (1354122804,), (1354122810,), (1354122812,), (1354123413,), (1354129804,), (1354130021,), (1354130026,), (1354130029,), (1354130073,), (1354130078,), (1354130083,), (1354130087,), (1354130091,), (1354130198,), (1354130207,), (1354130235,), (1354130249,), (1354130264,), (1354130508,), (1354130607,), (1354130630,), (1354130656,), (1354130685,), (1354130818,), (1354130824,), (1354130844,), (1354130996,), (1354131026,), (1354131031,), (1354131057,), (1354131064,), (1354131314,), (1354131189,), (1354131222,), (1354131250,), (1354131276,), (1354131805,), (1354131856,), (1354131907,), (1354131975,), (1354132322,), (1354132327,), (1354132332,), (1354132337,), (1354132339,), (1354132343,), (1354132365,), (1354132370,), (1354132375,), (1354132380,), (1354132384,), (1354132407,), (1354132411,), (1354132415,), (1354132455,), (1354132468,), (1354132472,), (1354132477,), (1354132481,), (1354132482,), (1354132500,), (1354132516,), (1354132518,), (1354132521,), (1354132525,), (1354132530,), (1354132556,), (1354132559,), (1354132565,), (1354132569,), (1354132573,), (1354132575,), (1354132594,), (1354132598,), (1354132602,), (1354132605,), (1354132637,), (1354132644,), (1354132649,), (1354132655,), (1354132659,), (1354132693,), (1354132699,), (1354132715,), (1354132745,), (1354132773,), (1354132801,), (1354132944,), (1354132972,), (1354132982,), (1354133157,), (1354133207,), (1354133261,), (1354133847,), (1354133876,), (1354133906,), (1354133933,), (1354133941,), (1354133946,), (1354134112,), (1354154266,), (1354154275,), (1354154279,), (1354154282,), (1354154284,), (1354154567,), (1354154596,), (1354154625,), (1354154653,), (1354154683,), (1354154819,), (1354154847,), (1354154872,), (1354154882,), (1354154888,), (1354154893,), (1354155164,), (1354155179,), (1354155262,), (1354155272,), (1354155289,), (1354155365,), (1354155368,), (1354155373,), (1354155379,), (1354155392,), (1354155679,), (1354155706,), (1354155734,), (1354155760,), (1354155787,), (1354156045,), (1354156097,), (1354156127,), (1354156165,), (1354156218,), (1354156716,), (1354156747,), (1354156802,), (1354156852,), (1354156880,), (1354157255,), (1354157288,), (1354157340,), (1354157385,), (1354157426,), (1354157520,), (1354158296,), (1354158346,), (1354158395,), (1354158503,), (1354158580,), (1354159144,), (1354159200,), (1354159251,), (1354159303,), (1354159365,), (1354160028,), (1354160056,), (1354160092,), (1354160142,), (1354160190,), (1354160794,), (1354160669,), (1354160704,), (1354160735,), (1354160763,), (1354161250,), (1354161340,), (1354161463,), (1354161530,), (1354161579,), (1354161991,), (1354162037,), (1354162090,), (1354162143,), (1354162193,), (1354162246,), (1354163409,), (1354163480,), (1354163553,), (1354163624,), (1354163732,), (1354163935,), (1354164682,), (1354164778,), (1354164838,), (1354164903,), (1354164945,), (1354165522,), (1354165615,), (1354165696,), (1354165779,), (1354165845,), (1354166310,), (1354166418,), (1354166515,), (1354166618,), (1354166697,), (1354166755,), (1354167029,), (1354167098,), (1354167175,), (1354167238,), (1354167291,), (1354167343,), (1354167678,), (1354167743,), (1354167771,), (1354167797,), (1354168156,), (1354168199,), (1354168256,), (1354168311,), (1354168364,), (1354168415,), (1354168785,), (1354168812,), (1354168841,), (1354169155,), (1354169161,), (1354169166,), (1354169170,), (1354169173,), (1354169176,), (1354169408,), (1354169460,), (1354169515,), (1354170863,), (1354170972,), (1354171060,), (1354171127,), (1354171209,), (1354171334,), (1354171590,), (1354171647,), (1354171720,), (1354171795,), (1354172587,), (1354172173,), (1354172254,), (1354172351,), (1354172430,), (1354172512,), (1354173239,), (1354173295,), (1354173352,), (1354173408,), (1354173485,), (1354174037,), (1354174113,), (1354174187,), (1354174279,), (1354174347,), (1354175019,), (1354175071,), (1354175078,), (1354175091,), (1354175277,), (1354175442,), (1354175786,), (1354175789,), (1354175791,), (1354175793,), (1354175900,), (1354176099,), (1354176194,), (1354176221,), (1354176251,), (1354176279,), (1354176307,), (1354176601,), (1354176655,), (1354176698,), (1354176746,), (1354176973,), (1354176977,), (1354176981,), (1354176983,), (1354177008,), (1354177034,), (1354177142,), (1354177145,), (1354177148,), (1354177208,), (1354177213,), (1354177253,), (1354177322,), (1354177674,), (1354177693,), (1354177808,), (1354177873,), (1354177876,), (1354177878,), (1354177880,), (1354177883,), (1354178013,), (1354178160,), (1354178188,), (1354178384,), (1354178463,), (1354178469,), (1354178478,), (1354178480,), (1354178492,), (1354178889,), (1354178647,), (1354178690,), (1354178730,), (1354179022,), (1354179027,), (1354179029,), (1354179051,), (1354179078,), (1354179106,), (1354179187,), (1354179200,), (1354179204,), (1354179206,), (1354179209,), (1354179257,), (1354179260,), (1354179263,), (1354179266,), (1354179268,), (1354179271,), (1354179298,), (1354179302,), (1354179305,), (1354179310,), (1354179313,), (1354179462,), (1354179491,), (1354179521,), (1354179700,), (1354179718,), (1354179751,), (1354179764,), (1354179781,), (1354179783,), (1354179814,), (1354179818,), (1354179820,), (1354179823,), (1354179866,), (1354179868,), (1354179871,), (1354179874,), (1354179877,), (1354179878,), (1354179913,), (1354179917,), (1354179921,), (1354179924,), (1354179957,), (1354179959,), (1354179963,), (1354179966,), (1354179970,), (1354179977,), (1354180066,), (1354180096,), (1354180104,), (1354180109,), (1354180164,), (1354180168,), (1354180171,), (1354180175,), (1354180178,), (1354180181,), (1354180207,), (1354180210,), (1354180213,), (1354180216,), (1354180241,), (1354180248,), (1354180309,), (1354180297,), (1354180439,), (1354180468,), (1354180510,), (1354180831,), (1354180849,), (1354180852,), (1354180855,), (1354180859,), (1354180862,), (1354180913,), (1354180918,), (1354180922,), (1354181009,), (1354181743,), (1354253148,), (1354255466,), (1354255814,), (1354255850,), (1354256336,), (1354256388,), (1354256428,), (1354256456,), (1354256992,), (1354257024,), (1354257053,), (1354257083,), (1354257112,), (1354257246,), (1354257750,), (1354257782,), (1354258063,), (1354258085,), (1354258837,), (1354258951,), (1354259052,), (1354259178,), (1354259725,), (1354259942,), (1354259996,), (1354260024,), (1354260039,), (1354260044,), (1354260067,), (1354260070,), (1354260074,), (1354260078,), (1354260514,), (1354260544,), (1354260596,), (1354260611,), (1354260631,), (1354261048,), (1354260919,), (1354260953,), (1354260984,), (1354261012,), (1354261514,), (1354261544,), (1354261576,), (1354261635,), (1354261673,), (1354262292,), (1354262359,), (1354262439,), (1354262507,), (1354262938,), (1354262967,), (1354263025,), (1354263062,), (1354263091,), (1354263122,), (1354263257,), (1354263260,), (1354263265,), (1354263488,), (1354263573,), (1354263601,), (1354263650,), (1354263694,), (1354263949,), (1354264005,), (1354264033,), (1354264045,), (1354264135,), (1354264170,), (1354264202,), (1354264235,), (1354264291,), (1354264343,), (1354264486,), (1354264494,), (1354264500,), (1354264504,), (1354264508,), (1354264511,), (1354264573,), (1354264601,), (1354264633,), (1354264664,), (1354264894,), (1354264897,), (1354264901,), (1354264904,), (1354264907,), (1354264910,), (1354265291,), (1354265302,), (1354265320,), (1354265366,), (1354265406,), (1354265505,), (1354265507,), (1354265538,), (1354265541,), (1354265543,), (1354265545,), (1354265689,), (1354265693,), (1354265897,), (1354265867,), (1354266296,), (1354266321,), (1354266350,), (1354266378,), (1354266698,), (1354266701,), (1354266735,), (1354266820,), (1354266824,), (1354266827,), (1354266830,), (1354266833,), (1354266836,), (1354267075,), (1354267079,), (1354267082,), (1354267092,), (1354267129,), (1354267131,), (1354267133,), (1354267135,), (1354267136,), (1354267139,), (1354267626,), (1354267748,), (1354267777,), (1354267781,), (1354267799,), (1354267899,), (1354267910,), (1354267916,), (1354267919,), (1354268093,), (1354268129,), (1354268159,), (1354268195,), (1354268250,), (1354268302,), (1354268959,), (1354269015,), (1354269073,), (1354269121,), (1354269178,), (1354269248,), (1354269936,), (1354269996,), (1354270054,), (1354270131,), (1354270274,), (1354270655,), (1354270658,), (1354270661,), (1354270686,), (1354270998,), (1354271026,), (1354271040,), (1354271067,), (1354271112,), (1354271183,), (1354271847,), (1354271894,), (1354271950,), (1354272004,), (1354272034,), (1354272060,), (1354272112,), (1354272114,), (1354272117,), (1354272138,), (1354272626,), (1354272529,), (1354273024,), (1354273114,), (1354274754,), (1354274822,), (1354274825,), (1354274830,), (1354275227,), (1354276477,), (1354276499,), (1354276525,), (1354276565,), (1354277313,), (1354277369,), (1354277420,), (1354277448,), (1354277459,), (1354277689,), (1354277692,), (1354277694,), (1354277742,), (1354277766,), (1354277792,), (1354277821,), (1354277914,), (1354277941,), (1354278379,), (1354278407,), (1354278411,), (1354278455,), (1354278515,), (1354278552,), (1354278591,), (1354278616,), (1354278649,), (1354278755,), (1354278765,), (1354278798,), (1354278829,), (1354279367,), (1354279235,), (1354279267,), (1354279297,), (1354279326,), (1354280253,), (1354280330,), (1354280411,), (1354280494,), (1354281884,), (1354282040,), (1354282169,), (1354282304,), (1354282564,), (1354282671,), (1354283772,), (1354284302,), (1354284554,), (1354284602,), (1354284631,), (1354284934,), (1354285023,), (1354285105,), (1354285175,), (1354285948,), (1354286018,), (1354286071,), (1354286122,), (1354286169,), (1354286211,), (1354286445,), (1354286458,), (1354286472,), (1354286479,), (1354286721,), (1354286770,), (1354286834,), (1354287002,), (1354287120,), (1354287266,), (1354287715,), (1354287735,), (1354287739,), (1354287790,), (1354287883,), (1354287979,), (1354288267,), (1354288269,), (1354288275,), (1354288354,), (1354288360,), (1354288372,), (1354288524,), (1354288549,), (1354288678,), (1354288683,), (1354288912,), (1354288722,), (1354288727,), (1354288769,), (1354288829,), (1354289154,), (1354289334,), (1354289443,), (1354289559,), (1354289677,), (1354289795,), (1354290419,), (1354290445,), (1354290460,), (1354290493,), (1354290497,), (1354290501,), (1354290505,), (1354290508,), (1354290513,), (1354291256,), (1354291313,), (1354291366,), (1354291417,), (1354291456,), (1354291840,), (1354291894,), (1354291948,), (1354292346,), (1354292376,), (1354292407,), (1354292466,), (1354292576,), (1354292695,), (1354293062,), (1354293114,), (1354293175,), (1354293232,), (1354293559,), (1354293564,), (1354293566,), (1354293573,), (1354293576,), (1354293580,), (1354293614,), (1354293619,), (1354293621,), (1354293623,), (1354293657,), (1354293683,), (1354293710,), (1354293744,), (1354293773,), (1354293851,), (1354294052,), (1354294081,), (1354294108,), (1354294135,), (1354294377,), (1354294380,), (1354294383,), (1354294385,), (1354294387,), (1354294392,), (1354294522,), (1354294525,), (1354294532,), (1354294534,), (1354294598,), (1354294602,), (1354294605,), (1354294612,), (1354294647,), (1354294675,), (1354294981,), (1354294951,), (1354294960,), (1354294980,), (1354295031,), (1354295037,), (1354295041,), (1354295044,), (1354295063,), (1354295096,), (1354295373,), (1354295403,), (1354295432,), (1354295971,), (1354296002,), (1354296253,), (1354296255,), (1354296259,), (1354296263,), (1354296267,), (1354296271,), (1354296384,), (1354296406,), (1354296418,), (1354296863,), (1354296892,), (1354296925,), (1354296963,), (1354296970,), (1354296972,), (1354297071,), (1354297089,), (1354297106,), (1354297136,), (1354297243,), (1354297248,), (1354297251,), (1354297255,), (1354297258,), (1354297264,), (1354297527,), (1354297584,), (1354297700,), (1354297753,), (1354298064,), (1354298066,), (1354298069,), (1354298082,), (1354298109,), (1354298182,), (1354298365,), (1354298369,), (1354298391,), (1354298395,), (1354298702,), (1354298742,), (1354298753,), (1354299263,), (1354299317,), (1354299360,), (1354299589,), (1354299622,), (1354299626,), (1354299629,), (1354299633,), (1354299973,), (1354307730,), (1354307733,), (1354307741,), (1354307747,), (1354308026,), (1354308029,), (1354308032,), (1354308037,), (1354308042,), (1354308073,), (1354308078,), (1354308102,), (1354308106,), (1354308114,), (1354308149,), (1354308482,), (1354308508,), (1354308534,), (1354308904,), (1354308933,), (1354308964,), (1354308997,), (1354309031,), (1354309061,), (1354309347,), (1354309372,), (1354309374,), (1354309418,), (1354309450,), (1354309601,), (1354309620,), (1354309638,), (1354309648,), (1354309651,), (1354309696,), (1354309818,), (1354309821,), (1354309824,), (1354309826,), (1354309830,), (1354310305,), (1354310307,), (1354310343,), (1354310345,), (1354310510,), (1354310516,), (1354310520,), (1354310527,), (1354310530,), (1354310534,), (1354310559,), (1354310562,), (1354310565,), (1354310572,), (1354310593,), (1354311066,), (1354311104,), (1354311157,), (1354311218,), (1354311300,), (1354311349,), (1354312044,), (1354312081,), (1354312114,), (1354312198,), (1354312226,), (1354313165,), (1354313246,), (1354313275,), (1354313305,), (1354313336,), (1354313399,), (1354314001,), (1354314037,), (1354314043,), (1354314046,), (1354314049,), (1354314650,), (1354314326,), (1354314361,), (1354314513,), (1354314577,), (1354314622,), (1354314977,), (1354314984,), (1354314995,), (1354315038,), (1354315385,), (1354315438,), (1354315465,), (1354315482,), (1354315520,), (1354315531,), (1354315744,), (1354315805,), (1354315912,), (1354316636,), (1354316653,), (1354316655,), (1354316657,), (1354316791,), (1354316797,), (1354316876,), (1354316955,), (1354316958,), (1354318214,), (1354318243,), (1354318289,), (1354318357,), (1354318392,), (1354318429,), (1354318495,), (1354318501,), (1354318506,), (1354318510,), (1354318514,), (1354318641,), (1354318674,), (1354318705,), (1354318734,), (1354318771,), (1354318833,), (1354319201,), (1354319228,), (1354319236,), (1354319273,), (1354319313,), (1354319728,), (1354319818,), (1354319859,), (1354319903,), (1354320125,), (1354320129,), (1354320157,), (1354320223,), (1354320250,), (1354320254,), (1354320339,), (1354320370,), (1354320400,), (1354320430,), (1354320461,), (1354320637,), (1354320571,), (1354320607,), (1354320628,), (1354320632,), (1354320634,), (1354320887,), (1354320908,), (1354320920,), (1354320963,), (1354321320,), (1354321438,), (1354321466,), (1354321503,), (1354321552,), (1354321580,), (1354321839,), (1354321867,), (1354321895,), (1354321928,), (1354322137,), (1354322146,), (1354322197,), (1354322443,), (1354322717,), (1354322812,), (1354323048,), (1354323091,), (1354323148,), (1354324725,), (1354325276,), (1354326380,), (1354326445,), (1354326497,), (1354326615,), (1354326813,), (1354326893,), (1354327405,), (1354327445,), (1354327604,), (1354327662,), (1354328343,), (1354328377,), (1354328405,), (1354328997,), (1354329031,), (1354329064,), (1354329096,), (1354329128,), (1354329180,), (1354329878,), (1354329908,), (1354329934,), (1354329941,), (1354330479,), (1354330305,), (1354330426,), (1354331387,), (1354331480,), (1354331567,), (1354331649,), (1354331757,), (1354331829,), (1354332717,), (1354332780,), (1354332854,), (1354333762,), (1354333845,), (1354333929,), (1354334050,), (1354334167,), (1354334303,), (1354334876,), (1354334906,), (1354334912,), (1354334914,), (1354335455,), (1354335539,), (1354335622,), (1354335679,), (1354335739,), (1354335794,), (1354336142,), (1354336342,), (1354336427,), (1354336498,), (1354336544,), (1354336791,), (1354336794,), (1354336803,), (1354336832,), (1354336888,), (1354336894,), (1354336921,), (1354336951,), (1354336980,), (1354337009,), (1354337215,), (1354337222,), (1354337227,), (1354337248,), (1354337315,), (1354337321,), (1354337324,), (1354337328,), (1354337352,), (1354337360,), (1354337401,), (1354337409,), (1354337416,), (1354337420,), (1354337916,), (1354337967,), (1354338016,), (1354338078,), (1354338137,), (1354338688,), (1354338697,), (1354338701,), (1354338710,), (1354338717,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'29042025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22509404]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] map_info['map_portfolio_photo'] : {22509404: [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215, 1354337009, 1354336980, 1354336951, 1354336921, 1354336894, 1354336888, 1354336832, 1354336803, 1354336794, 1354336791, 1354336544, 1354336498, 1354336427, 1354336342, 1354336142, 1354335794, 1354335739, 1354335679, 1354335622, 1354335539, 1354335455, 1354334914, 1354334912, 1354334906, 1354334876, 1354334303, 1354334167, 1354334050, 1354333929, 1354333845, 1354333762, 1354332854, 1354332780, 1354332717, 1354331829, 1354331757, 1354331649, 1354331567, 1354331480, 1354331387, 1354330426, 1354330305]} final : True mtd_id 4302 list_pids : [1354338717, 1354338710, 1354338701, 1354338697, 1354338688, 1354338137, 1354338078, 1354338016, 1354337967, 1354337916, 1354337420, 1354337416, 1354337409, 1354337401, 1354337360, 1354337352, 1354337328, 1354337324, 1354337321, 1354337315, 1354337248, 1354337227, 1354337222, 1354337215] Looping around the photos to save general results len do output : 1 /22509404Didn'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, '2769943') ('4302', '22509404', '1354338717', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338710', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338701', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338697', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338688', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338137', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338078', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354338016', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337967', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337916', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337420', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337416', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337409', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337401', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337360', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337352', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337328', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337324', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337321', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337315', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337248', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337227', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337222', None, None, None, None, None, '2769943') ('4302', None, None, None, None, None, None, None, '2769943') ('4302', '22509404', '1354337215', None, None, None, None, None, '2769943') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '22509404', 'None', None, None, None, None, '2769943'), ('4302', '22509404', '1354338717', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338710', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338701', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338697', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338688', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338137', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338078', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354338016', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337967', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337916', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337420', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337416', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337409', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337401', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337360', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337352', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337328', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337324', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337321', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337315', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337248', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337227', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337222', None, None, None, None, None, '2769943'), ('4302', '22509404', '1354337215', None, None, None, None, None, '2769943')] time used for this insertion : 0.02574777603149414 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4648871421813965 time spend to save output : 0.026110410690307617 total time spend for step 5 : 2.490997552871704 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 (2769943) 3.19user 2.58system 0:13.56elapsed 42%CPU (0avgtext+0avgdata 162680maxresident)k 19720inputs+23904outputs (73major+76872minor)pagefaults 0swaps