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 : 1460873 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 (2844678) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2844678) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910220 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2844678'] with mtr_portfolio_ids : ['22910220'] and first list_photo_ids : [] new path : /proc/1460873/ Name: python3 Umask: 0002 State: R (running) Tgid: 1460873 Ngid: 0 Pid: 1460873 PPid: 1460869 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1460873 NSpid: 1460873 NSpgid: 1460211 NSsid: 1460211 VmPeak: 1107224 kB VmSize: 1107224 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98984 kB VmRSS: 98984 kB RssAnon: 60184 kB RssFile: 38800 kB RssShmem: 0 kB VmData: 865972 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 536 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: 43 nonvoluntary_ctxt_switches: 132 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1460873', 'Ngid': '0', 'Pid': '1460873', 'PPid': '1460869', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1460873', 'NSpid': '1460873', 'NSpgid': '1460211', 'NSsid': '1460211', 'VmPeak': '1107224 kB', 'VmSize': '1107224 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98984 kB', 'VmRSS': '98984 kB', 'RssAnon': '60184 kB', 'RssFile': '38800 kB', 'RssShmem': '0 kB', 'VmData': '865972 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '536 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': '43', 'nonvoluntary_ctxt_switches': '132'} ('datou_batch_current', '1460873', '1107224', '0', '1107224', '865972', '98984', b'', 'marlene', '2844678') 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 (22910220) 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 (2844678 ) ) 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 (22910220) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357774999, 'portfolio_id': 22910220}, {'photo_id': 1357774609, 'portfolio_id': 22910220}, {'photo_id': 1357774605, 'portfolio_id': 22910220}, {'photo_id': 1357774600, 'portfolio_id': 22910220}, {'photo_id': 1357774596, 'portfolio_id': 22910220}, {'photo_id': 1357774019, 'portfolio_id': 22910220}, {'photo_id': 1357774015, 'portfolio_id': 22910220}, {'photo_id': 1357774011, 'portfolio_id': 22910220}, {'photo_id': 1357774009, 'portfolio_id': 22910220}, {'photo_id': 1357773977, 'portfolio_id': 22910220}, {'photo_id': 1357773973, 'portfolio_id': 22910220}, {'photo_id': 1357773971, 'portfolio_id': 22910220}, {'photo_id': 1357773970, 'portfolio_id': 22910220}, {'photo_id': 1357773969, 'portfolio_id': 22910220}, {'photo_id': 1357773938, 'portfolio_id': 22910220}, {'photo_id': 1357773936, 'portfolio_id': 22910220}, {'photo_id': 1357773932, 'portfolio_id': 22910220}, {'photo_id': 1357773929, 'portfolio_id': 22910220}, {'photo_id': 1357773924, 'portfolio_id': 22910220}, {'photo_id': 1357773889, 'portfolio_id': 22910220}, {'photo_id': 1357773887, 'portfolio_id': 22910220}, {'photo_id': 1357773885, 'portfolio_id': 22910220}, {'photo_id': 1357773882, 'portfolio_id': 22910220}, {'photo_id': 1357773846, 'portfolio_id': 22910220}, {'photo_id': 1357773845, 'portfolio_id': 22910220}] map_portfolio_id_photo_id: {22910220: [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845]} ##### 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.025092601776123047 #### 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 Wed May 14 05:48:29 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 (22910220) 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 : 22910220 get user id for portfolio 22910220 get sub ptf for main ptf 22910220, type 3726 and hashtags ['environnement', 'plastique', 'Carton_gris', 'kraft', 'autre_refus', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'papier', 'mal_croppe', 'flou', 'Carton_brun'] 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`=22910220 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','flou','Carton_brun')) 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`=22910220 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22910220, 'sub_port_id': 22910236, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291738, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22910220, 'sub_port_id': 22910237, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291739, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'flou': {'main_port_id': 22910220, 'sub_port_id': 22910238, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291740, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'papier': {'main_port_id': 22910220, 'sub_port_id': 22910239, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291741, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'mal_croppe': {'main_port_id': 22910220, 'sub_port_id': 22910240, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291742, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'metal': {'main_port_id': 22910220, 'sub_port_id': 22910241, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291743, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'plastique': {'main_port_id': 22910220, 'sub_port_id': 22910242, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291744, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'autre_refus': {'main_port_id': 22910220, 'sub_port_id': 22910243, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291745, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'cartonnette': {'main_port_id': 22910220, 'sub_port_id': 22910244, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291746, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'Carton_gris': {'main_port_id': 22910220, 'sub_port_id': 22910245, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291747, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'environnement': {'main_port_id': 22910220, 'sub_port_id': 22910246, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291748, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}, 'Carton_brun': {'main_port_id': 22910220, 'sub_port_id': 22910247, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291749, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910236 , 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=22910220 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 (22910236) result : ((1357774626,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910237 , 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=22910220 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 (22910237) result : ((1357774477,), (1357774478,), (1357774610,), (1357774921,), (1357774923,), (1357775191,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910238 , 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=22910220 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 (22910238) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910239 , 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=22910220 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 (22910239) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910240 , 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=22910220 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 (22910240) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910241 , 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=22910220 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 (22910241) result : ((1357774628,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910242 , 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=22910220 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 (22910242) result : ((1357775194,), (1357775195,), (1357775196,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910243 , 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=22910220 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 (22910243) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910244 , 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=22910220 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 (22910244) result : ((1357774622,), (1357774926,), (1357775192,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910245 , 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=22910220 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 (22910245) result : ((1357774613,), (1357774614,), (1357774617,), (1357774618,), (1357774619,), (1357774620,), (1357774621,), (1357774925,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910246 , 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=22910220 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 (22910246) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22910247 , 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=22910220 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 (22910247) result : ((1357774483,), (1357774623,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22910220) result : ((1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,)) 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 (1357774600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22910220 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','flou','Carton_brun')) 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`=22910220 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22910220, 'sub_port_id': 22910249, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291750, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22910220, 'sub_port_id': 22910250, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291751, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'flou': {'main_port_id': 22910220, 'sub_port_id': 22910251, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291752, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'papier': {'main_port_id': 22910220, 'sub_port_id': 22910252, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291753, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'mal_croppe': {'main_port_id': 22910220, 'sub_port_id': 22910253, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291754, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'metal': {'main_port_id': 22910220, 'sub_port_id': 22910254, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291755, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'plastique': {'main_port_id': 22910220, 'sub_port_id': 22910255, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291756, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'autre_refus': {'main_port_id': 22910220, 'sub_port_id': 22910256, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291757, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'cartonnette': {'main_port_id': 22910220, 'sub_port_id': 22910257, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291758, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'Carton_gris': {'main_port_id': 22910220, 'sub_port_id': 22910258, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291759, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'environnement': {'main_port_id': 22910220, 'sub_port_id': 22910259, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291760, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}, 'Carton_brun': {'main_port_id': 22910220, 'sub_port_id': 22910260, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15291761, 'last_updated_at': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 7, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 7, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910259,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910246 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22910260,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22910247 lien utilise dans velours : https://www.fotonower.com/velours/22910249,22910250,22910251,22910252,22910253,22910254,22910255,22910256,22910257,22910258,22910259,22910260?tags=kraft,Teint_Dans_La_Masse,flou,papier,mal_croppe,metal,plastique,autre_refus,cartonnette,Carton_gris,environnement,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22910220]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] map_info['map_portfolio_photo'] : {22910220: [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845]} final : False mtd_id 4302 list_pids : [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] Looping around the photos to save general results len do output : 1 /22910220. 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, '2844678') ('4302', '22910220', '1357774999', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774609', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774605', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774600', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774596', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774019', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774015', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774011', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774009', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773977', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773973', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773971', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773970', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773969', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773938', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773936', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773932', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773929', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773924', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773889', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773887', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773885', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773882', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773846', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773845', None, None, None, None, None, '2844678') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22910220', "{'kraft': 22910236, 'Teint_Dans_La_Masse': 22910237, 'flou': 22910238, 'papier': 22910239, 'mal_croppe': 22910240, 'metal': 22910241, 'plastique': 22910242, 'autre_refus': 22910243, 'cartonnette': 22910244, 'Carton_gris': 22910245, 'environnement': 22910246, 'Carton_brun': 22910247}", None, None, None, None, '2844678'), ('4302', '22910220', '1357774999', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774609', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774605', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774600', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774596', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774019', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774015', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774011', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774009', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773977', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773973', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773971', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773970', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773969', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773938', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773936', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773932', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773929', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773924', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773889', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773887', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773885', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773882', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773846', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773845', None, None, None, None, None, '2844678')] time used for this insertion : 0.09747147560119629 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5496418476104736 time spend to save output : 0.0979166030883789 total time spend for step 1 : 0.6475584506988525 step2:final Wed May 14 05:48:30 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 (22910220) 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 22910220 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357773846,1357773845,1357773889,1357773887,1357773885,1357773882,1357773938,1357773936,1357773932,1357773929,1357773924,1357773977,1357773973,1357773971,1357773970,1357773969,1357774019,1357774015,1357774011,1357774009,1357774609,1357774605,1357774600,1357774596,1357774999); 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([22910220]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} new output for save of step final : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] map_info['map_portfolio_photo'] : {22910220: [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845]} final : False mtd_id 4302 list_pids : [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] Looping around the photos to save general results len do output : 25 /1357774999.Didn't retrieve data . /1357774609.Didn't retrieve data . /1357774605.Didn't retrieve data . /1357774600.Didn't retrieve data . /1357774596.Didn't retrieve data . /1357774019.Didn't retrieve data . /1357774015.Didn't retrieve data . /1357774011.Didn't retrieve data . /1357774009.Didn't retrieve data . /1357773977.Didn't retrieve data . /1357773973.Didn't retrieve data . /1357773971.Didn't retrieve data . /1357773970.Didn't retrieve data . /1357773969.Didn't retrieve data . /1357773938.Didn't retrieve data . /1357773936.Didn't retrieve data . /1357773932.Didn't retrieve data . /1357773929.Didn't retrieve data . /1357773924.Didn't retrieve data . /1357773889.Didn't retrieve data . /1357773887.Didn't retrieve data . /1357773885.Didn't retrieve data . /1357773882.Didn't retrieve data . /1357773846.Didn't retrieve data . /1357773845.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, '2844678') ('4302', '22910220', '1357774999', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774609', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774605', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774600', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774596', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774019', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774015', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774011', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774009', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773977', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773973', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773971', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773970', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773969', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773938', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773936', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773932', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773929', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773924', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773889', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773887', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773885', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773882', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773846', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773845', None, None, None, None, None, '2844678') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 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', '22910220', '1357774999', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774609', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774605', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774600', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774596', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774019', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774015', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774011', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357774009', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773977', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773973', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773971', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773970', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773969', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773938', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773936', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773932', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773929', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773924', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773889', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773887', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773885', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773882', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773846', '0.08646769950050912', None, None, None, None, '2844678'), ('4302', '22910220', '1357773845', '0.08646769950050912', None, None, None, None, '2844678')] time used for this insertion : 0.0338132381439209 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07303237915039062 time spend to save output : 0.034958600997924805 total time spend for step 2 : 0.10799098014831543 step3:velours_tree Wed May 14 05:48:30 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 : {22910220: [{'kraft': 22910236, 'Teint_Dans_La_Masse': 22910237, 'flou': 22910238, 'papier': 22910239, 'mal_croppe': 22910240, 'metal': 22910241, 'plastique': 22910242, 'autre_refus': 22910243, 'cartonnette': 22910244, 'Carton_gris': 22910245, 'environnement': 22910246, 'Carton_brun': 22910247}]} input_args_next_step : {22910220: ()} output_args : {22910220: [{'kraft': 22910236, 'Teint_Dans_La_Masse': 22910237, 'flou': 22910238, 'papier': 22910239, 'mal_croppe': 22910240, 'metal': 22910241, 'plastique': 22910242, 'autre_refus': 22910243, 'cartonnette': 22910244, 'Carton_gris': 22910245, 'environnement': 22910246, 'Carton_brun': 22910247}]} args : 22910220 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 22910236, 'Teint_Dans_La_Masse': 22910237, 'flou': 22910238, 'papier': 22910239, 'mal_croppe': 22910240, 'metal': 22910241, 'plastique': 22910242, 'autre_refus': 22910243, 'cartonnette': 22910244, 'Carton_gris': 22910245, 'environnement': 22910246, 'Carton_brun': 22910247},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22910220) 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([22910220]) 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.33290576934814453 time spend to save output : 4.291534423828125e-05 total time spend for step 3 : 0.3329486846923828 step4:send_mail_cod Wed May 14 05:48:30 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 : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} input_args_next_step : {1357774999: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774999 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774609 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774605 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774600 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774596 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774019 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774015 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774011 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357774009 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773977 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773973 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773971 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773970 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773969 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773938 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773936 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773932 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773929 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773924 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773889 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773887 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773885 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773882 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773846 depend.output_id : 0 input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ()} output_args : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',)} args : 1357773845 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 : {22910220: [{'kraft': 22910236, 'Teint_Dans_La_Masse': 22910237, 'flou': 22910238, 'papier': 22910239, 'mal_croppe': 22910240, 'metal': 22910241, 'plastique': 22910242, 'autre_refus': 22910243, 'cartonnette': 22910244, 'Carton_gris': 22910245, 'environnement': 22910246, 'Carton_brun': 22910247}]} input_args_next_step : {1357774999: ('0.08646769950050912',), 1357774609: ('0.08646769950050912',), 1357774605: ('0.08646769950050912',), 1357774600: ('0.08646769950050912',), 1357774596: ('0.08646769950050912',), 1357774019: ('0.08646769950050912',), 1357774015: ('0.08646769950050912',), 1357774011: ('0.08646769950050912',), 1357774009: ('0.08646769950050912',), 1357773977: ('0.08646769950050912',), 1357773973: ('0.08646769950050912',), 1357773971: ('0.08646769950050912',), 1357773970: ('0.08646769950050912',), 1357773969: ('0.08646769950050912',), 1357773938: ('0.08646769950050912',), 1357773936: ('0.08646769950050912',), 1357773932: ('0.08646769950050912',), 1357773929: ('0.08646769950050912',), 1357773924: ('0.08646769950050912',), 1357773889: ('0.08646769950050912',), 1357773887: ('0.08646769950050912',), 1357773885: ('0.08646769950050912',), 1357773882: ('0.08646769950050912',), 1357773846: ('0.08646769950050912',), 1357773845: ('0.08646769950050912',), 22910220: ()} output_args : {22910220: [{'kraft': 22910236, 'Teint_Dans_La_Masse': 22910237, 'flou': 22910238, 'papier': 22910239, 'mal_croppe': 22910240, 'metal': 22910241, 'plastique': 22910242, 'autre_refus': 22910243, 'cartonnette': 22910244, 'Carton_gris': 22910245, 'environnement': 22910246, 'Carton_brun': 22910247}]} args : 22910220 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 :26, first value : ('0.08646769950050912',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22910220) 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 (1357774999,1357774609,1357774605,1357774600,1357774596,1357774019,1357774015,1357774011,1357774009,1357773977,1357773973,1357773971,1357773970,1357773969,1357773938,1357773936,1357773932,1357773929,1357773924,1357773889,1357773887,1357773885,1357773882,1357773846,1357773845) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357773845 begin to download photo : 1357773924 begin to download photo : 1357773970 begin to download photo : 1357774015 begin to download photo : 1357774999 download finish for photo 1357773970 begin to download photo : 1357773971 download finish for photo 1357773845 begin to download photo : 1357773846 download finish for photo 1357774015 begin to download photo : 1357774019 download finish for photo 1357773924 begin to download photo : 1357773929 download finish for photo 1357774999 download finish for photo 1357773971 begin to download photo : 1357773973 download finish for photo 1357773929 begin to download photo : 1357773932 download finish for photo 1357774019 begin to download photo : 1357774596 download finish for photo 1357773846 begin to download photo : 1357773882 download finish for photo 1357773973 begin to download photo : 1357773977 download finish for photo 1357774596 begin to download photo : 1357774600 download finish for photo 1357773882 begin to download photo : 1357773885 download finish for photo 1357773977 begin to download photo : 1357774009 download finish for photo 1357774600 begin to download photo : 1357774605 download finish for photo 1357773885 begin to download photo : 1357773887 download finish for photo 1357774605 begin to download photo : 1357774609 download finish for photo 1357774009 begin to download photo : 1357774011 download finish for photo 1357773887 begin to download photo : 1357773889 download finish for photo 1357773932 begin to download photo : 1357773936 download finish for photo 1357774011 download finish for photo 1357774609 download finish for photo 1357773889 download finish for photo 1357773936 begin to download photo : 1357773938 download finish for photo 1357773938 begin to download photo : 1357773969 download finish for photo 1357773969 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P22910220_14-05-2025_05_48_32.pdf 22910236 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=22910236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357774626: '1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702073_0.png'} change filename to text .imagette229102361747194512/ imagette229102361747194512/1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702073_0.png.png imagette229102381747194513/ imagette229102401747194513/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/f91151683f1edf6c600d2155c55bc6c4_76931447.png imagette229102361747194512 22910238 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=22910238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229102381747194513 22910240 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=22910240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229102401747194513 22910241 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=22910241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357774628: '1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702061_0.png'} change filename to text .imagette229102411747194513/ imagette229102411747194513/1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702061_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/b795c7b3e3798d6b56b707df57740787_40494630.png imagette229102411747194513 22910242 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=22910242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357775194: '1747114647_987851_1357773973_0863a9cc7f7a55ff36253688238bc248_rle_crop_3794702627_0.png', 1357775195: '1747114647_987851_1357773971_978002a03379c7c08f2645b6ea92ca43_rle_crop_3794702636_0.png', 1357775196: '1747114647_987851_1357773970_07b158681ca78d002a3c4b1f03d2b4dd_rle_crop_3794702650_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/8adb4753e959465038ea29d8c0313cbd_2254525.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/bd6ea68b86daf4d76d519591885f34db_87549883.png change filename to text .imagette229102421747194513/ imagette229102421747194513/1747114647_987851_1357773970_07b158681ca78d002a3c4b1f03d2b4dd_rle_crop_3794702650_0.png.png imagette229102421747194513/1747114647_987851_1357773973_0863a9cc7f7a55ff36253688238bc248_rle_crop_3794702627_0.png.png imagette229102421747194513/1747114647_987851_1357773971_978002a03379c7c08f2645b6ea92ca43_rle_crop_3794702636_0.png.png imagette229102431747194513/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/3cfb64c93aecb228e1c0e99050ba004f_65561077.png imagette229102421747194513 22910243 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=22910243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229102431747194513 22910244 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=22910244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357774622: '1747113927_340337_1357773924_054f35714bdaf6969d01b6682b585295_rle_crop_3794702081_0.png', 1357774926: '1747114287_343811_1357774605_1a56e23ddf14442f7f8553e530806c04_rle_crop_3794702363_0.png', 1357775192: '1747114647_987851_1357773973_0863a9cc7f7a55ff36253688238bc248_rle_crop_3794702620_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/81ae87bbd3eba778508671686371a64f_20093060.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/143efac3cc2853aa99021a96909723e6_88346122.png change filename to text .imagette229102441747194513/ imagette229102441747194513/1747114287_343811_1357774605_1a56e23ddf14442f7f8553e530806c04_rle_crop_3794702363_0.png.png imagette229102441747194513/1747114647_987851_1357773973_0863a9cc7f7a55ff36253688238bc248_rle_crop_3794702620_0.png.png imagette229102441747194513/1747113927_340337_1357773924_054f35714bdaf6969d01b6682b585295_rle_crop_3794702081_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/c4835f56cffe8bde70fc65442edc3c21_6466180.png imagette229102441747194513 22910237 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=22910237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357774477: '1747113807_339160_1357774011_1134a7ea095c756d001b2d83e5e85884_rle_crop_3794701410_0.png', 1357774478: '1747113807_339160_1357774009_c9ffe3b79ed256dc0e731ff29cf27c65_rle_crop_3794701417_0.png', 1357774610: '1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702070_0.png', 1357774921: '1747114287_343811_1357774605_1a56e23ddf14442f7f8553e530806c04_rle_crop_3794702369_0.png', 1357774923: '1747114287_343811_1357774600_e2ab7dd1fd27b513bae0dba8874e1f25_rle_crop_3794702386_0.png', 1357775191: '1747114647_987851_1357773973_0863a9cc7f7a55ff36253688238bc248_rle_crop_3794702622_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/1386d8aaf25799b8289f85e56fc9005c_59152531.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/0644c6a96447cf27a80902ec1ae4facf_72695619.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/9132f27fc41462870b15728effd75b8a_62187282.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/952b1fa78d944bc36552a74a2f721c49_59926738.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/4b23db7d4fa7f16dc12f71d2fef57ef2_80276385.png change filename to text .imagette229102371747194513/ imagette229102371747194513/1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702070_0.png.png imagette229102371747194513/1747114287_343811_1357774600_e2ab7dd1fd27b513bae0dba8874e1f25_rle_crop_3794702386_0.png.png imagette229102371747194513/1747114647_987851_1357773973_0863a9cc7f7a55ff36253688238bc248_rle_crop_3794702622_0.png.png imagette229102371747194513/1747113807_339160_1357774009_c9ffe3b79ed256dc0e731ff29cf27c65_rle_crop_3794701417_0.png.png imagette229102371747194513/1747114287_343811_1357774605_1a56e23ddf14442f7f8553e530806c04_rle_crop_3794702369_0.png.png imagette229102371747194513/1747113807_339160_1357774011_1134a7ea095c756d001b2d83e5e85884_rle_crop_3794701410_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/54cc73722ed96b0b7a9ef80ecea042b7_6903421.png imagette229102371747194513 22910245 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=22910245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357774613: '1747113927_340337_1357773977_f3cabb08d37f4e9e16453a0d9eeff3ea_rle_crop_3794702027_0.png', 1357774614: '1747113927_340337_1357773977_f3cabb08d37f4e9e16453a0d9eeff3ea_rle_crop_3794702028_0.png', 1357774617: '1747113927_340337_1357773936_0c02e3b4704c10b452d475a49e39d588_rle_crop_3794702034_0.png', 1357774618: '1747113927_340337_1357773936_0c02e3b4704c10b452d475a49e39d588_rle_crop_3794702038_0.png', 1357774619: '1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702072_0.png', 1357774620: '1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702065_0.png', 1357774621: '1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702062_0.png', 1357774925: '1747114287_343811_1357774600_e2ab7dd1fd27b513bae0dba8874e1f25_rle_crop_3794702379_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/997d8061f4b0177e2506439193ddafa8_78457630.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/e2f6671edaa0c017405e9509eb5107b5_95764267.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/13f4e4ef208eae02521e81379abb7ded_75675728.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/d738866ccfbf3e52603ccf6119e3938c_25336710.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/00b41528d67fe5efb304c3a14c64e188_73382055.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/52cfcea5613dfa3a0410f90ffc718b56_12206709.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/20af493433e27356fe03fd4184ceb5c3_31332967.png change filename to text .imagette229102451747194514/ imagette229102451747194514/1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702065_0.png.png imagette229102451747194514/1747114287_343811_1357774600_e2ab7dd1fd27b513bae0dba8874e1f25_rle_crop_3794702379_0.png.png imagette229102451747194514/1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702072_0.png.png imagette229102451747194514/1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702062_0.png.png imagette229102451747194514/1747113927_340337_1357773977_f3cabb08d37f4e9e16453a0d9eeff3ea_rle_crop_3794702028_0.png.png imagette229102451747194514/1747113927_340337_1357773936_0c02e3b4704c10b452d475a49e39d588_rle_crop_3794702034_0.png.png imagette229102451747194514/1747113927_340337_1357773977_f3cabb08d37f4e9e16453a0d9eeff3ea_rle_crop_3794702027_0.png.png imagette229102451747194514/1747113927_340337_1357773936_0c02e3b4704c10b452d475a49e39d588_rle_crop_3794702038_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/1e1b2a3c5c2a50e9282124ab2a368f8f_97237814.png imagette229102451747194514 22910247 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=22910247 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357774483: '1747113807_339160_1357774009_c9ffe3b79ed256dc0e731ff29cf27c65_rle_crop_3794701415_0.png', 1357774623: '1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702069_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/38f7f746deb888aa2aa86c8990101396_6459781.png change filename to text .imagette229102471747194515/ imagette229102471747194515/1747113807_339160_1357774009_c9ffe3b79ed256dc0e731ff29cf27c65_rle_crop_3794701415_0.png.png imagette229102471747194515/1747113927_340337_1357773929_8a78356e7e6d52763f81916aefe8ba7c_rle_crop_3794702069_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/3490ca3267d0d4d4cee804271a3fb9d3_38169835.png imagette229102471747194515 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22910220 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22910249,22910250,22910251,22910252,22910253,22910254,22910255,22910256,22910257,22910258,22910259,22910260?tags=kraft,Teint_Dans_La_Masse,flou,papier,mal_croppe,metal,plastique,autre_refus,cartonnette,Carton_gris,environnement,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1357774999] : ('0.08646769950050912',) no score found for photo 1357774999 We are sending mail with results at report@fotonower.com args[1357774609] : ('0.08646769950050912',) no score found for photo 1357774609 We are sending mail with results at report@fotonower.com args[1357774605] : ('0.08646769950050912',) no score found for photo 1357774605 We are sending mail with results at report@fotonower.com args[1357774600] : ('0.08646769950050912',) no score found for photo 1357774600 We are sending mail with results at report@fotonower.com args[1357774596] : ('0.08646769950050912',) no score found for photo 1357774596 We are sending mail with results at report@fotonower.com args[1357774019] : ('0.08646769950050912',) no score found for photo 1357774019 We are sending mail with results at report@fotonower.com args[1357774015] : ('0.08646769950050912',) no score found for photo 1357774015 We are sending mail with results at report@fotonower.com args[1357774011] : ('0.08646769950050912',) no score found for photo 1357774011 We are sending mail with results at report@fotonower.com args[1357774009] : ('0.08646769950050912',) no score found for photo 1357774009 We are sending mail with results at report@fotonower.com args[1357773977] : ('0.08646769950050912',) no score found for photo 1357773977 We are sending mail with results at report@fotonower.com args[1357773973] : ('0.08646769950050912',) no score found for photo 1357773973 We are sending mail with results at report@fotonower.com args[1357773971] : ('0.08646769950050912',) no score found for photo 1357773971 We are sending mail with results at report@fotonower.com args[1357773970] : ('0.08646769950050912',) no score found for photo 1357773970 We are sending mail with results at report@fotonower.com args[1357773969] : ('0.08646769950050912',) no score found for photo 1357773969 We are sending mail with results at report@fotonower.com args[1357773938] : ('0.08646769950050912',) no score found for photo 1357773938 We are sending mail with results at report@fotonower.com args[1357773936] : ('0.08646769950050912',) no score found for photo 1357773936 We are sending mail with results at report@fotonower.com args[1357773932] : ('0.08646769950050912',) no score found for photo 1357773932 We are sending mail with results at report@fotonower.com args[1357773929] : ('0.08646769950050912',) no score found for photo 1357773929 We are sending mail with results at report@fotonower.com args[1357773924] : ('0.08646769950050912',) no score found for photo 1357773924 We are sending mail with results at report@fotonower.com args[1357773889] : ('0.08646769950050912',) no score found for photo 1357773889 We are sending mail with results at report@fotonower.com args[1357773887] : ('0.08646769950050912',) no score found for photo 1357773887 We are sending mail with results at report@fotonower.com args[1357773885] : ('0.08646769950050912',) no score found for photo 1357773885 We are sending mail with results at report@fotonower.com args[1357773882] : ('0.08646769950050912',) no score found for photo 1357773882 We are sending mail with results at report@fotonower.com args[1357773846] : ('0.08646769950050912',) no score found for photo 1357773846 We are sending mail with results at report@fotonower.com args[1357773845] : ('0.08646769950050912',) no score found for photo 1357773845 We are sending mail with results at report@fotonower.com refus_total : 0.08646769950050912 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=22910220 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_P22910220_14-05-2025_05_48_32.pdf results_Auto_P22910220_14-05-2025_05_48_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.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','22910220','results_Auto_P22910220_14-05-2025_05_48_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.pdf','pdf','','0.31','0.08646769950050912') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22910220]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] map_info['map_portfolio_photo'] : {22910220: [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845]} final : False mtd_id 4302 list_pids : [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] 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, '2844678') ('4302', '22910220', '1357774999', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774609', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774605', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774600', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774596', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774019', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774015', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774011', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774009', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773977', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773973', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773971', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773970', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773969', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773938', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773936', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773932', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773929', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773924', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773889', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773887', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773885', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773882', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773846', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773845', None, None, None, None, None, '2844678') 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', '22910220', '1357774999', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774609', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774605', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774600', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774596', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774019', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774015', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774011', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774009', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773977', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773973', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773971', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773970', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773969', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773938', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773936', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773932', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773929', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773924', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773889', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773887', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773885', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773882', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773846', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773845', None, None, None, None, None, '2844678')] time used for this insertion : 0.11260724067687988 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.547735214233398 time spend to save output : 0.11305451393127441 total time spend for step 4 : 6.660789728164673 step5:split_time_score Wed May 14 05:48:37 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 : ['22910220'] 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 : [('22910220',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22910220) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357774999: {'path': 'temp/1747194510_1460873_1357774999_67f00019a1a932a6dbe469a777b8f6a7.jpg', 'extension': 'jpg'}, 1357773970: {'path': 'temp/1747194510_1460873_1357773970_07b158681ca78d002a3c4b1f03d2b4dd.jpg', 'extension': 'jpg'}, 1357773971: {'path': 'temp/1747194510_1460873_1357773971_978002a03379c7c08f2645b6ea92ca43.jpg', 'extension': 'jpg'}, 1357773973: {'path': 'temp/1747194510_1460873_1357773973_0863a9cc7f7a55ff36253688238bc248.jpg', 'extension': 'jpg'}, 1357773977: {'path': 'temp/1747194510_1460873_1357773977_f3cabb08d37f4e9e16453a0d9eeff3ea.jpg', 'extension': 'jpg'}, 1357774009: {'path': 'temp/1747194510_1460873_1357774009_c9ffe3b79ed256dc0e731ff29cf27c65.jpg', 'extension': 'jpg'}, 1357774011: {'path': 'temp/1747194510_1460873_1357774011_1134a7ea095c756d001b2d83e5e85884.jpg', 'extension': 'jpg'}, 1357774015: {'path': 'temp/1747194510_1460873_1357774015_21293629ef58d5df259f9c60ebe98e0f.jpg', 'extension': 'jpg'}, 1357774019: {'path': 'temp/1747194510_1460873_1357774019_be7bbde25ffe8d76d4346bcedc4af749.jpg', 'extension': 'jpg'}, 1357774596: {'path': 'temp/1747194510_1460873_1357774596_2ff6ddeaeffa62630b91e43e1ef42228.jpg', 'extension': 'jpg'}, 1357774600: {'path': 'temp/1747194510_1460873_1357774600_e2ab7dd1fd27b513bae0dba8874e1f25.jpg', 'extension': 'jpg'}, 1357774605: {'path': 'temp/1747194510_1460873_1357774605_1a56e23ddf14442f7f8553e530806c04.jpg', 'extension': 'jpg'}, 1357774609: {'path': 'temp/1747194510_1460873_1357774609_ff421216d3ca880e5aaeb4efd0a377fa.jpg', 'extension': 'jpg'}, 1357773845: {'path': 'temp/1747194510_1460873_1357773845_4a9a4c5d1bd85376d5cd7be5eed22f06.jpg', 'extension': 'jpg'}, 1357773846: {'path': 'temp/1747194510_1460873_1357773846_0c3076f8e054110b2538f28297d9ed38.jpg', 'extension': 'jpg'}, 1357773882: {'path': 'temp/1747194510_1460873_1357773882_c493d19104b6abd73bab7a993f424403.jpg', 'extension': 'jpg'}, 1357773885: {'path': 'temp/1747194510_1460873_1357773885_540f79b16f169a224a54053ce281e296.jpg', 'extension': 'jpg'}, 1357773887: {'path': 'temp/1747194510_1460873_1357773887_9503e2aa40f491c78820c975eb668afb.jpg', 'extension': 'jpg'}, 1357773889: {'path': 'temp/1747194510_1460873_1357773889_cef14f949929ec4db9042e73b119ae03.jpg', 'extension': 'jpg'}, 1357773924: {'path': 'temp/1747194510_1460873_1357773924_054f35714bdaf6969d01b6682b585295.jpg', 'extension': 'jpg'}, 1357773929: {'path': 'temp/1747194510_1460873_1357773929_8a78356e7e6d52763f81916aefe8ba7c.jpg', 'extension': 'jpg'}, 1357773932: {'path': 'temp/1747194510_1460873_1357773932_03f5d54be2afa0f1a78ed728538e9ee5.jpg', 'extension': 'jpg'}, 1357773936: {'path': 'temp/1747194510_1460873_1357773936_0c02e3b4704c10b452d475a49e39d588.jpg', 'extension': 'jpg'}, 1357773938: {'path': 'temp/1747194510_1460873_1357773938_2cb267be05c0dee76bc112778a5bc0e6.jpg', 'extension': 'jpg'}, 1357773969: {'path': 'temp/1747194510_1460873_1357773969_5727b771af6fbb879718b8dcb1eefaa0.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 = 22910220; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22910220 group by h (('07', 25),) 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=22910220 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 (22910220) 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 (22910220) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13052025 22910220 Nombre de photos uploadées : 25 / 23040 (0%) 13052025 22910220 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 13052025 22910220 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1357773846, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/0c3076f8e054110b2538f28297d9ed38.jpg', 'username': None, 'uploaded_at': 1747113367, 'text': 'image_13052025_07_15_03_10152.jpg'}, {'photo_id': 1357773845, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/4a9a4c5d1bd85376d5cd7be5eed22f06.jpg', 'username': None, 'uploaded_at': 1747113367, 'text': 'image_13052025_07_15_13_10138.jpg'}, {'photo_id': 1357773889, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/cef14f949929ec4db9042e73b119ae03.jpg', 'username': None, 'uploaded_at': 1747113427, 'text': 'image_13052025_07_15_54_10142.jpg'}, {'photo_id': 1357773887, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/9503e2aa40f491c78820c975eb668afb.jpg', 'username': None, 'uploaded_at': 1747113427, 'text': 'image_13052025_07_16_03_9138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010256767272949219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22910220, '2025-05-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1799954,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02396416664123535 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= 1799954 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22899562, 'dashboard_result_id': 10541709, '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_P22899562_14-05-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899576, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22900104, 'dashboard_result_id': 10541710, '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_P22900104_14-05-2025_05_34_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900122, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22900286, 'dashboard_result_id': 10541711, '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_P22900286_14-05-2025_05_35_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22900312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900323, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22900644, 'dashboard_result_id': 10541712, '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_P22900644_14-05-2025_05_36_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900656, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22901957, 'dashboard_result_id': 10541713, '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_P22901957_14-05-2025_05_36_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22901965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22901966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22901967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22901968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22901969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22901970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22901971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22901972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22901973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22901974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22901975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22901976, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22902217, 'dashboard_result_id': 10541714, '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_P22902217_14-05-2025_05_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22902227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902233, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22902591, 'dashboard_result_id': 10541715, '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_P22902591_14-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22902592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902603, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22903139, 'dashboard_result_id': 10541716, '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_P22903139_14-05-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903164, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22903622, 'dashboard_result_id': 10541717, '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_P22903622_14-05-2025_05_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903635, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22904132, 'dashboard_result_id': 10541718, '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_P22904132_14-05-2025_05_39_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904183, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22904418, 'dashboard_result_id': 10541719, '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_P22904418_14-05-2025_05_40_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904476, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22904914, 'dashboard_result_id': 10541720, '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_P22904914_14-05-2025_05_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904926, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22905334, 'dashboard_result_id': 10541721, '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_P22905334_14-05-2025_05_41_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22905349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22905356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905360, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22905715, 'dashboard_result_id': 10541722, '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_P22905715_14-05-2025_05_42_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22905716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22905724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905727, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22906057, 'dashboard_result_id': 10541723, '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_P22906057_14-05-2025_05_42_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22906098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22906099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22906100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22906101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22906102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22906103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22906104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22906105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22906106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22906107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22906108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22906109, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22907468, 'dashboard_result_id': 10541724, '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_P22907468_14-05-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907480, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22907619, 'dashboard_result_id': 10541725, '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_P22907619_14-05-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907638, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22907915, 'dashboard_result_id': 10541726, '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_P22907915_14-05-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907942, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22908211, 'dashboard_result_id': 10541727, '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_P22908211_14-05-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908223, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22908544, 'dashboard_result_id': 10541728, '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_P22908544_14-05-2025_05_45_44.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22908551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908562, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22908961, 'dashboard_result_id': 10541729, '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_P22908961_14-05-2025_05_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908980, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22909154, 'dashboard_result_id': 10541730, '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_P22909154_14-05-2025_05_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909169, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22909538, 'dashboard_result_id': 10541731, '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_P22909538_14-05-2025_05_47_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909551, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22909923, 'dashboard_result_id': 10541732, '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_P22909923_14-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22909937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909948, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22910220, 'dashboard_result_id': 10541733, '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_P22910220_13-05-2025_07_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910247, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22910646, 'dashboard_result_id': 10541734, '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_P22910646_13-05-2025_07_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22910666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910677, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22910854, 'dashboard_result_id': 10541735, '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_P22910854_13-05-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910867, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910877, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22911248, 'dashboard_result_id': 10541736, '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_P22911248_13-05-2025_08_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911279, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22911742, 'dashboard_result_id': 10541737, '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_P22911742_13-05-2025_08_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911773, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22912158, 'dashboard_result_id': 10541738, '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_P22912158_13-05-2025_08_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22912215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22912216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22912217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22912218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22912219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22912220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22912221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22912222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22912223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22912224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22912225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22912226, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22913169, 'dashboard_result_id': 10541739, '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_P22913169_14-05-2025_02_20_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22913196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22913197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22913198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22913199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22913200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22913201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22913202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22913203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22913204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22913205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22913206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22913207, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22918939, 'dashboard_result_id': 10541740, '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_P22918939_13-05-2025_14_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22918940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22918941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22918942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22918943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22918944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22918945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22918946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22918947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22918948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22918949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22918950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22918951, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22919106, 'dashboard_result_id': 10541741, '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_P22919106_13-05-2025_14_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919119, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22919523, 'dashboard_result_id': 10541742, '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_P22919523_13-05-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919583, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22920074, 'dashboard_result_id': 10541743, '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_P22920074_13-05-2025_14_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920099, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22920719, 'dashboard_result_id': 10541744, '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_P22920719_13-05-2025_15_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920749, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22921327, 'dashboard_result_id': 10541745, '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_P22921327_13-05-2025_15_17_27.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921362, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22921743, 'dashboard_result_id': 10541746, '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_P22921743_13-05-2025_15_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921779, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22922370, 'dashboard_result_id': 10541747, '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_P22922370_13-05-2025_15_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22922426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922432, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22922836, 'dashboard_result_id': 10541748, '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_P22922836_13-05-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22922875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922886, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22923246, 'dashboard_result_id': 10541749, '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_P22923246_13-05-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22923278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923282, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22923787, 'dashboard_result_id': 10541750, '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_P22923787_13-05-2025_16_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22923802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923813, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22924281, 'dashboard_result_id': 10541751, '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_P22924281_13-05-2025_16_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924355, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22924635, 'dashboard_result_id': 10541752, '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_P22924635_13-05-2025_17_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924649, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22924927, 'dashboard_result_id': 10541753, '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_P22924927_13-05-2025_17_20_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925061, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22925564, 'dashboard_result_id': 10541754, '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_P22925564_13-05-2025_17_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925619, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22926788, 'dashboard_result_id': 10541755, '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_P22926788_13-05-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22926793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22926794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22926795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22926796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22926797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22926798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22926799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22926800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22926801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22926802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22926803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22926804, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22927199, 'dashboard_result_id': 10541756, '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_P22927199_13-05-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22927213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927224, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22927484, 'dashboard_result_id': 10541757, '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_P22927484_13-05-2025_18_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22927500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927510, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22928019, 'dashboard_result_id': 10541758, '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_P22928019_13-05-2025_19_11_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928057, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22928848, 'dashboard_result_id': 10541759, '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_P22928848_13-05-2025_19_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928979, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22929426, 'dashboard_result_id': 10541760, '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_P22929426_13-05-2025_19_47_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22929445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22929446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22929447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22929448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22929449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22929450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22929451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22929452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22929453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22929454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22929455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22929456, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22930305, 'dashboard_result_id': 10541761, '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_P22930305_13-05-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22930311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22930312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22930313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22930314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22930315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22930316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22930317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22930318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22930319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22930320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22930321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22930322, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22931273, 'dashboard_result_id': 10541762, '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_P22931273_13-05-2025_20_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22931298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22931300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931309, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22931913, 'dashboard_result_id': 10541763, '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_P22931913_13-05-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22931964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22931966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931975, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22932946, 'dashboard_result_id': 10541764, '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_P22932946_13-05-2025_21_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22933022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22933023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22933024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22933025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22933026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22933027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22933028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22933029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22933031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22933032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22933033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22933034, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22934532, 'dashboard_result_id': 10541765, '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_P22934532_13-05-2025_21_18_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22934571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22934572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22934573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22934574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22934575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22934576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22934577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22934578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22934579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22934580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22934581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22934582, '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 = 22899562 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': 2844654, 'mtr_portfolio_id': 22899562, 'created_at': datetime.datetime(2025, 5, 14, 5, 34, 28), 'result': '0.04106883006785619', 'result_long': None, 'result_double': None}] Qualite : 0.04106883006785619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22899562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899562_14-05-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22899562 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_P22899562_14-05-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899576, 'pht': 3726}}" where mtr_portfolio_id = 22899562 and dashboard_run_id = 1811684 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`=22899562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541709, 0.04106883006785619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899562_14-05-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899576, '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 = 22900104 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': 2844655, 'mtr_portfolio_id': 22900104, 'created_at': datetime.datetime(2025, 5, 14, 5, 34, 33), 'result': '0.03937042182963135', 'result_long': None, 'result_double': None}] Qualite : 0.03937042182963135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22900104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900104_14-05-2025_05_34_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22900104 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_P22900104_14-05-2025_05_34_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900122, 'pht': 3726}}" where mtr_portfolio_id = 22900104 and dashboard_run_id = 1811684 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`=22900104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541710, 0.03937042182963135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900104_14-05-2025_05_34_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900122, '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 = 22900286 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': 2844656, 'mtr_portfolio_id': 22900286, 'created_at': datetime.datetime(2025, 5, 14, 5, 35, 32), 'result': '0.036326921830582705', 'result_long': None, 'result_double': None}] Qualite : 0.036326921830582705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22900286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900286_14-05-2025_05_35_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22900286 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_P22900286_14-05-2025_05_35_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22900312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900323, 'pht': 3726}}" where mtr_portfolio_id = 22900286 and dashboard_run_id = 1811684 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`=22900286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541711, 0.036326921830582705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900286_14-05-2025_05_35_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22900312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900323, '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 = 22900644 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': 2844657, 'mtr_portfolio_id': 22900644, 'created_at': datetime.datetime(2025, 5, 14, 5, 35, 59), 'result': '0.04967171572715601', 'result_long': None, 'result_double': None}] Qualite : 0.04967171572715601 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22900644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900644_14-05-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22900644 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_P22900644_14-05-2025_05_36_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900656, 'pht': 3726}}" where mtr_portfolio_id = 22900644 and dashboard_run_id = 1811684 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`=22900644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541712, 0.04967171572715601, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900644_14-05-2025_05_36_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900656, '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 = 22901957 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': 2844658, 'mtr_portfolio_id': 22901957, 'created_at': datetime.datetime(2025, 5, 14, 5, 36, 30), 'result': '0.05946221633144105', 'result_long': None, 'result_double': None}] Qualite : 0.05946221633144105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22901957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22901957_14-05-2025_05_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22901957 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_P22901957_14-05-2025_05_36_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22901965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22901966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22901967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22901968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22901969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22901970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22901971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22901972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22901973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22901974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22901975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22901976, 'pht': 3726}}" where mtr_portfolio_id = 22901957 and dashboard_run_id = 1811684 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`=22901957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541713, 0.05946221633144105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22901957_14-05-2025_05_36_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22901965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22901966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22901967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22901968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22901969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22901970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22901971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22901972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22901973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22901974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22901975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22901976, '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 = 22902217 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': 2844659, 'mtr_portfolio_id': 22902217, 'created_at': datetime.datetime(2025, 5, 14, 5, 36, 57), 'result': '0.0194297586093065', 'result_long': None, 'result_double': None}] Qualite : 0.0194297586093065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22902217 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902217_14-05-2025_05_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22902217 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_P22902217_14-05-2025_05_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22902227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902233, 'pht': 3726}}" where mtr_portfolio_id = 22902217 and dashboard_run_id = 1811684 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`=22902217 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541714, 0.0194297586093065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902217_14-05-2025_05_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22902227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902233, '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 = 22902591 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': 2844660, 'mtr_portfolio_id': 22902591, 'created_at': datetime.datetime(2025, 5, 14, 5, 37, 31), 'result': '0.05081724338502262', 'result_long': None, 'result_double': None}] Qualite : 0.05081724338502262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22902591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902591_14-05-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22902591 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_P22902591_14-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22902592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902603, 'pht': 3726}}" where mtr_portfolio_id = 22902591 and dashboard_run_id = 1811684 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`=22902591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541715, 0.05081724338502262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902591_14-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22902592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902603, '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 = 22903139 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': 2844661, 'mtr_portfolio_id': 22903139, 'created_at': datetime.datetime(2025, 5, 14, 5, 37, 58), 'result': '0.07933848652220292', 'result_long': None, 'result_double': None}] Qualite : 0.07933848652220292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22903139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903139_14-05-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22903139 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_P22903139_14-05-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903164, 'pht': 3726}}" where mtr_portfolio_id = 22903139 and dashboard_run_id = 1811684 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`=22903139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541716, 0.07933848652220292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903139_14-05-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903164, '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 = 22903622 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': 2844662, 'mtr_portfolio_id': 22903622, 'created_at': datetime.datetime(2025, 5, 14, 5, 39), 'result': '0.046814487136736235', 'result_long': None, 'result_double': None}] Qualite : 0.046814487136736235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22903622 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903622_14-05-2025_05_39_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22903622 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_P22903622_14-05-2025_05_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903635, 'pht': 3726}}" where mtr_portfolio_id = 22903622 and dashboard_run_id = 1811684 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`=22903622 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541717, 0.046814487136736235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903622_14-05-2025_05_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903635, '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 = 22904132 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': 2844663, 'mtr_portfolio_id': 22904132, 'created_at': datetime.datetime(2025, 5, 14, 5, 39, 31), 'result': '0.04456606341402101', 'result_long': None, 'result_double': None}] Qualite : 0.04456606341402101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22904132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904132_14-05-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22904132 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_P22904132_14-05-2025_05_39_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904183, 'pht': 3726}}" where mtr_portfolio_id = 22904132 and dashboard_run_id = 1811684 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`=22904132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541718, 0.04456606341402101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904132_14-05-2025_05_39_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904183, '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 = 22904418 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': 2844664, 'mtr_portfolio_id': 22904418, 'created_at': datetime.datetime(2025, 5, 14, 5, 40, 2), 'result': '0.062948743904017', 'result_long': None, 'result_double': None}] Qualite : 0.062948743904017 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22904418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904418_14-05-2025_05_40_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22904418 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_P22904418_14-05-2025_05_40_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904476, 'pht': 3726}}" where mtr_portfolio_id = 22904418 and dashboard_run_id = 1811684 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`=22904418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541719, 0.062948743904017, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904418_14-05-2025_05_40_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904476, '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 = 22904914 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': 2844665, 'mtr_portfolio_id': 22904914, 'created_at': datetime.datetime(2025, 5, 14, 5, 40, 58), 'result': '0.049181531733973105', 'result_long': None, 'result_double': None}] Qualite : 0.049181531733973105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22904914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904914_14-05-2025_05_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22904914 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_P22904914_14-05-2025_05_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904926, 'pht': 3726}}" where mtr_portfolio_id = 22904914 and dashboard_run_id = 1811684 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`=22904914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541720, 0.049181531733973105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904914_14-05-2025_05_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904926, '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 = 22905334 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': 2844666, 'mtr_portfolio_id': 22905334, 'created_at': datetime.datetime(2025, 5, 14, 5, 41, 32), 'result': '0.04810133892420996', 'result_long': None, 'result_double': None}] Qualite : 0.04810133892420996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22905334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905334_14-05-2025_05_41_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22905334 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_P22905334_14-05-2025_05_41_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22905349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22905356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905360, 'pht': 3726}}" where mtr_portfolio_id = 22905334 and dashboard_run_id = 1811684 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`=22905334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541721, 0.04810133892420996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905334_14-05-2025_05_41_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22905349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22905356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905360, '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 = 22905715 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': 2844667, 'mtr_portfolio_id': 22905715, 'created_at': datetime.datetime(2025, 5, 14, 5, 41, 59), 'result': '0.04346570671290592', 'result_long': None, 'result_double': None}] Qualite : 0.04346570671290592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22905715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905715_14-05-2025_05_42_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22905715 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_P22905715_14-05-2025_05_42_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22905716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22905724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905727, 'pht': 3726}}" where mtr_portfolio_id = 22905715 and dashboard_run_id = 1811684 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`=22905715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541722, 0.04346570671290592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905715_14-05-2025_05_42_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22905716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22905724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905727, '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 = 22906057 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': 2844668, 'mtr_portfolio_id': 22906057, 'created_at': datetime.datetime(2025, 5, 14, 5, 42, 27), 'result': '0.042477822230897196', 'result_long': None, 'result_double': None}] Qualite : 0.042477822230897196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22906057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22906057_14-05-2025_05_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22906057 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_P22906057_14-05-2025_05_42_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22906098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22906099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22906100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22906101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22906102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22906103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22906104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22906105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22906106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22906107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22906108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22906109, 'pht': 3726}}" where mtr_portfolio_id = 22906057 and dashboard_run_id = 1811684 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`=22906057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541723, 0.042477822230897196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22906057_14-05-2025_05_42_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22906098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22906099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22906100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22906101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22906102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22906103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22906104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22906105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22906106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22906107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22906108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22906109, '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 = 22907468 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': 2844669, 'mtr_portfolio_id': 22907468, 'created_at': datetime.datetime(2025, 5, 14, 5, 43, 29), 'result': '0.04623084546508824', 'result_long': None, 'result_double': None}] Qualite : 0.04623084546508824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22907468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907468_14-05-2025_05_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22907468 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_P22907468_14-05-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907480, 'pht': 3726}}" where mtr_portfolio_id = 22907468 and dashboard_run_id = 1811684 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`=22907468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541724, 0.04623084546508824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907468_14-05-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907480, '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 = 22907619 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': 2844670, 'mtr_portfolio_id': 22907619, 'created_at': datetime.datetime(2025, 5, 14, 5, 44), 'result': '0.036366873924237965', 'result_long': None, 'result_double': None}] Qualite : 0.036366873924237965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22907619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907619_14-05-2025_05_44_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22907619 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_P22907619_14-05-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907638, 'pht': 3726}}" where mtr_portfolio_id = 22907619 and dashboard_run_id = 1811684 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`=22907619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541725, 0.036366873924237965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907619_14-05-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907638, '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 = 22907915 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': 2844671, 'mtr_portfolio_id': 22907915, 'created_at': datetime.datetime(2025, 5, 14, 5, 44, 30), 'result': '0.03743170238871679', 'result_long': None, 'result_double': None}] Qualite : 0.03743170238871679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22907915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907915_14-05-2025_05_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22907915 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_P22907915_14-05-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907942, 'pht': 3726}}" where mtr_portfolio_id = 22907915 and dashboard_run_id = 1811684 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`=22907915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541726, 0.03743170238871679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907915_14-05-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907942, '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 = 22908211 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': 2844672, 'mtr_portfolio_id': 22908211, 'created_at': datetime.datetime(2025, 5, 14, 5, 45, 29), 'result': '0.04931756889555769', 'result_long': None, 'result_double': None}] Qualite : 0.04931756889555769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22908211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908211_14-05-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22908211 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_P22908211_14-05-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908223, 'pht': 3726}}" where mtr_portfolio_id = 22908211 and dashboard_run_id = 1811684 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`=22908211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541727, 0.04931756889555769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908211_14-05-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908223, '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 = 22908544 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': 2844673, 'mtr_portfolio_id': 22908544, 'created_at': datetime.datetime(2025, 5, 14, 5, 45, 41), 'result': '0.04717335506263136', 'result_long': None, 'result_double': None}] Qualite : 0.04717335506263136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22908544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908544_14-05-2025_05_45_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22908544 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_P22908544_14-05-2025_05_45_44.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22908551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908562, 'pht': 3726}}" where mtr_portfolio_id = 22908544 and dashboard_run_id = 1811684 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`=22908544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541728, 0.04717335506263136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908544_14-05-2025_05_45_44.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22908551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908562, '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 = 22908961 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': 2844674, 'mtr_portfolio_id': 22908961, 'created_at': datetime.datetime(2025, 5, 14, 5, 45, 59), 'result': '0.04932665721306211', 'result_long': None, 'result_double': None}] Qualite : 0.04932665721306211 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22908961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908961_14-05-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22908961 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_P22908961_14-05-2025_05_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908980, 'pht': 3726}}" where mtr_portfolio_id = 22908961 and dashboard_run_id = 1811684 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`=22908961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541729, 0.04932665721306211, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908961_14-05-2025_05_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908980, '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 = 22909154 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': 2844675, 'mtr_portfolio_id': 22909154, 'created_at': datetime.datetime(2025, 5, 14, 5, 46, 58), 'result': '0.03702318690834992', 'result_long': None, 'result_double': None}] Qualite : 0.03702318690834992 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22909154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909154_14-05-2025_05_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22909154 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_P22909154_14-05-2025_05_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909169, 'pht': 3726}}" where mtr_portfolio_id = 22909154 and dashboard_run_id = 1811684 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`=22909154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541730, 0.03702318690834992, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909154_14-05-2025_05_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909169, '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 = 22909538 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': 2844676, 'mtr_portfolio_id': 22909538, 'created_at': datetime.datetime(2025, 5, 14, 5, 47, 30), 'result': '0.03239195419738454', 'result_long': None, 'result_double': None}] Qualite : 0.03239195419738454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22909538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909538_14-05-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22909538 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_P22909538_14-05-2025_05_47_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909551, 'pht': 3726}}" where mtr_portfolio_id = 22909538 and dashboard_run_id = 1811684 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`=22909538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541731, 0.03239195419738454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909538_14-05-2025_05_47_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909551, '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 = 22909923 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': 2844677, 'mtr_portfolio_id': 22909923, 'created_at': datetime.datetime(2025, 5, 14, 5, 47, 58), 'result': '0.036541115583184944', 'result_long': None, 'result_double': None}] Qualite : 0.036541115583184944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22909923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909923_14-05-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22909923 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_P22909923_14-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22909937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909948, 'pht': 3726}}" where mtr_portfolio_id = 22909923 and dashboard_run_id = 1811684 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`=22909923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541732, 0.036541115583184944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909923_14-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22909937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909948, '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 = 22910220 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': 2844678, 'mtr_portfolio_id': 22910220, 'created_at': datetime.datetime(2025, 5, 14, 5, 48, 30), 'result': '0.08646769950050912', 'result_long': None, 'result_double': None}] Qualite : 0.08646769950050912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22910220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22910220 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_P22910220_14-05-2025_05_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910247, 'pht': 3726}}" where mtr_portfolio_id = 22910220 and dashboard_run_id = 1811684 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`=22910220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541733, 0.08646769950050912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910247, '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 = 22910646 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22910646 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22910646 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22910646 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22910646 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22910646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910646_13-05-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22910646 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_P22910646_13-05-2025_07_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22910666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910677, 'pht': 3726}}" where mtr_portfolio_id = 22910646 and dashboard_run_id = 1811684 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 = 22910854 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': 2835804, 'mtr_portfolio_id': 22910854, 'created_at': datetime.datetime(2025, 5, 13, 8, 2, 59), 'result': '0.1770410562970307', 'result_long': None, 'result_double': None}] Qualite : 0.1770410562970307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22910854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910854_13-05-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22910854 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_P22910854_13-05-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910867, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910877, 'pht': 3726}}" where mtr_portfolio_id = 22910854 and dashboard_run_id = 1811684 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`=22910854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541735, 0.1770410562970307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910854_13-05-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910867, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910877, '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 = 22911248 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': 2836085, 'mtr_portfolio_id': 22911248, 'created_at': datetime.datetime(2025, 5, 13, 8, 18, 58), 'result': '0.03221790479360664', 'result_long': None, 'result_double': None}] Qualite : 0.03221790479360664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22911248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911248_13-05-2025_08_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22911248 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_P22911248_13-05-2025_08_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911279, 'pht': 3726}}" where mtr_portfolio_id = 22911248 and dashboard_run_id = 1811684 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`=22911248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541736, 0.03221790479360664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911248_13-05-2025_08_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911279, '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 = 22911742 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': 2836348, 'mtr_portfolio_id': 22911742, 'created_at': datetime.datetime(2025, 5, 13, 8, 32, 59), 'result': '0.03284423731617149', 'result_long': None, 'result_double': None}] Qualite : 0.03284423731617149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22911742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911742_13-05-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22911742 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_P22911742_13-05-2025_08_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911773, 'pht': 3726}}" where mtr_portfolio_id = 22911742 and dashboard_run_id = 1811684 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`=22911742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541737, 0.03284423731617149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911742_13-05-2025_08_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911773, '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 = 22912158 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22912158 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22912158 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22912158 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22912158 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22912158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22912158_13-05-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22912158 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_P22912158_13-05-2025_08_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22912215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22912216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22912217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22912218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22912219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22912220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22912221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22912222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22912223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22912224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22912225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22912226, 'pht': 3726}}" where mtr_portfolio_id = 22912158 and dashboard_run_id = 1811684 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 = 22913169 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': 2836964, 'mtr_portfolio_id': 22913169, 'created_at': datetime.datetime(2025, 5, 14, 2, 20), 'result': '0.0588801791945827', 'result_long': None, 'result_double': None}] Qualite : 0.0588801791945827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22913169 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22913169_14-05-2025_02_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22913169 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_P22913169_14-05-2025_02_20_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22913196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22913197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22913198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22913199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22913200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22913201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22913202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22913203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22913204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22913205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22913206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22913207, 'pht': 3726}}" where mtr_portfolio_id = 22913169 and dashboard_run_id = 1811684 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`=22913169 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541739, 0.0588801791945827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22913169_14-05-2025_02_20_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22913196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22913197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22913198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22913199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22913200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22913201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22913202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22913203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22913204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22913205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22913206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22913207, '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 = 22918939 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22918939 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22918939 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22918939 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22918939 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22918939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22918939_13-05-2025_14_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22918939 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_P22918939_13-05-2025_14_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22918940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22918941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22918942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22918943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22918944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22918945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22918946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22918947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22918948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22918949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22918950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22918951, 'pht': 3726}}" where mtr_portfolio_id = 22918939 and dashboard_run_id = 1811684 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 = 22919106 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': 2838589, 'mtr_portfolio_id': 22919106, 'created_at': datetime.datetime(2025, 5, 13, 14, 18, 58), 'result': '0.058039026056175454', 'result_long': None, 'result_double': None}] Qualite : 0.058039026056175454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22919106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919106_13-05-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22919106 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_P22919106_13-05-2025_14_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919119, 'pht': 3726}}" where mtr_portfolio_id = 22919106 and dashboard_run_id = 1811684 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`=22919106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541741, 0.058039026056175454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919106_13-05-2025_14_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919119, '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 = 22919523 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': 2838645, 'mtr_portfolio_id': 22919523, 'created_at': datetime.datetime(2025, 5, 13, 14, 32, 59), 'result': '0.05050350997303986', 'result_long': None, 'result_double': None}] Qualite : 0.05050350997303986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22919523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919523_13-05-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22919523 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_P22919523_13-05-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919583, 'pht': 3726}}" where mtr_portfolio_id = 22919523 and dashboard_run_id = 1811684 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`=22919523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541742, 0.05050350997303986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919523_13-05-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919583, '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 = 22920074 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22920074 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22920074 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920074 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920074 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22920074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920074_13-05-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22920074 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_P22920074_13-05-2025_14_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920099, 'pht': 3726}}" where mtr_portfolio_id = 22920074 and dashboard_run_id = 1811684 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 = 22920719 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22920719 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22920719 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920719 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920719 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22920719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920719_13-05-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22920719 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_P22920719_13-05-2025_15_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920749, 'pht': 3726}}" where mtr_portfolio_id = 22920719 and dashboard_run_id = 1811684 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 = 22921327 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': 2839215, 'mtr_portfolio_id': 22921327, 'created_at': datetime.datetime(2025, 5, 13, 15, 17, 26), 'result': '0.019284808892162043', 'result_long': None, 'result_double': None}] Qualite : 0.019284808892162043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22921327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921327_13-05-2025_15_17_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22921327 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_P22921327_13-05-2025_15_17_27.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921362, 'pht': 3726}}" where mtr_portfolio_id = 22921327 and dashboard_run_id = 1811684 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`=22921327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541745, 0.019284808892162043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921327_13-05-2025_15_17_27.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921362, '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 = 22921743 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22921743 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22921743 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22921743 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22921743 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22921743 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921743_13-05-2025_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22921743 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_P22921743_13-05-2025_15_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921779, 'pht': 3726}}" where mtr_portfolio_id = 22921743 and dashboard_run_id = 1811684 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 = 22922370 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': 2839689, 'mtr_portfolio_id': 22922370, 'created_at': datetime.datetime(2025, 5, 13, 15, 48, 58), 'result': '0.025673818131907864', 'result_long': None, 'result_double': None}] Qualite : 0.025673818131907864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22922370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922370_13-05-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22922370 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_P22922370_13-05-2025_15_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22922426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922432, 'pht': 3726}}" where mtr_portfolio_id = 22922370 and dashboard_run_id = 1811684 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`=22922370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541747, 0.025673818131907864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922370_13-05-2025_15_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22922426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922432, '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 = 22922836 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': 2840053, 'mtr_portfolio_id': 22922836, 'created_at': datetime.datetime(2025, 5, 13, 16, 2, 59), 'result': '0.031312042728025104', 'result_long': None, 'result_double': None}] Qualite : 0.031312042728025104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22922836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922836_13-05-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22922836 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_P22922836_13-05-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22922875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922886, 'pht': 3726}}" where mtr_portfolio_id = 22922836 and dashboard_run_id = 1811684 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`=22922836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541748, 0.031312042728025104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922836_13-05-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22922875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922886, '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 = 22923246 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': 2840293, 'mtr_portfolio_id': 22923246, 'created_at': datetime.datetime(2025, 5, 13, 16, 18, 58), 'result': '0.05972513184063177', 'result_long': None, 'result_double': None}] Qualite : 0.05972513184063177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22923246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923246_13-05-2025_16_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22923246 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_P22923246_13-05-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22923278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923282, 'pht': 3726}}" where mtr_portfolio_id = 22923246 and dashboard_run_id = 1811684 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`=22923246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541749, 0.05972513184063177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923246_13-05-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22923278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923282, '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 = 22923787 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': 2840548, 'mtr_portfolio_id': 22923787, 'created_at': datetime.datetime(2025, 5, 13, 16, 32, 57), 'result': '0.00529953158425376', 'result_long': None, 'result_double': None}] Qualite : 0.00529953158425376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22923787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923787_13-05-2025_16_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22923787 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_P22923787_13-05-2025_16_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22923802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923813, 'pht': 3726}}" where mtr_portfolio_id = 22923787 and dashboard_run_id = 1811684 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`=22923787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541750, 0.00529953158425376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923787_13-05-2025_16_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22923802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923813, '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 = 22924281 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': 2840807, 'mtr_portfolio_id': 22924281, 'created_at': datetime.datetime(2025, 5, 13, 16, 47, 1), 'result': '0.06974966007499285', 'result_long': None, 'result_double': None}] Qualite : 0.06974966007499285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22924281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924281_13-05-2025_16_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22924281 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_P22924281_13-05-2025_16_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924355, 'pht': 3726}}" where mtr_portfolio_id = 22924281 and dashboard_run_id = 1811684 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`=22924281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541751, 0.06974966007499285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924281_13-05-2025_16_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924355, '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 = 22924635 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': 2840930, 'mtr_portfolio_id': 22924635, 'created_at': datetime.datetime(2025, 5, 13, 17, 2, 56), 'result': '0.042979940516125754', 'result_long': None, 'result_double': None}] Qualite : 0.042979940516125754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22924635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924635_13-05-2025_17_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22924635 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_P22924635_13-05-2025_17_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924649, 'pht': 3726}}" where mtr_portfolio_id = 22924635 and dashboard_run_id = 1811684 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`=22924635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541752, 0.042979940516125754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924635_13-05-2025_17_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924649, '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 = 22924927 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': 2841057, 'mtr_portfolio_id': 22924927, 'created_at': datetime.datetime(2025, 5, 13, 17, 20, 57), 'result': '0.05934884020696027', 'result_long': None, 'result_double': None}] Qualite : 0.05934884020696027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22924927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924927_13-05-2025_17_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22924927 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_P22924927_13-05-2025_17_20_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925061, 'pht': 3726}}" where mtr_portfolio_id = 22924927 and dashboard_run_id = 1811684 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`=22924927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541753, 0.05934884020696027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924927_13-05-2025_17_20_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925061, '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 = 22925564 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': 2841288, 'mtr_portfolio_id': 22925564, 'created_at': datetime.datetime(2025, 5, 13, 17, 34, 58), 'result': '0.04344426772568292', 'result_long': None, 'result_double': None}] Qualite : 0.04344426772568292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22925564 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22925564_13-05-2025_17_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22925564 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_P22925564_13-05-2025_17_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925619, 'pht': 3726}}" where mtr_portfolio_id = 22925564 and dashboard_run_id = 1811684 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`=22925564 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541754, 0.04344426772568292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22925564_13-05-2025_17_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925619, '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 = 22926788 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': 2841664, 'mtr_portfolio_id': 22926788, 'created_at': datetime.datetime(2025, 5, 13, 18, 19), 'result': '0.04159338687577479', 'result_long': None, 'result_double': None}] Qualite : 0.04159338687577479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22926788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22926788_13-05-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22926788 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_P22926788_13-05-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22926793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22926794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22926795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22926796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22926797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22926798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22926799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22926800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22926801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22926802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22926803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22926804, 'pht': 3726}}" where mtr_portfolio_id = 22926788 and dashboard_run_id = 1811684 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`=22926788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541755, 0.04159338687577479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22926788_13-05-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22926793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22926794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22926795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22926796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22926797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22926798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22926799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22926800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22926801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22926802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22926803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22926804, '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 = 22927199 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': 2841737, 'mtr_portfolio_id': 22927199, 'created_at': datetime.datetime(2025, 5, 13, 18, 32, 59), 'result': '0.024693898735870072', 'result_long': None, 'result_double': None}] Qualite : 0.024693898735870072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22927199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927199_13-05-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22927199 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_P22927199_13-05-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22927213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927224, 'pht': 3726}}" where mtr_portfolio_id = 22927199 and dashboard_run_id = 1811684 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`=22927199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541756, 0.024693898735870072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927199_13-05-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22927213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927224, '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 = 22927484 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': 2841843, 'mtr_portfolio_id': 22927484, 'created_at': datetime.datetime(2025, 5, 13, 18, 50, 58), 'result': '0.03315686290271676', 'result_long': None, 'result_double': None}] Qualite : 0.03315686290271676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22927484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927484_13-05-2025_18_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22927484 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_P22927484_13-05-2025_18_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22927500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927510, 'pht': 3726}}" where mtr_portfolio_id = 22927484 and dashboard_run_id = 1811684 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`=22927484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541757, 0.03315686290271676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927484_13-05-2025_18_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22927500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927510, '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 = 22928019 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': 2841972, 'mtr_portfolio_id': 22928019, 'created_at': datetime.datetime(2025, 5, 13, 19, 11, 1), 'result': '0.06285982107696879', 'result_long': None, 'result_double': None}] Qualite : 0.06285982107696879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22928019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928019_13-05-2025_19_11_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22928019 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_P22928019_13-05-2025_19_11_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928057, 'pht': 3726}}" where mtr_portfolio_id = 22928019 and dashboard_run_id = 1811684 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`=22928019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541758, 0.06285982107696879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928019_13-05-2025_19_11_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928057, '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 = 22928848 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': 2842276, 'mtr_portfolio_id': 22928848, 'created_at': datetime.datetime(2025, 5, 13, 19, 21, 32), 'result': '0.03325602412022127', 'result_long': None, 'result_double': None}] Qualite : 0.03325602412022127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22928848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928848_13-05-2025_19_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22928848 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_P22928848_13-05-2025_19_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928979, 'pht': 3726}}" where mtr_portfolio_id = 22928848 and dashboard_run_id = 1811684 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`=22928848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541759, 0.03325602412022127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928848_13-05-2025_19_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928979, '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 = 22929426 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': 2842329, 'mtr_portfolio_id': 22929426, 'created_at': datetime.datetime(2025, 5, 13, 19, 47, 29), 'result': '0.04210673561270499', 'result_long': None, 'result_double': None}] Qualite : 0.04210673561270499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22929426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22929426_13-05-2025_19_47_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22929426 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_P22929426_13-05-2025_19_47_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22929445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22929446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22929447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22929448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22929449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22929450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22929451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22929452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22929453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22929454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22929455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22929456, 'pht': 3726}}" where mtr_portfolio_id = 22929426 and dashboard_run_id = 1811684 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`=22929426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541760, 0.04210673561270499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22929426_13-05-2025_19_47_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22929445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22929446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22929447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22929448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22929449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22929450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22929451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22929452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22929453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22929454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22929455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22929456, '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 = 22930305 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': 2842596, 'mtr_portfolio_id': 22930305, 'created_at': datetime.datetime(2025, 5, 13, 20, 2, 59), 'result': '0.037730417914359445', 'result_long': None, 'result_double': None}] Qualite : 0.037730417914359445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22930305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22930305_13-05-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22930305 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_P22930305_13-05-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22930311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22930312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22930313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22930314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22930315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22930316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22930317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22930318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22930319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22930320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22930321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22930322, 'pht': 3726}}" where mtr_portfolio_id = 22930305 and dashboard_run_id = 1811684 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`=22930305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541761, 0.037730417914359445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22930305_13-05-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22930311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22930312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22930313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22930314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22930315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22930316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22930317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22930318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22930319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22930320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22930321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22930322, '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 = 22931273 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': 2842815, 'mtr_portfolio_id': 22931273, 'created_at': datetime.datetime(2025, 5, 13, 20, 17, 1), 'result': '0.06090408036143947', 'result_long': None, 'result_double': None}] Qualite : 0.06090408036143947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22931273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931273_13-05-2025_20_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22931273 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_P22931273_13-05-2025_20_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22931298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22931300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931309, 'pht': 3726}}" where mtr_portfolio_id = 22931273 and dashboard_run_id = 1811684 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`=22931273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541762, 0.06090408036143947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931273_13-05-2025_20_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22931298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22931300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931309, '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 = 22931913 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': 2842924, 'mtr_portfolio_id': 22931913, 'created_at': datetime.datetime(2025, 5, 13, 20, 32, 58), 'result': '0.05588846902239691', 'result_long': None, 'result_double': None}] Qualite : 0.05588846902239691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22931913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931913_13-05-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22931913 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_P22931913_13-05-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22931964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22931966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931975, 'pht': 3726}}" where mtr_portfolio_id = 22931913 and dashboard_run_id = 1811684 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`=22931913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541763, 0.05588846902239691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931913_13-05-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22931964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22931966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931975, '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 = 22932946 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': 2843212, 'mtr_portfolio_id': 22932946, 'created_at': datetime.datetime(2025, 5, 13, 21, 0, 57), 'result': '0.03125508669317031', 'result_long': None, 'result_double': None}] Qualite : 0.03125508669317031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22932946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22932946_13-05-2025_21_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22932946 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_P22932946_13-05-2025_21_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22933022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22933023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22933024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22933025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22933026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22933027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22933028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22933029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22933031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22933032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22933033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22933034, 'pht': 3726}}" where mtr_portfolio_id = 22932946 and dashboard_run_id = 1811684 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`=22932946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541764, 0.03125508669317031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22932946_13-05-2025_21_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22933022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22933023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22933024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22933025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22933026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22933027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22933028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22933029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22933031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22933032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22933033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22933034, '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 = 22934532 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': 2843609, 'mtr_portfolio_id': 22934532, 'created_at': datetime.datetime(2025, 5, 13, 21, 18, 29), 'result': '0.02770984133457104', 'result_long': None, 'result_double': None}] Qualite : 0.02770984133457104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22934532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22934532_13-05-2025_21_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22934532 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_P22934532_13-05-2025_21_18_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22934571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22934572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22934573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22934574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22934575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22934576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22934577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22934578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22934579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22934580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22934581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22934582, 'pht': 3726}}" where mtr_portfolio_id = 22934532 and dashboard_run_id = 1811684 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`=22934532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541765, 0.02770984133457104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22934532_13-05-2025_21_18_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22934571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22934572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22934573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22934574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22934575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22934576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22934577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22934578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22934579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22934580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22934581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22934582, '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 (22899562,22900104,22900286,22900644,22901957,22902217,22902591,22903139,22903622,22904132,22904418,22904914,22905334,22905715,22906057,22907468,22907619,22907915,22908211,22908544,22908961,22909154,22909538,22909923,22910220,22910646,22910854,22911248,22911742,22912158,22913169,22918939,22919106,22919523,22920074,22920719,22921327,22921743,22922370,22922836,22923246,22923787,22924281,22924635,22924927,22925564,22926788,22927199,22927484,22928019,22928848,22929426,22930305,22931273,22931913,22932946,22934532) result : ((1357748357,), (1357748359,), (1357748383,), (1357748387,), (1357748390,), (1357748393,), (1357748417,), (1357748426,), (1357748456,), (1357748482,), (1357748510,), (1357748537,), (1357748834,), (1357748859,), (1357748884,), (1357749309,), (1357749334,), (1357749358,), (1357749383,), (1357749524,), (1357749529,), (1357749565,), (1357749797,), (1357749799,), (1357749801,), (1357749804,), (1357749808,), (1357749809,), (1357750030,), (1357750033,), (1357750036,), (1357750039,), (1357750042,), (1357750149,), (1357750173,), (1357750332,), (1357750335,), (1357750978,), (1357750983,), (1357750985,), (1357750997,), (1357751002,), (1357751003,), (1357751119,), (1357751122,), (1357751124,), (1357751127,), (1357751129,), (1357751153,), (1357751156,), (1357751158,), (1357751160,), (1357751186,), (1357751188,), (1357751190,), (1357751191,), (1357751193,), (1357751213,), (1357751215,), (1357751217,), (1357751218,), (1357751220,), (1357751271,), (1357751249,), (1357751251,), (1357751253,), (1357751255,), (1357751269,), (1357751293,), (1357751295,), (1357751296,), (1357751348,), (1357751350,), (1357751351,), (1357751352,), (1357751354,), (1357751355,), (1357751387,), (1357751405,), (1357751406,), (1357751407,), (1357751439,), (1357751441,), (1357751442,), (1357751639,), (1357751715,), (1357751764,), (1357751777,), (1357751833,), (1357752063,), (1357752068,), (1357752072,), (1357752077,), (1357752080,), (1357752081,), (1357752097,), (1357752099,), (1357752101,), (1357752103,), (1357752105,), (1357752120,), (1357752124,), (1357752125,), (1357752128,), (1357752145,), (1357752149,), (1357752151,), (1357752153,), (1357752156,), (1357752159,), (1357752179,), (1357752182,), (1357752189,), (1357752192,), (1357752204,), (1357752213,), (1357752393,), (1357752404,), (1357752426,), (1357752427,), (1357752435,), (1357752590,), (1357752661,), (1357752672,), (1357752679,), (1357752766,), (1357752793,), (1357752821,), (1357752831,), (1357752863,), (1357752853,), (1357752857,), (1357752860,), (1357752885,), (1357752888,), (1357752890,), (1357752928,), (1357752932,), (1357752933,), (1357752958,), (1357752960,), (1357752961,), (1357752962,), (1357752963,), (1357752982,), (1357752985,), (1357752987,), (1357753014,), (1357753017,), (1357753019,), (1357753021,), (1357753025,), (1357753043,), (1357753045,), (1357753046,), (1357753048,), (1357753072,), (1357753076,), (1357753079,), (1357753082,), (1357753086,), (1357753098,), (1357753101,), (1357753103,), (1357753105,), (1357753107,), (1357753125,), (1357753128,), (1357753174,), (1357753181,), (1357753185,), (1357753186,), (1357753188,), (1357753191,), (1357753202,), (1357753206,), (1357753209,), (1357753212,), (1357753215,), (1357753219,), (1357753248,), (1357753251,), (1357753254,), (1357753279,), (1357753307,), (1357753324,), (1357753328,), (1357753336,), (1357753366,), (1357753394,), (1357753524,), (1357753544,), (1357753547,), (1357753550,), (1357753569,), (1357753707,), (1357753629,), (1357753657,), (1357753681,), (1357753741,), (1357753744,), (1357753746,), (1357753748,), (1357753771,), (1357753775,), (1357753778,), (1357753781,), (1357753797,), (1357753800,), (1357753803,), (1357753805,), (1357753807,), (1357753811,), (1357753839,), (1357753842,), (1357753845,), (1357753847,), (1357753865,), (1357753868,), (1357753870,), (1357753872,), (1357753874,), (1357753932,), (1357753963,), (1357753987,), (1357754005,), (1357754033,), (1357754034,), (1357754036,), (1357754038,), (1357754234,), (1357754236,), (1357754238,), (1357754349,), (1357754352,), (1357754359,), (1357754362,), (1357754364,), (1357754393,), (1357754396,), (1357754398,), (1357754400,), (1357754402,), (1357754420,), (1357754423,), (1357754425,), (1357754427,), (1357754430,), (1357754447,), (1357754450,), (1357754836,), (1357754841,), (1357754852,), (1357754884,), (1357754912,), (1357754923,), (1357755038,), (1357756988,), (1357757068,), (1357757099,), (1357757103,), (1357757105,), (1357757106,), (1357757234,), (1357757236,), (1357757237,), (1357757238,), (1357757263,), (1357757264,), (1357757266,), (1357757267,), (1357757269,), (1357757270,), (1357757293,), (1357757294,), (1357757295,), (1357757296,), (1357757298,), (1357757325,), (1357757333,), (1357757335,), (1357757336,), (1357757338,), (1357757359,), (1357757361,), (1357757363,), (1357757365,), (1357757368,), (1357757370,), (1357757384,), (1357757387,), (1357757390,), (1357757392,), (1357757414,), (1357757416,), (1357757417,), (1357757421,), (1357757422,), (1357757424,), (1357757447,), (1357757449,), (1357757451,), (1357757453,), (1357757467,), (1357757470,), (1357757485,), (1357757488,), (1357757489,), (1357757504,), (1357757506,), (1357757508,), (1357757541,), (1357757556,), (1357757583,), (1357757608,), (1357757638,), (1357757666,), (1357757734,), (1357757736,), (1357757739,), (1357757741,), (1357757743,), (1357757746,), (1357757764,), (1357757761,), (1357757785,), (1357757788,), (1357757791,), (1357757794,), (1357757797,), (1357757799,), (1357757880,), (1357757893,), (1357757895,), (1357757896,), (1357757897,), (1357757909,), (1357758011,), (1357758013,), (1357758014,), (1357758016,), (1357758060,), (1357758068,), (1357758070,), (1357758088,), (1357758152,), (1357758452,), (1357758454,), (1357758455,), (1357758574,), (1357758575,), (1357758576,), (1357758577,), (1357758579,), (1357758598,), (1357758600,), (1357758601,), (1357758625,), (1357758628,), (1357758630,), (1357758632,), (1357758636,), (1357758638,), (1357758656,), (1357758658,), (1357758660,), (1357758662,), (1357758665,), (1357758667,), (1357758698,), (1357758702,), (1357758704,), (1357758737,), (1357758739,), (1357758741,), (1357758742,), (1357758744,), (1357758746,), (1357758766,), (1357758768,), (1357758769,), (1357758826,), (1357758860,), (1357758892,), (1357758980,), (1357758971,), (1357758973,), (1357758975,), (1357758977,), (1357758999,), (1357759002,), (1357759005,), (1357759007,), (1357759010,), (1357759022,), (1357759024,), (1357759027,), (1357759063,), (1357759065,), (1357759068,), (1357759070,), (1357759072,), (1357759076,), (1357759090,), (1357759092,), (1357759098,), (1357759125,), (1357759149,), (1357759425,), (1357759439,), (1357759441,), (1357759465,), (1357759468,), (1357759470,), (1357759473,), (1357759476,), (1357759478,), (1357759493,), (1357759495,), (1357759497,), (1357759499,), (1357759502,), (1357759517,), (1357759521,), (1357759523,), (1357759526,), (1357759552,), (1357759555,), (1357759560,), (1357759569,), (1357759575,), (1357759578,), (1357759673,), (1357759676,), (1357759678,), (1357759680,), (1357759681,), (1357759724,), (1357759726,), (1357759727,), (1357759728,), (1357759749,), (1357759752,), (1357759753,), (1357759755,), (1357759756,), (1357759757,), (1357759775,), (1357759776,), (1357759777,), (1357759797,), (1357759799,), (1357759801,), (1357759802,), (1357759803,), (1357759806,), (1357759840,), (1357759833,), (1357759835,), (1357759837,), (1357759838,), (1357759864,), (1357759866,), (1357759868,), (1357759870,), (1357759872,), (1357759895,), (1357759898,), (1357759901,), (1357759905,), (1357759909,), (1357759911,), (1357759928,), (1357759930,), (1357759932,), (1357759934,), (1357759976,), (1357759979,), (1357759986,), (1357760011,), (1357760038,), (1357760147,), (1357760149,), (1357760151,), (1357760152,), (1357760153,), (1357760176,), (1357760177,), (1357760178,), (1357760179,), (1357760181,), (1357760183,), (1357760213,), (1357760215,), (1357760217,), (1357760219,), (1357760244,), (1357760246,), (1357760247,), (1357760248,), (1357760250,), (1357760251,), (1357760275,), (1357760278,), (1357760280,), (1357760300,), (1357760303,), (1357760305,), (1357760307,), (1357760327,), (1357760354,), (1357760358,), (1357760360,), (1357760362,), (1357760369,), (1357760487,), (1357760494,), (1357760496,), (1357760499,), (1357760506,), (1357760514,), (1357760597,), (1357760599,), (1357760601,), (1357760723,), (1357760711,), (1357760714,), (1357760715,), (1357760717,), (1357760719,), (1357760754,), (1357760757,), (1357760760,), (1357760785,), (1357760788,), (1357760790,), (1357760792,), (1357760813,), (1357760817,), (1357760819,), (1357760821,), (1357760823,), (1357760841,), (1357760843,), (1357760845,), (1357760847,), (1357760875,), (1357760879,), (1357760881,), (1357760882,), (1357760883,), (1357760912,), (1357760914,), (1357760916,), (1357760918,), (1357760921,), (1357760923,), (1357760948,), (1357760951,), (1357760983,), (1357760985,), (1357760987,), (1357760989,), (1357760991,), (1357761017,), (1357761021,), (1357761024,), (1357761026,), (1357761088,), (1357761091,), (1357761093,), (1357761094,), (1357761133,), (1357761135,), (1357761136,), (1357761137,), (1357761139,), (1357761164,), (1357761166,), (1357761167,), (1357761168,), (1357761170,), (1357761193,), (1357761197,), (1357761199,), (1357761201,), (1357761221,), (1357761494,), (1357761491,), (1357761492,), (1357761493,), (1357761523,), (1357761524,), (1357761525,), (1357761526,), (1357761528,), (1357761530,), (1357761558,), (1357761561,), (1357761717,), (1357761774,), (1357761767,), (1357761771,), (1357761802,), (1357761804,), (1357761806,), (1357761809,), (1357761810,), (1357761819,), (1357761821,), (1357761845,), (1357761849,), (1357761851,), (1357761853,), (1357761872,), (1357761908,), (1357761910,), (1357761913,), (1357761915,), (1357761917,), (1357761939,), (1357761942,), (1357761945,), (1357761976,), (1357761979,), (1357761981,), (1357762027,), (1357762029,), (1357762031,), (1357762081,), (1357762084,), (1357762086,), (1357762087,), (1357762089,), (1357762091,), (1357762133,), (1357762134,), (1357762135,), (1357762136,), (1357762137,), (1357762155,), (1357762157,), (1357762159,), (1357762161,), (1357762164,), (1357762185,), (1357762188,), (1357762190,), (1357762240,), (1357762243,), (1357762246,), (1357762248,), (1357762249,), (1357762252,), (1357762368,), (1357762276,), (1357762318,), (1357762450,), (1357762469,), (1357762471,), (1357762472,), (1357762474,), (1357762478,), (1357762500,), (1357762536,), (1357762557,), (1357762594,), (1357762596,), (1357762598,), (1357762599,), (1357762620,), (1357762623,), (1357762626,), (1357762676,), (1357762678,), (1357762679,), (1357762711,), (1357762737,), (1357762743,), (1357762783,), (1357762784,), (1357762785,), (1357762786,), (1357762788,), (1357762807,), (1357762809,), (1357762811,), (1357762838,), (1357762840,), (1357762841,), (1357762864,), (1357762867,), (1357762869,), (1357762871,), (1357762874,), (1357762900,), (1357762901,), (1357762904,), (1357762915,), (1357762917,), (1357762933,), (1357762936,), (1357762938,), (1357762940,), (1357762966,), (1357762968,), (1357762969,), (1357762986,), (1357762988,), (1357762991,), (1357762993,), (1357762996,), (1357763013,), (1357763016,), (1357763019,), (1357763022,), (1357763024,), (1357763026,), (1357763089,), (1357763076,), (1357763079,), (1357763081,), (1357763165,), (1357763168,), (1357763170,), (1357763211,), (1357763221,), (1357763224,), (1357763285,), (1357763287,), (1357763289,), (1357763291,), (1357763294,), (1357763338,), (1357763341,), (1357763343,), (1357763371,), (1357763374,), (1357763376,), (1357763378,), (1357763381,), (1357763439,), (1357763442,), (1357763445,), (1357763448,), (1357763452,), (1357763471,), (1357763475,), (1357763476,), (1357763513,), (1357763514,), (1357763515,), (1357763517,), (1357763518,), (1357763520,), (1357763542,), (1357763544,), (1357763545,), (1357763570,), (1357763572,), (1357763573,), (1357763622,), (1357763624,), (1357763625,), (1357763626,), (1357763627,), (1357763629,), (1357763665,), (1357763666,), (1357763667,), (1357763668,), (1357763669,), (1357763691,), (1357763693,), (1357763714,), (1357763715,), (1357763716,), (1357763718,), (1357763720,), (1357763723,), (1357763745,), (1357763748,), (1357763749,), (1357763750,), (1357763785,), (1357763780,), (1357763783,), (1357763819,), (1357763821,), (1357763823,), (1357763824,), (1357763825,), (1357763849,), (1357763851,), (1357763852,), (1357763853,), (1357763855,), (1357763856,), (1357763876,), (1357763878,), (1357763879,), (1357763880,), (1357763910,), (1357763913,), (1357763915,), (1357763917,), (1357763920,), (1357763922,), (1357763973,), (1357763976,), (1357763978,), (1357763980,), (1357763982,), (1357764016,), (1357764020,), (1357764021,), (1357764035,), (1357764044,), (1357764047,), (1357764052,), (1357764054,), (1357764056,), (1357764068,), (1357764071,), (1357764072,), (1357764073,), (1357764075,), (1357764099,), (1357764101,), (1357764102,), (1357764125,), (1357764131,), (1357764133,), (1357764135,), (1357764137,), (1357764141,), (1357764166,), (1357764169,), (1357764171,), (1357764173,), (1357764197,), (1357764208,), (1357764211,), (1357764213,), (1357764215,), (1357764237,), (1357764241,), (1357764245,), (1357764250,), (1357764254,), (1357764258,), (1357764332,), (1357764320,), (1357764323,), (1357764326,), (1357764330,), (1357764355,), (1357764357,), (1357764359,), (1357764361,), (1357764364,), (1357764391,), (1357764398,), (1357764402,), (1357764403,), (1357764455,), (1357764458,), (1357764490,), (1357764496,), (1357764503,), (1357764505,), (1357764508,), (1357764532,), (1357764534,), (1357764536,), (1357764537,), (1357764539,), (1357764540,), (1357764572,), (1357764575,), (1357764578,), (1357764580,), (1357764600,), (1357764601,), (1357764602,), (1357764603,), (1357764604,), (1357764627,), (1357764629,), (1357764630,), (1357764682,), (1357764697,), (1357764703,), (1357764735,), (1357766841,), (1357766838,), (1357766980,), (1357767005,), (1357767007,), (1357767032,), (1357767035,), (1357767037,), (1357767040,), (1357767067,), (1357767070,), (1357767073,), (1357767143,), (1357767146,), (1357767149,), (1357767150,), (1357767167,), (1357767169,), (1357767170,), (1357767171,), (1357767173,), (1357767200,), (1357767202,), (1357767205,), (1357767207,), (1357767230,), (1357767232,), (1357767234,), (1357767269,), (1357767260,), (1357767263,), (1357767265,), (1357767267,), (1357767288,), (1357767290,), (1357767291,), (1357767316,), (1357767318,), (1357767320,), (1357767323,), (1357767326,), (1357767328,), (1357767346,), (1357767349,), (1357767350,), (1357767351,), (1357767353,), (1357767355,), (1357767379,), (1357767385,), (1357767387,), (1357767389,), (1357767415,), (1357767418,), (1357767419,), (1357767420,), (1357767422,), (1357767446,), (1357767450,), (1357767453,), (1357767455,), (1357767458,), (1357767460,), (1357767479,), (1357767481,), (1357767482,), (1357767484,), (1357767486,), (1357767502,), (1357767503,), (1357767505,), (1357767507,), (1357767529,), (1357767531,), (1357767532,), (1357767533,), (1357767535,), (1357767561,), (1357767564,), (1357767565,), (1357767567,), (1357767570,), (1357767572,), (1357767606,), (1357767609,), (1357767611,), (1357767674,), (1357767677,), (1357767680,), (1357767682,), (1357767685,), (1357767689,), (1357767721,), (1357767723,), (1357767727,), (1357767731,), (1357767756,), (1357767760,), (1357767793,), (1357767799,), (1357767802,), (1357767805,), (1357767853,), (1357767835,), (1357767838,), (1357767842,), (1357767845,), (1357767849,), (1357767872,), (1357767874,), (1357767875,), (1357767899,), (1357767901,), (1357767948,), (1357767950,), (1357767951,), (1357767952,), (1357767980,), (1357767982,), (1357767984,), (1357767985,), (1357767987,), (1357767988,), (1357768012,), (1357768014,), (1357768015,), (1357768016,), (1357768018,), (1357768045,), (1357768047,), (1357768049,), (1357768051,), (1357768079,), (1357768081,), (1357768082,), (1357768083,), (1357768084,), (1357768086,), (1357768111,), (1357768113,), (1357768114,), (1357768141,), (1357768142,), (1357768143,), (1357768144,), (1357768146,), (1357768148,), (1357768172,), (1357768174,), (1357768175,), (1357768176,), (1357768178,), (1357768180,), (1357768204,), (1357768208,), (1357768211,), (1357768237,), (1357768240,), (1357768242,), (1357768244,), (1357768247,), (1357768249,), (1357768270,), (1357768272,), (1357768274,), (1357768276,), (1357768340,), (1357768345,), (1357768347,), (1357768361,), (1357768365,), (1357768413,), (1357768389,), (1357768401,), (1357768407,), (1357768410,), (1357768449,), (1357768451,), (1357768453,), (1357768456,), (1357768458,), (1357768483,), (1357768485,), (1357769168,), (1357769170,), (1357769171,), (1357769179,), (1357769239,), (1357769241,), (1357769242,), (1357769243,), (1357769276,), (1357769278,), (1357769281,), (1357769283,), (1357769286,), (1357769309,), (1357769311,), (1357769312,), (1357769313,), (1357769347,), (1357769349,), (1357769351,), (1357769354,), (1357769357,), (1357769361,), (1357769384,), (1357769386,), (1357769388,), (1357769390,), (1357769414,), (1357769415,), (1357769416,), (1357769417,), (1357769441,), (1357769443,), (1357769444,), (1357769445,), (1357769447,), (1357769472,), (1357769474,), (1357769475,), (1357769476,), (1357769478,), (1357769480,), (1357769509,), (1357769511,), (1357769512,), (1357769513,), (1357769547,), (1357769552,), (1357769555,), (1357769558,), (1357769562,), (1357769567,), (1357769610,), (1357769601,), (1357769603,), (1357769605,), (1357769607,), (1357769633,), (1357769635,), (1357769636,), (1357769638,), (1357769640,), (1357769653,), (1357769656,), (1357769659,), (1357769660,), (1357769662,), (1357769665,), (1357769688,), (1357769698,), (1357769699,), (1357769701,), (1357769704,), (1357769708,), (1357769724,), (1357769728,), (1357769730,), (1357769752,), (1357769755,), (1357769756,), (1357769758,), (1357769761,), (1357769763,), (1357769780,), (1357769783,), (1357769785,), (1357769787,), (1357769807,), (1357769810,), (1357769815,), (1357769822,), (1357769829,), (1357769835,), (1357769856,), (1357769857,), (1357769858,), (1357769859,), (1357769861,), (1357769880,), (1357769883,), (1357769886,), (1357769888,), (1357769891,), (1357769908,), (1357769911,), (1357769913,), (1357769915,), (1357769918,), (1357769921,), (1357769954,), (1357769958,), (1357769960,), (1357769981,), (1357769984,), (1357769986,), (1357769989,), (1357769992,), (1357769994,), (1357770007,), (1357770012,), (1357770022,), (1357770024,), (1357770027,), (1357770047,), (1357770051,), (1357770053,), (1357770057,), (1357770090,), (1357770078,), (1357770083,), (1357770084,), (1357770087,), (1357770107,), (1357770109,), (1357770110,), (1357770111,), (1357770113,), (1357770144,), (1357770147,), (1357770149,), (1357770151,), (1357770172,), (1357770174,), (1357770175,), (1357770176,), (1357770178,), (1357770180,), (1357770200,), (1357770202,), (1357770204,), (1357770205,), (1357770207,), (1357770227,), (1357770229,), (1357770230,), (1357770398,), (1357770401,), (1357770403,), (1357770405,), (1357770407,), (1357770411,), (1357770444,), (1357770448,), (1357770450,), (1357770473,), (1357770476,), (1357770477,), (1357770478,), (1357770507,), (1357770510,), (1357770512,), (1357770513,), (1357770556,), (1357770547,), (1357770550,), (1357770552,), (1357770553,), (1357770555,), (1357770588,), (1357770590,), (1357770609,), (1357770611,), (1357770701,), (1357770727,), (1357770728,), (1357770759,), (1357770761,), (1357770763,), (1357770766,), (1357770770,), (1357770773,), (1357770795,), (1357770797,), (1357770800,), (1357770802,), (1357770806,), (1357770830,), (1357770833,), (1357770835,), (1357770837,), (1357770841,), (1357770987,), (1357771055,), (1357771176,), (1357771188,), (1357771395,), (1357771463,), (1357771527,), (1357771538,), (1357771540,), (1357771546,), (1357771572,), (1357771580,), (1357771581,), (1357771584,), (1357771591,), (1357771620,), (1357771628,), (1357771629,), (1357771692,), (1357771694,), (1357771695,), (1357771696,), (1357771699,), (1357771702,), (1357771764,), (1357771765,), (1357771768,), (1357771769,), (1357771807,), (1357771809,), (1357771810,), (1357771811,), (1357771836,), (1357771837,), (1357771866,), (1357771868,), (1357771870,), (1357771871,), (1357771872,), (1357771878,), (1357771911,), (1357771908,), (1357771909,), (1357771910,), (1357771935,), (1357771937,), (1357771938,), (1357771939,), (1357771968,), (1357771971,), (1357771972,), (1357771973,), (1357771976,), (1357771977,), (1357772006,), (1357772008,), (1357772009,), (1357772010,), (1357772035,), (1357772037,), (1357772038,), (1357772041,), (1357772042,), (1357772047,), (1357772091,), (1357772093,), (1357772096,), (1357772098,), (1357772099,), (1357772129,), (1357772131,), (1357772132,), (1357772133,), (1357772159,), (1357772160,), (1357772161,), (1357772162,), (1357772164,), (1357772166,), (1357772196,), (1357772198,), (1357772199,), (1357772200,), (1357772237,), (1357772239,), (1357772241,), (1357772246,), (1357772323,), (1357772326,), (1357772327,), (1357772328,), (1357772353,), (1357772355,), (1357772356,), (1357772357,), (1357772358,), (1357772384,), (1357772431,), (1357772437,), (1357772453,), (1357772459,), (1357772516,), (1357772502,), (1357772506,), (1357772509,), (1357772513,), (1357772550,), (1357772554,), (1357772557,), (1357772559,), (1357772564,), (1357773205,), (1357773211,), (1357773214,), (1357773218,), (1357773269,), (1357773271,), (1357773274,), (1357773277,), (1357773336,), (1357773341,), (1357773380,), (1357773384,), (1357773386,), (1357773389,), (1357773392,), (1357773428,), (1357773432,), (1357773436,), (1357773440,), (1357773445,), (1357773473,), (1357773477,), (1357773480,), (1357773516,), (1357773521,), (1357773524,), (1357773528,), (1357773532,), (1357773534,), (1357773560,), (1357773563,), (1357773566,), (1357773570,), (1357773602,), (1357773606,), (1357773610,), (1357773648,), (1357773651,), (1357773654,), (1357773657,), (1357773689,), (1357773692,), (1357773742,), (1357773744,), (1357773746,), (1357773748,), (1357773788,), (1357773791,), (1357773797,), (1357773801,), (1357773805,), (1357773810,), (1357773848,), (1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,), (1357775139,), (1357775143,), (1357775146,), (1357775184,), (1357775186,), (1357775188,), (1357775190,), (1357775226,), (1357775229,), (1357775232,), (1357775269,), (1357775271,), (1357775272,), (1357775273,), (1357775306,), (1357775309,), (1357775312,), (1357775348,), (1357775351,), (1357775354,), (1357775356,), (1357775359,), (1357775386,), (1357775388,), (1357775391,), (1357775394,), (1357775426,), (1357775428,), (1357775430,), (1357775468,), (1357775471,), (1357775475,), (1357775517,), (1357775513,), (1357775515,), (1357775550,), (1357775553,), (1357775556,), (1357775559,), (1357775589,), (1357775592,), (1357775594,), (1357775632,), (1357775636,), (1357775678,), (1357775681,), (1357775684,), (1357775688,), (1357775692,), (1357775699,), (1357775701,), (1357775705,), (1357775709,), (1357775710,), (1357775714,), (1357775715,), (1357775718,), (1357775720,), (1357775724,), (1357775734,), (1357775737,), (1357775781,), (1357775783,), (1357775785,), (1357775787,), (1357775789,), (1357775818,), (1357775820,), (1357775861,), (1357775906,), (1357775911,), (1357775918,), (1357775966,), (1357775968,), (1357776009,), (1357776013,), (1357776059,), (1357776061,), (1357776062,), (1357776063,), (1357776065,), (1357776118,), (1357776123,), (1357776129,), (1357776137,), (1357776142,), (1357776187,), (1357776170,), (1357776173,), (1357776177,), (1357776182,), (1357776222,), (1357776244,), (1357776415,), (1357776417,), (1357776419,), (1357776421,), (1357776424,), (1357776459,), (1357776460,), (1357776463,), (1357776466,), (1357776562,), (1357776604,), (1357776844,), (1357776870,), (1357776898,), (1357776924,), (1357776931,), (1357777066,), (1357777078,), (1357777104,), (1357777142,), (1357777200,), (1357777238,), (1357777372,), (1357777374,), (1357777399,), (1357777425,), (1357777453,), (1357777484,), (1357777598,), (1357777601,), (1357777603,), (1357777605,), (1357777649,), (1357777652,), (1357777655,), (1357777657,), (1357777661,), (1357777663,), (1357777703,), (1357777704,), (1357777782,), (1357777790,), (1357777825,), (1357777828,), (1357777835,), (1357777859,), (1357777873,), (1357777881,), (1357777974,), (1357777975,), (1357777977,), (1357777979,), (1357777982,), (1357777986,), (1357778017,), (1357778021,), (1357778026,), (1357778106,), (1357778082,), (1357778090,), (1357778094,), (1357778098,), (1357778102,), (1357778241,), (1357778248,), (1357778267,), (1357778269,), (1357778380,), (1357778384,), (1357778388,), (1357778527,), (1357778532,), (1357778534,), (1357778537,), (1357778540,), (1357778575,), (1357778577,), (1357778580,), (1357778582,), (1357778618,), (1357778620,), (1357778624,), (1357778627,), (1357778660,), (1357778663,), (1357778665,), (1357778712,), (1357778713,), (1357778715,), (1357778717,), (1357778760,), (1357778766,), (1357778805,), (1357778809,), (1357778812,), (1357778814,), (1357778816,), (1357778819,), (1357778850,), (1357778853,), (1357778856,), (1357778857,), (1357778890,), (1357778893,), (1357778895,), (1357778945,), (1357778949,), (1357778976,), (1357779000,), (1357779043,), (1357779046,), (1357779047,), (1357779078,), (1357779084,), (1357779088,), (1357779093,), (1357779135,), (1357779126,), (1357779129,), (1357779132,), (1357779227,), (1357779254,), (1357779276,), (1357779283,), (1357779304,), (1357779532,), (1357779708,), (1357779710,), (1357779777,), (1357779779,), (1357779932,), (1357779956,), (1357780168,), (1357780208,), (1357780230,), (1357780256,), (1357780370,), (1357780372,), (1357780433,), (1357780445,), (1357780513,), (1357780521,), (1357780576,), (1357780577,), (1357780749,), (1357780759,), (1357780811,), (1357780971,), (1357781222,), (1357781644,), (1357781672,), (1357781698,), (1357781939,), (1357781966,), (1357781994,), (1357782126,), (1357782127,), (1357782128,), (1357782258,), (1357782286,), (1357782315,), (1357782588,), (1357782524,), (1357782557,), (1357782579,), (1357782585,), (1357782769,), (1357782913,), (1357782962,), (1357783004,), (1357783194,), (1357783199,), (1357783205,), (1357783237,), (1357783240,), (1357783244,), (1357783248,), (1357783280,), (1357783283,), (1357783286,), (1357783289,), (1357783327,), (1357783332,), (1357783336,), (1357783339,), (1357783342,), (1357783546,), (1357783594,), (1357783636,), (1357783664,), (1357783696,), (1357783906,), (1357783934,), (1357783961,), (1357783987,), (1357783999,), (1357784061,), (1357784087,), (1357784112,), (1357784136,), (1357784160,), (1357784205,), (1357784285,), (1357784289,), (1357784292,), (1357784327,), (1357784331,), (1357784334,), (1357784336,), (1357784359,), (1357784387,), (1357784594,), (1357784630,), (1357784681,), (1357784723,), (1357785037,), (1357785041,), (1357785045,), (1357785058,), (1357785674,), (1357785778,), (1357834890,), (1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,), (1357835561,), (1357835590,), (1357836008,), (1357836308,), (1357836745,), (1357836774,), (1357837188,), (1357837206,), (1357837236,), (1357837294,), (1357837321,), (1357837337,), (1357837526,), (1357837554,), (1357837583,), (1357837590,), (1357837592,), (1357837708,), (1357837711,), (1357837713,), (1357837715,), (1357837719,), (1357837721,), (1357837778,), (1357837782,), (1357837939,), (1357837942,), (1357837956,), (1357837982,), (1357838305,), (1357838335,), (1357838342,), (1357838346,), (1357838366,), (1357838393,), (1357838494,), (1357838498,), (1357838501,), (1357838506,), (1357838509,), (1357838538,), (1357838541,), (1357838542,), (1357838545,), (1357838548,), (1357838552,), (1357838627,), (1357838661,), (1357838691,), (1357838720,), (1357839295,), (1357839266,), (1357839282,), (1357839287,), (1357839289,), (1357839293,), (1357839576,), (1357839580,), (1357839581,), (1357839622,), (1357839911,), (1357839915,), (1357839941,), (1357839946,), (1357839950,), (1357839954,), (1357839989,), (1357839991,), (1357839993,), (1357839996,), (1357840102,), (1357840149,), (1357840207,), (1357840267,), (1357840297,), (1357840331,), (1357840775,), (1357840841,), (1357840894,), (1357841220,), (1357841227,), (1357841250,), (1357841294,), (1357841875,), (1357841918,), (1357841944,), (1357841970,), (1357842454,), (1357842465,), (1357842491,), (1357842493,), (1357842498,), (1357842521,), (1357842583,), (1357842687,), (1357842715,), (1357842747,), (1357842777,), (1357842807,), (1357842913,), (1357842929,), (1357842937,), (1357842942,), (1357843007,), (1357843012,), (1357843016,), (1357843019,), (1357843024,), (1357843028,), (1357843061,), (1357843068,), (1357843071,), (1357843074,), (1357843147,), (1357843151,), (1357843156,), (1357843159,), (1357843163,), (1357843167,), (1357843195,), (1357843218,), (1357843224,), (1357843227,), (1357843236,), (1357843298,), (1357843284,), (1357843287,), (1357843291,), (1357843294,), (1357843336,), (1357843338,), (1357843340,), (1357843344,), (1357843383,), (1357843387,), (1357843389,), (1357843391,), (1357843393,), (1357843396,), (1357843497,), (1357843610,), (1357843638,), (1357843675,), (1357843735,), (1357844016,), (1357844035,), (1357844054,), (1357844064,), (1357844077,), (1357844259,), (1357844289,), (1357844316,), (1357844346,), (1357844378,), (1357844410,), (1357844616,), (1357844668,), (1357844705,), (1357844711,), (1357844715,), (1357844876,), (1357844916,), (1357844947,), (1357844986,), (1357845041,), (1357845435,), (1357845438,), (1357845441,), (1357845445,), (1357845454,), (1357845482,), (1357845486,), (1357845490,), (1357845494,), (1357845499,), (1357845538,), (1357845540,), (1357845870,), (1357846378,), (1357847048,), (1357847425,), (1357847432,), (1357847436,), (1357847776,), (1357847805,), (1357847834,), (1357847867,), (1357847893,), (1357847921,), (1357847981,), (1357847985,), (1357848003,), (1357848472,), (1357848552,), (1357848594,), (1357849016,), (1357849073,), (1357849092,), (1357849105,), (1357849359,), (1357849375,), (1357849384,), (1357849407,), (1357849431,), (1357849444,), (1357849518,), (1357849521,), (1357849525,), (1357849560,), (1357849564,), (1357849568,), (1357849603,), (1357849682,), (1357849684,), (1357849688,), (1357849689,), (1357849735,), (1357849742,), (1357849750,), (1357849758,), (1357849766,), (1357849775,), (1357849841,), (1357849817,), (1357849824,), (1357849830,), (1357849835,), (1357849868,), (1357849873,), (1357849889,), (1357849916,), (1357849940,), (1357850068,), (1357850071,), (1357850076,), (1357850081,), (1357850085,), (1357850121,), (1357850123,), (1357850126,), (1357850130,), (1357850166,), (1357850170,), (1357850173,), (1357850178,), (1357850183,), (1357850392,), (1357850421,), (1357850448,), (1357850478,), (1357850506,), (1357850536,), (1357850801,), (1357850826,), (1357850860,), (1357850913,), (1357850965,), (1357851386,), (1357851429,), (1357851457,), (1357851500,), (1357851539,), (1357851568,), (1357851976,), (1357852026,), (1357852077,), (1357852765,), (1357852795,), (1357852821,), (1357852855,), (1357852870,), (1357852887,), (1357853305,), (1357853312,), (1357853337,), (1357853368,), (1357853384,), (1357854055,), (1357854140,), (1357854191,), (1357854245,), (1357854490,), (1357854516,), (1357854543,), (1357854573,), (1357854601,), (1357854630,), (1357854659,), (1357854663,), (1357854668,), (1357854672,), (1357854891,), (1357854918,), (1357854923,), (1357854944,), (1357854957,), (1357854962,), (1357855121,), (1357855060,), (1357855091,), (1357855294,), (1357855299,), (1357855302,), (1357855323,), (1357855518,), (1357855523,), (1357855526,), (1357855574,), (1357855578,), (1357855605,), (1357855634,), (1357855664,), (1357855693,), (1357856008,), (1357856066,), (1357856122,), (1357856181,), (1357856397,), (1357856400,), (1357856421,), (1357856457,), (1357856508,), (1357856545,), (1357856773,), (1357856789,), (1357856820,), (1357856825,), (1357856828,), (1357856830,), (1357856977,), (1357856980,), (1357856983,), (1357856987,), (1357856991,), (1357857135,), (1357857160,), (1357857185,), (1357857212,), (1357857246,), (1357857272,), (1357857313,), (1357857316,), (1357857319,), (1357857365,), (1357857369,), (1357857371,), (1357857373,), (1357857376,), (1357857379,), (1357857454,), (1357857487,), (1357857513,), (1357857542,), (1357857571,), (1357857604,), (1357857759,), (1357857775,), (1357857802,), (1357857986,), (1357857989,), (1357857991,), (1357857994,), (1357857999,), (1357858015,), (1357858156,), (1357858159,), (1357858161,), (1357858163,), (1357858218,), (1357858204,), (1357858208,), (1357858211,), (1357858214,), (1357858252,), (1357858255,), (1357858257,), (1357858260,), (1357858264,), (1357858292,), (1357858296,), (1357858300,), (1357858303,), (1357858331,), (1357858333,), (1357858337,), (1357858342,), (1357858348,), (1357858357,), (1357858378,), (1357858384,), (1357858388,), (1357858391,), (1357858393,), (1357858395,), (1357858424,), (1357858427,), (1357858429,), (1357858469,), (1357858471,), (1357858473,), (1357858486,), (1357858490,), (1357858496,), (1357858543,), (1357858546,), (1357858548,), (1357858566,), (1357858578,), (1357858584,), (1357858620,), (1357858623,), (1357858626,), (1357858629,), (1357858635,), (1357858666,), (1357858671,), (1357858699,), (1357858728,), (1357858757,), (1357858787,), (1357859096,), (1357859099,), (1357859101,), (1357859104,), (1357859323,), (1357859376,), (1357859408,), (1357859438,), (1357859467,), (1357859468,), (1357859570,), (1357859573,), (1357859576,), (1357859725,), (1357859749,), (1357859764,), (1357859766,), (1357859769,), (1357859772,), (1357859802,), (1357859804,), (1357859807,), (1357859809,), (1357859865,), (1357859847,), (1357859851,), (1357859854,), (1357859857,), (1357859861,), (1357859927,), (1357859935,), (1357859937,), (1357859941,), (1357859946,), (1357859951,), (1357859979,), (1357859982,), (1357859985,), (1357859989,), (1357860058,), (1357860080,), (1357860084,), (1357860089,), (1357860096,), (1357860113,), (1357860130,), (1357860135,), (1357860141,), (1357860145,), (1357860193,), (1357860196,), (1357860198,), (1357860266,), (1357860269,), (1357860271,), (1357860274,), (1357860277,), (1357860452,), (1357860455,), (1357860456,), (1357860460,), (1357860464,), (1357860467,), (1357860501,), (1357860503,), (1357860505,), (1357860546,), (1357860549,), (1357860552,), (1357860556,), (1357860557,), (1357860561,), (1357860597,), (1357860600,), (1357860602,), (1357860603,), (1357860605,), (1357860609,), (1357860642,), (1357860646,), (1357860649,), (1357860685,), (1357860686,), (1357860688,), (1357860693,), (1357860810,), (1357860817,), (1357860827,), (1357860835,), (1357860839,), (1357860928,), (1357860894,), (1357860915,), (1357860920,), (1357860926,), (1357860992,), (1357860997,), (1357861000,), (1357861044,), (1357861047,), (1357861049,), (1357861052,), (1357861057,), (1357861060,), (1357861109,), (1357861114,), (1357861118,), (1357861122,), (1357861125,), (1357861255,), (1357861259,), (1357861262,), (1357861265,), (1357861294,), (1357861310,), (1357861313,), (1357861317,), (1357861320,), (1357861346,), (1357861348,), (1357861351,), (1357861354,), (1357861357,), (1357861361,), (1357861393,), (1357861396,), (1357861399,), (1357861402,), (1357861405,), (1357861455,), (1357861460,), (1357861465,), (1357861469,), (1357861472,), (1357861510,), (1357861517,), (1357861522,), (1357861526,), (1357861531,), (1357861608,), (1357861612,), (1357861617,), (1357861621,), (1357861622,), (1357861626,), (1357861659,), (1357861663,), (1357861666,), (1357861702,), (1357861706,), (1357861710,), (1357861713,), (1357861718,), (1357861751,), (1357861754,), (1357861758,), (1357861761,), (1357861765,), (1357861768,), (1357861813,), (1357861857,), (1357861863,), (1357861941,), (1357861895,), (1357861900,), (1357861917,), (1357861927,), (1357861931,), (1357861982,), (1357861986,), (1357861990,), (1357861994,), (1357862047,), (1357862052,), (1357862057,), (1357862063,), (1357862067,), (1357862100,), (1357862104,), (1357862108,), (1357862112,), (1357862156,), (1357862160,), (1357862165,), (1357862170,), (1357862176,), (1357862230,), (1357862234,), (1357862238,), (1357862270,), (1357862274,), (1357862278,), (1357862280,), (1357862317,), (1357862322,), (1357862326,), (1357862331,), (1357862374,), (1357862376,), (1357862379,), (1357862382,), (1357862384,), (1357862420,), (1357862424,), (1357862428,), (1357862431,), (1357862438,), (1357862442,), (1357862477,), (1357862482,), (1357862525,), (1357862528,), (1357862531,), (1357862534,), (1357862603,), (1357862652,), (1357862656,), (1357862659,), (1357862662,), (1357862664,), (1357862670,), (1357862704,), (1357862708,), (1357862795,), (1357862778,), (1357862781,), (1357862784,), (1357862787,), (1357862791,), (1357862828,), (1357862831,), (1357862834,), (1357862837,), (1357862841,), (1357862872,), (1357862875,), (1357862879,), (1357862883,), (1357862926,), (1357862929,), (1357862931,), (1357862933,), (1357862934,), (1357862938,), (1357862974,), (1357862977,), (1357862981,), (1357862985,), (1357863040,), (1357863043,), (1357863045,), (1357863047,), (1357863049,), (1357863053,), (1357863089,), (1357863093,), (1357863097,), (1357863101,), (1357863137,), (1357863140,), (1357863142,), (1357863144,), (1357863146,), (1357863147,), (1357863175,), (1357863178,), (1357863180,), (1357863182,), (1357863211,), (1357863213,), (1357863217,), (1357863219,), (1357863224,), (1357863228,), (1357863290,), (1357863295,), (1357863299,), (1357863302,), (1357863305,), (1357863309,), (1357863357,), (1357863360,), (1357863362,), (1357863407,), (1357863411,), (1357863415,), (1357863418,), (1357863422,), (1357863426,), (1357863464,), (1357863466,), (1357863468,), (1357863509,), (1357863513,), (1357863516,), (1357863519,), (1357863522,), (1357863564,), (1357863555,), (1357863558,), (1357863561,), (1357863590,), (1357863594,), (1357863598,), (1357863601,), (1357863605,), (1357863610,), (1357863644,), (1357863647,), (1357863648,), (1357863650,), (1357863689,), (1357863692,), (1357863696,), (1357863699,), (1357863702,), (1357863704,), (1357863750,), (1357863752,), (1357863755,), (1357863757,), (1357863760,), (1357863763,), (1357863822,), (1357863824,), (1357863827,), (1357863829,), (1357863831,), (1357863884,), (1357863887,), (1357863889,), (1357863891,), (1357863894,), (1357863947,), (1357863950,), (1357863951,), (1357863952,), (1357863955,), (1357863959,), (1357863992,), (1357863993,), (1357863994,), (1357863996,), (1357864034,), (1357864038,), (1357864042,), (1357864046,), (1357864051,), (1357864056,), (1357864103,), (1357864107,), (1357864109,), (1357864112,), (1357864150,), (1357864152,), (1357864154,), (1357864155,), (1357864160,), (1357864164,), (1357864198,), (1357864200,), (1357864203,), (1357864206,), (1357864259,), (1357864267,), (1357864275,), (1357864283,), (1357864291,), (1357864311,), (1357864313,), (1357864318,), (1357864322,), (1357864344,), (1357864386,), (1357864372,), (1357864377,), (1357864381,), (1357864565,), (1357864591,), (1357864646,), (1357864698,), (1357864732,), (1357864791,), (1357864925,), (1357864951,), (1357864954,), (1357864957,), (1357865002,), (1357865007,), (1357865012,), (1357865017,), (1357865022,), (1357865053,), (1357865070,), (1357865098,), (1357865128,), (1357865145,), (1357865253,), (1357865257,), (1357865261,), (1357865265,), (1357865269,), (1357865274,), (1357865299,), (1357865303,), (1357865308,), (1357865313,), (1357865355,), (1357865360,), (1357865381,), (1357865384,), (1357865389,), (1357865419,), (1357865423,), (1357865427,), (1357865431,), (1357865435,), (1357865458,), (1357865468,), (1357865469,), (1357865475,), (1357865508,), (1357865514,), (1357865602,), (1357865606,), (1357865616,), (1357865672,), (1357865890,), (1357865894,), (1357865897,), (1357865900,), (1357865903,), (1357865908,), (1357866020,), (1357866025,), (1357866031,), (1357866331,), (1357866678,), (1357866671,), (1357866675,), (1357867088,), (1357867091,), (1357867102,), (1357867123,), (1357867129,), (1357867258,), (1357867276,), (1357867278,), (1357867281,), (1357867285,), (1357867312,), (1357867315,), (1357867369,), (1357867372,), (1357867740,), (1357867747,), (1357867785,), (1357867798,), (1357867800,), (1357867805,), (1357867868,), (1357867871,), (1357867873,), (1357867875,), (1357867891,), (1357867981,), (1357870571,), (1357870653,), (1357870684,), (1357870712,), (1357870837,), (1357870843,), (1357870847,), (1357870868,), (1357870895,), (1357871188,), (1357871204,), (1357871208,), (1357871220,), (1357871414,), (1357871447,), (1357871473,), (1357871476,), (1357871744,), (1357871773,), (1357871799,), (1357871826,), (1357871860,), (1357871889,), (1357872366,), (1357872419,), (1357872469,), (1357873027,), (1357873045,), (1357873054,), (1357873196,), (1357873198,), (1357873222,), (1357873249,), (1357873277,), (1357873533,), (1357873537,), (1357873542,), (1357873576,), (1357873597,), (1357873628,), (1357873631,), (1357873633,), (1357873637,), (1357874006,), (1357874036,), (1357874061,), (1357874282,), (1357874284,), (1357874286,), (1357874288,), (1357874321,), (1357874323,), (1357874327,), (1357874329,), (1357874333,), (1357874336,), (1357874368,), (1357874373,), (1357874378,), (1357874427,), (1357874416,), (1357874419,), (1357874422,), (1357874425,), (1357874456,), (1357874459,), (1357874463,), (1357874465,), (1357874467,), (1357874469,), (1357874519,), (1357874522,), (1357874525,), (1357874528,), (1357874531,), (1357874534,), (1357874563,), (1357874565,), (1357874568,), (1357874571,), (1357874573,), (1357875272,), (1357875276,), (1357875289,), (1357875357,), (1357875366,), (1357875368,), (1357875369,), (1357875407,), (1357875411,), (1357875414,), (1357875417,), (1357875419,), (1357875421,), (1357875451,), (1357875453,), (1357875455,), (1357875457,), (1357875459,), (1357875462,), (1357875492,), (1357875495,), (1357875498,), (1357875500,), (1357875532,), (1357875534,), (1357875536,), (1357875538,), (1357875539,), (1357875542,), (1357875570,), (1357875572,), (1357875574,), (1357875606,), (1357875610,), (1357875618,), (1357875621,), (1357875672,), (1357875676,), (1357875680,), (1357875681,), (1357875724,), (1357875727,), (1357875730,), (1357875732,), (1357875736,), (1357875774,), (1357875776,), (1357875778,), (1357875780,), (1357875819,), (1357875812,), (1357875814,), (1357875816,), (1357875848,), (1357875850,), (1357875860,), (1357875863,), (1357876102,), (1357876147,), (1357876168,), (1357876171,), (1357876172,), (1357876330,), (1357876336,), (1357876354,), (1357876386,), (1357876407,), (1357876482,), (1357876485,), (1357876489,), (1357876523,), (1357876526,), (1357876528,), (1357876531,), (1357876535,), (1357876596,), (1357876623,), (1357876650,), (1357876680,), (1357876714,), (1357876997,), (1357877030,), (1357877058,), (1357877088,), (1357877117,), (1357877636,), (1357877684,), (1357877736,), (1357878181,), (1357878207,), (1357878218,), (1357878223,), (1357878227,), (1357878232,), (1357878415,), (1357878612,), (1357878661,), (1357878699,), (1357879005,), (1357879052,), (1357879097,), (1357879157,), (1357879212,), (1357879655,), (1357879711,), (1357879766,), (1357880059,), (1357880391,), (1357880468,), (1357880548,), (1357880614,), (1357880658,), (1357880920,), (1357880956,), (1357881000,), (1357881032,), (1357881632,), (1357881463,), (1357881517,), (1357881572,), (1357881712,), (1357881746,), (1357881807,), (1357882398,), (1357882772,), (1357882869,), (1357883010,), (1357883138,), (1357883152,), (1357883191,), (1357883219,), (1357883263,), (1357883294,), (1357883495,), (1357883498,), (1357883503,), (1357883522,), (1357883534,), (1357883546,), (1357883687,), (1357883714,), (1357883751,), (1357883755,), (1357883759,), (1357883762,), (1357883766,), (1357883770,), (1357883788,), (1357883791,), (1357883793,), (1357883795,), (1357883798,), (1357883975,), (1357887659,), (1357887141,), (1357887640,), (1357887650,), (1357888235,), (1357888357,), (1357888425,), (1357888479,), (1357888528,), (1357888573,), (1357888931,), (1357889505,), (1357889609,), (1357889630,), (1357889723,), (1357889739,), (1357889797,), (1357890223,), (1357890230,), (1357890251,), (1357890293,), (1357890296,), (1357890314,), (1357890425,), (1357890415,), (1357890420,), (1357890451,), (1357890455,), (1357890459,), (1357890486,), (1357890514,), (1357890543,), (1357890570,), (1357890601,), (1357890631,), (1357890816,), (1357890819,), (1357890822,), (1357890824,), (1357890828,), (1357891203,), (1357891235,), (1357891262,), (1357891727,), (1357891764,), (1357891827,), (1357891857,), (1357891887,), (1357891917,), (1357891945,), (1357892120,), (1357892162,), (1357892191,), (1357892218,), (1357892258,), (1357892649,), (1357892764,), (1357892792,), (1357892821,), (1357893151,), (1357893182,), (1357893211,), (1357893242,), (1357893503,), (1357893534,), (1357893561,), (1357893939,), (1357894077,), (1357894091,), (1357894095,), (1357894129,), (1357894133,), (1357894162,), (1357894214,), (1357894265,), (1357894537,), (1357894557,), (1357894573,), (1357894576,), (1357894587,), (1357894665,), (1357894668,), (1357899606,), (1357900251,), (1357900304,), (1357900332,), (1357900592,), (1357900595,), (1357900597,), (1357901063,), (1357901116,), (1357901169,), (1357901219,), (1357902158,), (1357902246,), (1357902336,), (1357902410,), (1357903300,), (1357903529,), (1357903628,), (1357903783,), (1357903898,), (1357904835,), (1357904917,), (1357905019,), (1357905768,), (1357905785,), (1357905798,), (1357905801,), (1357906101,), (1357906226,), (1357906337,), (1357906451,), (1357906554,), (1357906658,), (1357907255,), (1357907297,), (1357907325,), (1357907496,), (1357907525,), (1357907555,), (1357907580,), (1357907588,), (1357907626,), (1357907629,), (1357907633,), (1357907635,), (1357908041,), (1357908093,), (1357908159,), (1357908260,), (1357908340,), (1357908658,), (1357908708,), (1357908752,), (1357909246,), (1357909250,), (1357909255,), (1357909261,), (1357909313,), (1357909299,), (1357909304,), (1357909308,), (1357909348,), (1357909352,), (1357909354,), (1357909357,), (1357909393,), (1357909395,), (1357909396,), (1357909398,), (1357909729,), (1357909755,), (1357909808,), (1357909864,), (1357909919,), (1357909971,), (1357910567,), (1357910645,), (1357910750,), (1357910849,), (1357910946,), (1357911003,), (1357911620,), (1357911698,), (1357912966,), (1357913016,), (1357913073,), (1357913124,), (1357913164,), (1357913884,), (1357913911,), (1357913966,), (1357914018,), (1357914036,), (1357914038,), (1357914156,), (1357914201,), (1357914244,), (1357914293,), (1357914345,), (1357914760,), (1357914822,), (1357914824,), (1357914975,), (1357914978,), (1357914996,), (1357915005,), (1357915275,), (1357915328,), (1357915378,), (1357915430,), (1357915493,), (1357916115,), (1357916194,), (1357916244,), (1357916259,), (1357916287,), (1357916572,), (1357916660,), (1357916747,), (1357916780,), (1357916947,), (1357916976,), (1357917005,), (1357917025,), (1357917425,), (1357917375,), (1357917387,), (1357917390,), (1357917394,), (1357917977,), (1357918054,), (1357918132,), (1357918215,), (1357919161,), (1357919211,), (1357919238,), (1357919264,), (1357919532,), (1357919581,), (1357919630,), (1357919682,), (1357919732,), (1357919805,), (1357920614,), (1357920684,), (1357920766,), (1357920856,), (1357920957,), (1357921031,), (1357921463,), (1357921485,), (1357921535,), (1357921540,), (1357921987,), (1357922202,), (1357922256,), (1357922292,), (1357922330,), (1357922348,), (1357922899,), (1357922933,), (1357922958,), (1357922986,), (1357923011,), (1357923400,), (1357923429,), (1357923454,), (1357923480,), (1357923778,), (1357923805,), (1357923838,), (1357923864,), (1357924000,), (1357924007,), (1357924033,), (1357924064,), (1357924510,), (1357924566,), (1357924623,), (1357924674,), (1357925253,), (1357925281,), (1357925307,), (1357925332,), (1357925649,), (1357925675,), (1357925689,), (1357926055,), (1357926083,), (1357926111,), (1357926143,), (1357926201,), (1357926875,), (1357926731,), (1357926790,), (1357926852,), (1357927087,), (1357927136,), (1357927179,), (1357927350,), (1357927375,), (1357927671,), (1357927672,), (1357927677,), (1357928153,), (1357928180,), (1357928209,), (1357928421,), (1357928424,), (1357928427,), (1357928430,), (1357928434,), (1357928461,), (1357928900,), (1357928959,), (1357929016,), (1357929070,), (1357929382,), (1357929411,), (1357929470,), (1357929517,), (1357929689,), (1357929691,), (1357929694,), (1357929697,), (1357929724,), (1357929727,), (1357929731,), (1357929734,), (1357929737,), (1357929768,), (1357929771,), (1357934117,), (1357935074,), (1357935082,), (1357937562,), (1357937618,), (1357941053,), (1357941370,), (1357942087,), (1357942115,), (1357942162,), (1357942964,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13052025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22910220]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] map_info['map_portfolio_photo'] : {22910220: [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845]} final : True mtd_id 4302 list_pids : [1357774999, 1357774609, 1357774605, 1357774600, 1357774596, 1357774019, 1357774015, 1357774011, 1357774009, 1357773977, 1357773973, 1357773971, 1357773970, 1357773969, 1357773938, 1357773936, 1357773932, 1357773929, 1357773924, 1357773889, 1357773887, 1357773885, 1357773882, 1357773846, 1357773845] Looping around the photos to save general results len do output : 1 /22910220Didn'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, '2844678') ('4302', '22910220', '1357774999', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774609', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774605', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774600', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774596', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774019', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774015', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774011', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357774009', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773977', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773973', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773971', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773970', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773969', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773938', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773936', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773932', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773929', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773924', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773889', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773887', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773885', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773882', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773846', None, None, None, None, None, '2844678') ('4302', None, None, None, None, None, None, None, '2844678') ('4302', '22910220', '1357773845', None, None, None, None, None, '2844678') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22910220', 'None', None, None, None, None, '2844678'), ('4302', '22910220', '1357774999', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774609', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774605', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774600', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774596', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774019', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774015', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774011', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357774009', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773977', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773973', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773971', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773970', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773969', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773938', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773936', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773932', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773929', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773924', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773889', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773887', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773885', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773882', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773846', None, None, None, None, None, '2844678'), ('4302', '22910220', '1357773845', None, None, None, None, None, '2844678')] time used for this insertion : 0.03417015075683594 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.626790285110474 time spend to save output : 0.03444027900695801 total time spend for step 5 : 4.661230564117432 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 (2844678) 3.03user 2.05system 0:17.10elapsed 29%CPU (0avgtext+0avgdata 160764maxresident)k 192inputs+18176outputs (9major+79144minor)pagefaults 0swaps